netinhoteixeira / mac-soapclient

Automatically exported from code.google.com/p/mac-soapclient
0 stars 0 forks source link

Soap 1.2 support #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm having problems sending soap messages to an Axis2 based soap service which 
only supports Soap 1.2.  I did a little digging and I'm not sure that Soap 
Client sends valid Soap 1.2 messages, even though the missing features section 
of the page at http://ditchnet.org/soapclient/ claims otherwise.

According to this page http://hadleynet.org/marc/whatsnew.html#contenttype Soap 
1.2 messages should be supplied with the request Context-Type of 
application/soap+xml, not text/xml as Soap Client sends, so I downloaded the 
source, added application/soap+xml to the list of available Context-Type values 
in the HTTP Request headers panel.

When sending as application/soap+xml I came across another problem as described 
here: http://wso2.org/library/559 - looking at the messages Soap Client sends 
the envelope namespace is indeed http://schemas.xmlsoap.org/soap/envelope/ 
which would make the message Soap 1.1 not Soap 1.2 which uses 
http://www.w3.org/2003/05/soap-envelope.

The thing is I can see in the code that you pass kWSSOAP2001Protocol into 
WSMethodInvocationCreate so you should get a Soap 1.2 message back.

Am I missing something?

What steps will reproduce the problem?
1. Send a SoapMessage to an Axis2 based service which expects only Soap 1.2 
messages
2.
3.

What is the expected output? What do you see instead?

I expect the call to succeed, it fails at the message verification stage for 
reasons outlined above.

What version of the product are you using? On what operating system?

1.6.4b8 on 10.6.4

Please provide any additional information below.

Original issue reported on code.google.com by alex.pot...@gmail.com on 28 Jul 2010 at 11:16