I was told by tech support that the API address is now

https://onlinetools.ups.com/ups.app/xml/Rate

Once I made the changes in the module it eliminated all issues.

CommentFileSizeAuthor
#8 1345162-onlinetools.patch1.53 KBTR
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

longwave’s picture

Category: bug » task
Status: Needs review » Active

What do you mean by "eliminated all issues"? Ideally that would imply that every single UPS related issue in the queue would be fixed by this, but I don't think that's the case somehow!

Also this should be a task, unless UPS have suddenly changed their API address and the old one no longer works, and "needs review" only applies when there is a patch to test.

longwave’s picture

Status: Active » Postponed (maintainer needs more info)
LiveWire’s picture

Pardon for the improper information. I should have clarified. It eliminated the issues that I was facing.

I was told that this was not a sudden change to the API and that the old address is no longer valid.

longwave’s picture

Status: Postponed (maintainer needs more info) » Active

What issues were you seeing that were fixed by this change? I'm surprised that only one person has reported this if the old address is no longer valid (which doesn't seem to be the case anyway, as it still returns results if I visit it in a web browser)

daroz’s picture

From the RateWS.wsdl file, in the Rates_Pkg_Gnd.zip file which contains the API documentation from UPS (https://www.ups.com/gec/techdocs/pdf/Rates_Pkg_Gnd.zip)

	<wsdl:service name="RateService">
		<wsdl:port name="RatePort" binding="tns:RateBinding">
			<!-- Production URL -->
			<!-- <soap:address location="https://onlinetools.ups.com/webservices/Rate"/> -->
			<!-- CIE (Customer Integration Environment) URL -->
			<soap:address location="https://wwwcie.ups.com/webservices/Rate"/>
		</wsdl:port>
	</wsdl:service>

I'm reading that as the wwwcie.ups.com address is for testing/non-production use. This (should?) also affect 7.x as well.

longwave’s picture

Assigned: Unassigned » TR

Assigning to TR to see if he knows anything about this.

TR’s picture

Version: 6.x-2.x-dev » 7.x-3.x-dev

@LiveWire: To be very clear, the URLs currently used by Ubercart work and are not the cause of any known problems or issues.

@daroz: Ubercart doesn't use the UPS SOAP web service, it uses the XML method, so the contents of the .wsdl file aren't relevant.

Ubercart currently uses:
https://wwwcie.ups.com/ups.app/xml/ for the Testing server and
https://www.ups.com/ups.app/xml/ for the Production server.

(The service type gets appended to these URLs, e.g. 'Rate' is appended when using the Rating API)

As I said, these both work.

The current UPS documentation isn't consistent. Some of the UPS documentation (but none of the example code) recommends using https://onlinetools.ups.com/ups.app/xml/ for the Rate and Ship APIs when in Production mode. But it also recommends using https://wwwcie.ups.com/ups.app/xml/ for the Track API and makes no distinction between testing and production modes. And only some of the example code shows a URL, and the only URL found in the example code is https://wwwcie.ups.com/ups.app/xml/.

So it's unclear to me whether UPS is actually changing from www.ups.com to onlinetools.ups.com, whether they're both equivalent, or whether one or both is a legacy URL. Both work. I am currently trading e-mails with UPS tech support on this matter (it's outside the scope of the level 1 support on the telephone, so they're having me communicate with level 2 via e-mail.) When I get a definitive response I'll roll a patch if necessary.

Moving to 7.x-3.x, because that's where it needs to be addressed first.

TR’s picture

Status: Active » Needs review
FileSize
1.53 KB

Here's a patch if you want to try it out in the meantime.

mattcasey’s picture

In #7, The testing server link leads to "Page not found." On a production site, we use Testing because our orders get shipped through a fulfillment agency.

The patch looks like it won't fix the Testing Server. "Click to Calculate shipping" was returning a message to check delivery and product information until I updated the address. To fix the issue for my site, I followed instructions to update the link here: http://www.ubercart.org/forum/support/17670/ups_module_not_getting_shipp...

longwave’s picture

So you're saying https://wwwcie.ups.com/ups.app/xml/Rate returns 404 for you? (note that the link in #7 needs the service type appending, which is Rate in this case)

mattcasey’s picture

My mistake -- using only https://onlinetools.ups.com/ups.app/xml/ would return 404. The link you give me works of course, in my browser. In my Ubercart setup, onlinteools.ups.com seems to work when wwwcie.ups.com was not. The client wanted the issue fixed immediately, so I didn't have time to debug it further than that. If no one else chimes in, I can attempt to do some more thorough testing.

TR’s picture

onlinetools.ups.com is the proposed new production, wwwcie.ups.com is the old and current testing. If you're saying that the *testing* URL isn't working in testing mode, then that's a completely different issue that no-one has ever mentioned before. And if clicking on the link in #10 returns the following result, then I don't see how it's possible that testing mode doesn't work for you:

Service Name: Rate
Remote User: null
Server Port: 443
Server Name: wwwcie.ups.com
Servlet Path: /Rate
TR’s picture

Status: Needs review » Fixed

Committed patch to 7.x-3.x and 6.x-2.x.

longwave’s picture

Status: Fixed » Needs work

This didn't seem to make it to the 6.x branch.

TR’s picture

Status: Needs work » Fixed

Forgot to push.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.