spring-guides / gs-consuming-web-service

Consuming a SOAP web service :: Learn how to create a client that consumes a WSDL-based service
http://spring.io/guides/gs/consuming-web-service
Apache License 2.0
136 stars 164 forks source link

Issues consuming-web-service on cloudfoundry #17

Closed kamalhashi closed 7 years ago

kamalhashi commented 7 years ago

I followed your example to send and receive messages, my application works perfectly on local machine (localhost:8080) , but when I upload the application on cloudfoundry I get null pointer exception when i try to access response object. please see attached logs log.txt

Have you test it on cloudfoundry ?

dsyer commented 7 years ago

The sample in this guide is not a web app so it isn't supposed to run in Cloud Foundry. Probably you were running something a bit different in that case?

kamalhashi commented 7 years ago

Yes. You right. Thanks for pointing out.

kamalhashi commented 7 years ago

Hi Dave, Can we run Spring-WS Client in Cloud Foundry ?

dsyer commented 7 years ago

Why would you not be able to?

kamalhashi commented 7 years ago

With large data, the response object is returned while message are still coming. please see the second line of the log file. log.txt

gregturn commented 7 years ago

CF requires a server up and running. The guide is more like a job that runs and shuts down. Hence, CF looks at it like a failure.

If you built a server app that made SOAP calls, it would run just fine since it's simply a web call.

kamalhashi commented 7 years ago

Thanks @gregturn

kamalhashi commented 7 years ago

Hi Greg,

It runs fine with EC2 + WildFly.

gregturn commented 7 years ago

:)