node-soap icon indicating copy to clipboard operation
node-soap copied to clipboard

Question: how to set endpoint address?

Open snrmwg opened this issue 15 years ago • 6 comments

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

snrmwg avatar Nov 15 '11 00:11 snrmwg

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.)

jbuchbinder avatar Nov 15 '11 12:11 jbuchbinder

I already use your fork :) It would be very kind if you could patch it.

snrmwg avatar Nov 15 '11 13:11 snrmwg

https://github.com/jbuchbinder/node-soap/commit/4410879cccb8d0fdd4f864b2c969f93ab7e1fe8c

That should work for you.

jbuchbinder avatar Nov 15 '11 13:11 jbuchbinder

Thanks a lot, Jeff. I will try this evening.

snrmwg avatar Nov 15 '11 13:11 snrmwg

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

vpulim avatar Nov 15 '11 14:11 vpulim

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.

milewise avatar Nov 15 '11 18:11 milewise