senojsitruc / wsdl2objc

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

does this support the rpc style? #107

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Does this generator support sending soap requests in the xmlrpc style?

Original issue reported on code.google.com by toucansa...@gmail.com on 24 Jul 2010 at 7:25

GoogleCodeExporter commented 9 years ago
I too tried to call a web service using RPC style. After a lot of tweaks I 
managed to compile but the soap request lacked the method name in the request 
<body>

(Before I forget :
I used 0.7-pre1 build
I attached the wsdl I'm trying to call (I changed some infos so it won't work))

I sent something like this :
<?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:ns1="http://www.w3.org/2001/XMLSchema" 
xmlns:XXXSoapService="urn:http.xxx.xxx.xxx.xxx.ext.com" 
xmlns:tns1="http://xxx.xxx.xxx.xxx.ext.com" 
xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xsl:version="1.0">
  <soap:Body>
      <userId>11201</userId>
  </soap:Body>
</soap:Envelope>

Where I needed this :
<?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:ns1="http://www.w3.org/2001/XMLSchema" 
xmlns:XXXSoapService="urn:http.xxx.xxx.xxx.xxx.ext.com" 
xmlns:tns1="http://xxx.xxx.xxx.xxx.ext.com" 
xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xsl:version="1.0">
  <soap:Body>
    <soap:getProfile>
      <userId>11201</userId>
    </soap:getProfile>
  </soap:Body>
</soap:Envelope>

I managed to get it to work with a tweak in 
serializedFormUsingHeaderElements:bodyElements:
My problem now is to retreive the result :p

So I too would like an answer to the question above, is the RPC style supported 
?

All in all its a great work you did with all this, but it still requires a bit 
to much tweaking for me to use it serenely in my project :(
Keep up the good work !

Cheers

Original comment by besse...@gmail.com on 3 Aug 2010 at 3:33

Attachments:

GoogleCodeExporter commented 9 years ago
I ended up ditching this generator and using this:
http://sudzc.com/

Original comment by toucansa...@gmail.com on 3 Aug 2010 at 8:52

GoogleCodeExporter commented 9 years ago
I'm seeing this as well.

---

RemoteControllerBinding *binding = [[RemoteControllerService 
RemoteControllerBinding] retain];
binding.logXMLInOut = YES;

RemoteControllerBinding_getYachtInfo *request = 
[[RemoteControllerBinding_getYachtInfo new] autorelease];
request.accessCode = accessCodeTextField.text;

// Compiles but lacks method name
[binding getYachtInfoAsyncUsingAccessCode:request delegate:self];

// Compiler throws warning-
// incompatible Objective-C types 'struct RemoteControllerBinding_getYachtInfo 
*', expected
// 'struct NSString *' when passing argument 1 of 
'getYachtInfoAsyncUsingAccessCode:delegate:'
// from distinct Objective-C type
[binding getYachtInfoAsyncUsingAccessCode:accessCodeTextField.text 
delegate:self];

---

Select portion of WSDL. I'll post the whole thing on request.

<wsdl:message name="getYachtInfoRequest">
    <wsdl:part name="accessCode" type="xsd:string"/>
</wsdl:message>

Original comment by alinville@gmail.com on 27 Aug 2010 at 12:33

GoogleCodeExporter commented 9 years ago
I have the same problem to. Is the wsdl2object easy to adapt to rpc style 
soap?? Or it wasn't design for that style?

Original comment by d13nu...@gmail.com on 5 Feb 2013 at 11:41