senojsitruc / wsdl2objc

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

service request with parameters are not working. #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Following is the link: 
 http://testserver.trizile.com/lostpetusa/soapservice/lostpetusawebservice.php?wsdl
2. Not getting the data for the services which requires parameter passing. 
Getting the following 
error:
2009-10-30 13:30:09.559 TestSoap[1322:20b] ResponseError:
Error Domain=lostpetusawebservice_wsdlBindingResponseHTTP Code=1 
UserInfo=0xd52cd0 
"Unexpected response MIME type to SOAP call:text/html"

3. I am getting the proper response and data for the services in which no 
parameter passing is 
required

What is the expected output?
for the following request:
lostpetusawebservice_wsdlBinding *binding = [[lostpetusawebservice_wsdlSvc 
lostpetusawebservice_wsdlBinding] retain];
[binding getAllPetListingsByZipAsyncUsingZipcode:@"01821" delegate:binding];
or 
lostpetusawebservice_wsdlBindingResponse *bindingResponse = [binding 
getAllPetListingsByZipUsingZipcode:@"0821"];

output should be an array.

What do you see instead?
2009-10-30 13:52:00.482 TestSoap[1414:20b] ResponseError:
Error Domain=lostpetusawebservice_wsdlBindingResponseHTTP Code=1 
UserInfo=0xd52cd0 
"Unexpected response MIME type to SOAP call:text/html"

What version of the product are you using? On what operating system?
Using the latest project 0.6
Mac OS version is 10.5.8

Please provide any additional information below.

I want to know, where i am going wrong and what is the resolution for this 
error.

Thanks in Advance

Original issue reported on code.google.com by rajnish.khatri@gmail.com on 30 Oct 2009 at 8:30

GoogleCodeExporter commented 8 years ago
After generating the code, I was getting the same errors as mentioned in 
issue#45. Those issues were fixed 
using the solution provided in that issue.

I want the data from the following service:
    lostpetusawebservice_wsdlBindingResponse *bindingResponse = [binding 
getPetDetailsByListingIdUsingListingid:[[NSNumber alloc] initWithInt:606]];

I am stuck up because of this issue, will be great help if anyone can provide 
any breakthrough.
Thanks 

Original comment by rajnish.khatri@gmail.com on 30 Oct 2009 at 1:13

GoogleCodeExporter commented 8 years ago
Hello,
I have encountered the same problem, issue 45 does not workaround the problem 
for me, or at least I'm not sure how, because I'm using a ynchronous call 
rather than an async one.

The follow blog suggest modifying the generated code, but I'm not sure this is 
the correct way, or what the impact is:
http://brismith66.blogspot.com/2010/05/iphone-development-accesing-soap.html

BTW I'm using wsdl2objc 0.7 pre-release.
What can I do to resolve the error?
tnx

Original comment by sagim...@gmail.com on 11 Jul 2010 at 12:08