2020年12月31日星期四

WSDL File for PHP SoapClient

I am trying to make a request to the FedEx Tracking API. In their implementation, they make use of PHP's SoapClient object. When creating the object they supply a url which is supposed to be a path to a WSDL file. I have not worked with SOAP, XML, or WSDL in the past so this is all fairly new to me. I have read several articles on these topics but am still having issues.

For the WSDL file that they supple SoapClient

$client = new SoapClient($wsdl_url);  

Where/how would one find/create the necessary WSDL file? Is this something I would create or would FedEx have a file I would need to download?

Detailed information is appreciated.

https://stackoverflow.com/questions/65526648/wsdl-file-for-php-soapclient January 01, 2021 at 09:05AM

没有评论:

发表评论