Monday, 22 May 2017

node-soap appending "Request" to wsdl methods

so I'm trying to execute the following

soapClient.getDeptUser({
        UserName : "temp",
        UserPassword : "temp"
     },
        userNumber : "xxxxxx"
    }}, (err,result) => {
        if(err){
            console.log(soapClient.lastRequest);
        }else{
            console.log(result);
        }
    }); 

But I keep getting the error from the web service as: Cannot identify any WSDL operation from request.

My last request looks like this:

<soap:Body Id="_0">
  <getDeptUserRequest>
    <getDeptUser>
      <UserName>temp</UserName>
      <UserPassword>temp</UserPassword
      <userNumber>xxxxx</userNumber>
    </getDeptUser>
  </getDeptUserRequest>
</soap:Body>

I think the problem is because there is no method called getDeptUserRequest but I'm trying to call getDeptUser not sure how to prevent the word Request from being appended onto the method name.



via Chris Deleo

No comments:

Post a Comment