Closed pcualmac closed 3 years ago
Please read the AbstractSoapClientBase usage from which the ServiceType classes inherit. You'll find the setLocation
method that allows to set the location where the request must be sent if not defined in the WSDL.
public function getStreamContextOptions()
TESTING_URL = 'https://wsbeta.fedex.com:443/web-services/ship';
You must call setLocation
on the ServiceType instance:
$do = new ServiceType\Do([]);
$do->setLocation(...);
$result = $do->do($parameters);
there is a way to output the wsdl before is send?
there is a way to output the wsdl before is send?
You mean the XML request? If so, yes, you need to use the soapclient
option such as in https://github.com/WsdlToPhp/PackageEws365/blob/develop/generate.sh and copy classes from https://github.com/WsdlToPhp/PackageEws365/tree/develop/SoapClient, then you can do whatever you need in the https://github.com/WsdlToPhp/PackageEws365/blob/develop/SoapClient/SoapClient.php class that extends the native PHP SoapClient class.
If you need more information, please open a discussion in the Discussions tab.
Sorry for this question. :)
How do i set the url for send the request