Skip to Content
0
Former Member
Aug 09, 2013 at 01:22 PM

How to consume a SOAP WebService in the cloud?

23 Views

Hi,

when looking at the hana cloud documentation and code samples, i can only see how it is possible to call via a destination a rest web service. See:

Context ctx = new InitialContext();

HttpDestination destination = (HttpDestination)ctx.lookup("java:comp/env/pingdest");

HttpClient httpClient = destination.createHttpClient();

HttpGet get = new HttpGet("pingnoauth");

HttpResponse resp = httpClient.execute(get);

But when consuming a SOAP service the 'real' request is created and also sent by the JAX WS framework. So how can i tell the JAX WS framework to use a certain http client that mappes to a specific destination?

Thanks,

Florian