Page 2 of 2

Re: Starting with xRoute WS

Posted: Tue Feb 21, 2017 3:38 pm
by ffw_rude
I don't set a URL when i call a WS I just call the SOAP client and then call the function as i posted in the code above. I have a few WS at work and none of them requires something else than the wsdl.

The thing is i don't see any SOAPAction for the wsdl...

Do you mean something like this ?

Code: Select all

$service->__setLocation('http://XXX.XXX.XXX.XXX/xroute/rs/xroute/calculateBulkRouteInfo');
I never used such function though.

Re: Starting with xRoute WS

Posted: Wed Feb 22, 2017 6:26 pm
by Flegregeois
Hello,

yes, I mean something ike this. If you initialize your client with the wsdl, you can't call the method in REST or with JSON. You're client is initialize to use SOAP. Because the URL configure in the WSDL is an URL for SOAP, not for REST/JSON.

click here:

http://xserver.ptvgroup.com/en-uk/cookb ... -json-api/

you have an example who can help you.

Best regards

Re: Starting with xRoute WS

Posted: Thu Feb 23, 2017 8:58 am
by ffw_rude
I think i missexplained myself because i am using SOAP. Not REST/JSON.