Domanda

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?

È stato utile?

Soluzione

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

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top