-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
0.6.1 "Object #<Object> has no method 'indexOf'" #533
Comments
@yicone thanks for reaching out and debugging the code down to the problem, this is much appreciated 👍 Given your description, this seems like a legit and valuable fix to the problem, so I'm happy if you can provide your code as a Pull Request 😃 Please, don't forget to add at least one test (request-response-sample preferred) and run |
We have the same issue, we cannot pass an array in the soap request args input. The 2 amendments described here fix this for us. It would be much appreciated to have this included in the next release version. |
In my case, there are an array arg in soap request, I received this error.
After review node-soap source code(0.6.1), I'm not sure there are a bug (in wsdl.js:1431):
I debug it for a long time, found the array element's "parentNamespace" is ''(empty), so that 'namespace' is continue to be a Object, that why I received the error of "Object # has no method 'indexOf'"(throw by line 1463).
So I guess there should be:
Relatedly, when I change it as above, I received another error: "Unmarshalling Error: Undeclared namespace prefix 'xs'".
Then I found the line 1469(still in wsdl.js):
Because parentNamespace may make sense when it equals '' , so I changed the line:
That works for me, but I'm not sure if I do a correct fix! So I hope that I can get some help.
The text was updated successfully, but these errors were encountered: