简体   繁体   中英

UPS API PHP - End point URL

I have downloaded a PHP SDK for the UPS API. I have the following code and have no idea what an end point URL is. The documentation does not provide any information on what this is.

  //Configuration
  $access = "0C81234564C2567";
  $userid = "leannetest";
  $passwd = "456hththd8hf";

  $accessSchemaFile = "schemas/AccessRequest.xsd";
  $requestSchemaFile = "schemas/RateRequest.xsd";
  $responseSchemaFile = "schemas/RateResponse.xsd";

  $endpointurl = 'add URL here';
  $outputFileName = "XOLTResult.xml";

Can anyone help?

An API endpoint "defines the address or connection point to a Web service. It is typically represented by a simple HTTP URL string". So basically, the endpoint URL is the URL of the web service that are you attempting to interact with.

SOURCE:

http://en.wikipedia.org/wiki/Web_Services_Description_Language#Objects_in_WSDL_1.1_.2F_WSDL_2.0

EDIT: It appears from the documentation that the Rate webservices endpoint URL is https://wwwcie.ups.com/webservices/Rate .

SOURCE:

UPS. (January 2, 2002). Rating Package Web Services Developers Guide . Section 1.9.3 Server Availability Check . Accessed in Rating API found on this page: https://www.ups.com/upsdeveloperkit/downloadresource?loc=en_US

Endpoint url explaination in the UPS document. it consists of four parts which are explained below.

For example if we are going to use "Rate" service than our urls should be as below.


As per the documentation if we devide the url in four parts all of them are as listed below.

Protocol : https
Name of server : wwwcie.ups.com (testing) OR onlinetools.ups.com (production)
Path of service : ups.app/xml/Rate
name of the service : Rate OR Ship OR QVEvents

I just replied to explain UPS endpoint url in detail so it might help

The shipping endpoint url is:

https://wwwcie.ups.com/webservices/Ship

In case anyone needs it, since it's not documented in their developers kit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM