Hi,
I desperately try to convert a working HttpClient POST method making an
authentication with 'application/soap+xml' as content type into a
working SOAP Request (with ServiceClient?). Is this possible? The
'client' making the authentication is an instance of
org.apache.axis2.transport.SimpleAxis2Server and the link it tries to
reach starts with 'https://' (secure HTTP connection). How can I convert
the received response (I am working with the POJO example) into 'more
SOAP' objects. I would like to be able to catch any SOAP exception if
any as well. Are they any examples somewhere?
The following code works fine:
HttpClient client = new HttpClient();
PostMethod post = new PostMethod(url);
StringRequestEntity entity = new StringRequestEntity(xmlMessage,
"application/soap+xml", "utf-8");
post.setRequestEntity(entity);
client.executeMethod(post);
String response = post.getResponseBodyAsString();
Any help would be gratefully appreciated. Thanks a lot,
chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]