Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UPS API including correct WSDL file and endpoint

I am new to using WSDL's. I have used REST before but not this. I am trying to run the sample code file that is included on the UPS developer site. Page 23 of this guide is the API I am using. The file you can download includes like ten guides which I have perused, but I just initally want to figure out how to fill out the top configuration part below (I am using php example code file SoapRateClient.php). What do I put for WSDL? What do I put for end point url? The file you download on their site has several wsdl files and I'm not sure which one I am supposed to choose. Guidance appreciated.

<?php

  //Configuration
  $access = "secret";//I have this no problem
  $userid = "";//I have this as well
  $passwd = "";//I have this
  $wsdl = " Add Wsdl File Here ";//What the heck do I put here!?
  $operation = "ProcessRate";
  $endpointurl = ' Add URL Here';//Also what do I put here?
  $outputFileName = "XOLTResult.xml";
like image 899
CaitlinHavener Avatar asked Dec 12 '22 14:12

CaitlinHavener


1 Answers

For anyone else out there confused on how to get started with the UPS Rate API, I implemented Jonathan Kelly's UPS Rate API class that he created. You just fill in your account number, key, username, password, and play with the other variables. I was able to return a dollar amount for ground shipping in five minutes. Thank gosh I didn't have to mess with SOAP and web services.

like image 182
CaitlinHavener Avatar answered Dec 25 '22 03:12

CaitlinHavener