amoikevin / android-ws-client

Automatically exported from code.google.com/p/android-ws-client
0 stars 0 forks source link

SOAPAction header is missing #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is a required header for SOAP 1.1 and the current implementation of the 
WSProxyClient does not set in as part of the POST request.

This headers was removed from SOAP 1.2 but it seems that several web services 
implementation request this header.

More info:
* http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383528
* http://www.w3.org/TR/2003/REC-soap12-part0-20030624/#L4697

I am attaching a tentative solution that I could test and validate that fixed 
the error I was getting with my wsdl.

This value can be extract from the @WebMethod annotation and should be passed 
as a *new* parameter to HttpTransportUtil#sendRequestAndGetRespXML

This is the WSDL I was testing:
http://api.mindbodyonline.com/0_5/ClassService.asmx?WSDL

WARNING: There is another issue with this WSDL that produces a recursive loop 
after parsing the response because it is a "valid" error response that was not 
specified on the WSDL.

Original issue reported on code.google.com by sebastia...@gmail.com on 11 Nov 2012 at 2:55

Attachments:

GoogleCodeExporter commented 9 years ago
BTW, the soapUI client does send this header automatically and that's the 
reason why it was working there but not on my android project.

Original comment by sebastia...@gmail.com on 11 Nov 2012 at 2:56

GoogleCodeExporter commented 9 years ago
Hi,
I have same issue,
I loaded svn project AndroidWSProxyClient in eclipse, apllied the patch.

I exported .jar but when put the jar in my project, it say that require 
signature.

Where I fail ?

Can you give you the jar patched ? Please is alredy 2 mounth that my head is 
hacked.

Original comment by rorygenn...@gmail.com on 11 Feb 2013 at 8:38

GoogleCodeExporter commented 9 years ago
Sorry,
I forgot.
I use the branch version and Win 7 64bit.

Attach: stub generated, wsdl, my souce, err.log

Original comment by rorygenn...@gmail.com on 11 Feb 2013 at 9:49

Attachments:

GoogleCodeExporter commented 9 years ago
Also .... this wsdl work with out any problem in Mono .net and Visual Studio 
2010 that generate proxy class.

Bye

Original comment by rorygenn...@gmail.com on 11 Feb 2013 at 9:51