This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

The resulting response message then gets transformed via <object-to-string-transformer> and ends up on a <service-activator> that grabs the HTML string, passes it via JTidy and into XPath to feed some business logic of the app.

During the integration test that runs using the <http:outbound-gateway> against the same URL my XPath handling breaks with NPE however.

While debugging I can see the correct URL is used all the way in Spring and is handed off to HttpClient, but then the response has HTML contents different from the contents which one gets by going to that URL manually. To confirm my finding I used the following configuration:

and indeed can see that above behavior is the case. The page thus obtained has: Error: Please enter a ticker symbol. which leads me to believe that the ticker (SLW in this case) was somehow not properly passed to yahoo (it's clearly not recognized by it)???

I'm not sure what could lead to that effect (whether it's misconfiguration on my part or some encoding issues at play - I noticed some mentions of them in a couple of threads here on the forum), could someone please lend me a hand with this or offer some insights?