Starting with xRoute WS

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
ffw_rude
Posts: 7
Joined: Mon Feb 20, 2017 2:56 pm

Re: Starting with xRoute WS

Post 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.
Flegregeois

Re: Starting with xRoute WS

Post 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
ffw_rude
Posts: 7
Joined: Mon Feb 20, 2017 2:56 pm

Re: Starting with xRoute WS

Post by ffw_rude »

I think i missexplained myself because i am using SOAP. Not REST/JSON.
Post Reply