UPS API PHP - End point URL

LeeTee picture LeeTee · Jan 17, 2012 · Viewed 21k times · Source

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?

Answer

Wes Crow picture Wes Crow · Jan 17, 2012

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