f00b4r / nusoap

:smirk: Fixed NuSOAP for PHP 5.6 - 8.2
https://f00b4r.github.io/nusoap/
320 stars 356 forks source link

Help with local WSDL and specifying endpoint. #122

Open cyberws opened 2 months ago

cyberws commented 2 months ago

Can someone please assist with the problem I am having.

I am accessing a web service that needs to use a local WSDL and a different endpoint.

At present I am creating a client with the following call.

$client = new nusoap_client($endpoint, $wsdl);

Where $endpoint is the URL of the $endpoint I wish to use and $wsdl is the path to a local file containing the required WSDL.

When I use the command the calls work but they are using the WSDL present at the endpoint which is an earlier version than the WSDL I need to be using.

The WSDL downloadable by appending "?wsdl" to the endpoint URL is version v3 of the WSDL. The local copy of the WSDL I have which I need to be using is version v14 of the WSDL. Calls are targeting v3 of the namespace (as specified in the WSDL at the endpoint), rather than the v14 namespace it should be using.

What is the syntax to create a nusoap_client getting it to use a WSDL file (which is on a local path) and also specifying the endpoint.

Thanks in advance for assistance or advise given.

Regards,

Phil.