arishanapalli / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
MIT License
0 stars 0 forks source link

The generated SOAP Request is poorly formed #121

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
*What steps will reproduce the problem?*

1. Generated the code from the attached WSDL
2. Integrated in XCode project
3. Call using basic request data (username='test', password='test')

*What is the expected output?*

A successful SOAP response (generated from SoapUI)

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <SOAP-ENV:Body>
      <m:LoginResponse xmlns:m="http://localhost:80/AuthenticationService.wsdl">
         <customerId>12345</customerId>
      </m:LoginResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

*What do you see instead?*

-------------

2010-11-15 22:54:39.885 iCiboodle[3774:207] ResponseHeaders:
{
    "Content-Length" = 391;
    "Content-Type" = "text/xml";
    Date = "Tue, 16 Nov 2010 10:33:14 GMT";
    Server = "Apache-Coyote/1.1";
    "Set-Cookie" = "JSESSIONID=8366861B7ED085B7F72A3CC8AD04775E; Path=/GTConnect";
    "X-Powered-By" = "Servlet 2.5; JBoss-5.0/JBossWeb-2.1";
}
2010-11-15 22:54:39.887 iCiboodle[3774:207] ResponseBody:
<?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><SOAP-ENV:Fault><fau
ltcode>SOAP-ENV:CLIENT</faultcode><faultstring>Error parsing SOAP 
request</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

-------------

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

v0.6 and/or 0.7 pre-release

*Please provide any additional information below.*

Actual request:

-------------------------

2010-11-15 22:54:39.701 iCiboodle[3774:207] OutputHeaders:
{
    "Content-Length" = 450;
    "Content-Type" = "text/xml; charset=utf-8";
    Host = "10.77.88.112";
    Soapaction = "AuthenticationService#Login";
    "User-Agent" = wsdl2objc;
}

2010-11-15 22:54:39.704 iCiboodle[3774:207] OutputBody:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:AuthenticationService="http://localhost:80/AuthenticationService.wsdl" 
xsl:version="1.0">
  <soap:Body>
    <customerName>test</customerName>
    <password>TEST</password>
  </soap:Body>
</soap:Envelope>
2010-11-15 22:54:39.884 iCiboodle[3774:207] ResponseStatus: 200

-------------------------

Request body *should* be (note the login tag):

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:AuthenticationService="http://localhost:80/AuthenticationService.wsdl" 
xsl:version="1.0">
  <soap:Body>
    <login>
       <customerName>test</customerName>
       <password>TEST</password>
    </login>
  </soap:Body>
</soap:Envelope>

Original issue reported on code.google.com by stephen....@gmail.com on 16 Nov 2010 at 3:09

Attachments: