Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for function with no arg #6

Closed
SamuelLarkin opened this issue Jun 13, 2018 · 1 comment
Closed

Support for function with no arg #6

SamuelLarkin opened this issue Jun 13, 2018 · 1 comment

Comments

@SamuelLarkin
Copy link

Hi all,
I'm trying out your library but I can't perform a call to my getVersion(). It fails because there is no input.parts and the style of that function is rpc

tinysoap.createClient(wsdl, function(err, client) {                                                                           
         client.getVersion(                                                                                                         
               {},                                                                                                                  
               function(err, result) {                                                                                              
                  var v = result['version'];                                                                                       
                  console.log(v)                                                                                                    
               });                                                                                                                  
      }); 

Error: invalid message definition for rpc style binding

client.describe().....getVersion

{
  "input": null,
  "output": {
    "version": "xsd:string"
  }
}
<message name="getVersionRequest">                                                                                                
  </message>
<message name="getVersionResponse">                                                                                               
    <part name="version" type="xsd:string"/>                                                                                        
  </message>
<operation name="getVersion">
      <input message="tns:getVersionRequest"/>
      <output message="tns:getVersionResponse"/>
    </operation>
<operation name="getVersion">
      <soap:operation soapAction="getVersion"/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="anamespace" use="encoded"/>
      </input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="anamespace" use="encoded"/>
      </output>
    </operation>
@mhzed
Copy link
Owner

mhzed commented Jun 25, 2018

As you can see this project is tragically out-dated: I put it up 5-6 years ago when I needed a simple way to call soap in browser and thought I'd share it.
I recommend you try out the https://github.com/vpulim/node-soap module, it seems to be reasonably well maintained and most likely fix your problem. If it works, try out web-pack to build a singe file js o run in browser.

@mhzed mhzed closed this as completed Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants