Question: how to set endpoint address?
Hi, I managed to read a local WSDL with node-soap. How do I set the (remote) endpoint address to be called when I invoke an operation of the client?
Thanks a lot, Marc
node-soap pulls the location from the WSDL currently. I can patch it to optionally take another parameter for that, if you'd like. (Obviously you'd either have to use my fork or wait until the patch is pulled upstream.)
I already use your fork :) It would be very kind if you could patch it.
https://github.com/jbuchbinder/node-soap/commit/4410879cccb8d0fdd4f864b2c969f93ab7e1fe8c
That should work for you.
Thanks a lot, Jeff. I will try this evening.
Hi Marc,
The endpoint address is specified in the WSDL file itself. It is the value of the "location" attribute in the "address" tag within a port specification.
For example:
<wsdl:service name="MyService"> <wsdl:port binding="tns:SoapService" name="SoapService"> <soap:address location="http://example.com/wsdl/" </wsdl:port> /wsdl:service
-Vinay
On Mon, Nov 14, 2011 at 7:32 PM, Marc < [email protected]
wrote:
Hi, I managed to read a local WSDL with node-soap. How do I set the (remote) endpoint address to be called when I invoke an operation of the client?
Thanks a lot, Marc
Reply to this email directly or view it on GitHub: https://github.com/milewise/node-soap/issues/8
Sorry, missed the first few posts in the thread. I just pulled in jbuchbinder's fork so all of his changes (including specifying endpoints) should now be available.