close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

I'm getting the " UspsCom:oAuth" Failure on the shipping page.

Thread began 11/16/2009 1:13 pm by rmcadams351257 | Last modified 11/19/2009 9:02 pm by Eric Mittman | 2730 views | 7 replies |

rmcadams351257

I'm getting the " UspsCom:oAuth" Failure on the shipping page.

I hope you can help me with the powerstore2 program.

I'm getting the " UspsCom:oAuth" Failure on the shipping page.
After reading through the posts, dealing with this issue.

I know I'm using the correct user name they gave me and I'm using the production server address they gave me."http://production.shippingapis.com/shippingapi.dll".


When USPS sent me my user name they also sent me a password. I did not use the password however as there was no place to put it in the code on the globals page.

When I run this code on the shipping_failure.php page

<?php
if(!session_id()) session_start();
echo("Paypal Full Response :<br />");
echo("<code>".isset($_SESSION["PP_DirectPayment"])?$_SESSION["PP_DirectPayment"]:""."</code><br /><br />");
echo("USPS Full Response :<br />");
echo("<code>".isset($_SESSION["WA_Store_Cart_USPS_FullResponse"])?$_SESSION["WA_Store_Cart_USPS_FullResponse"]:""."</code><br /><br />");
?>

I get the response:

USPS Full Response :
80040b1a Authorization failure. You are not authorized to connect to this server. UspsCom

When I talked with USPS they told me my account is active and good on that end.
I'm at a loss, to what I'm doing wrong.

If you need me to send you the files Golbals,Shipping_failure...Ect. let me know and I will be happy to put them in a zip file, just let me know the ones you need.

Thanks for all your help in this matter
Ron

Sign in to reply to this post

Eric Mittman

I think you should run another test of this but put in the full request on the page as well as the full response from the bindings. This way we can confirm the values that are being sent to USPS.

Also, not sure if it will make a difference but sometimes USPS wants you to do some tests first with their testing server before they allow the production. This should not be the case since we are working with the v3 api which does not allow for testing. Just something else that can be looked into with USPS.

Sign in to reply to this post

rmcadams351257

need the full response from the bindings

Hi: Eric

I'm kind of new to php and I'm not sure how to "put in the full request on the page as well as the full response from the bindings"

I think I got the full request on the shipping_failure page ok, But I'm not sure how to do the full responce from the bindings. Does it go on the shipping_failure page also and what is the code? Can you post the code for me & let me know what page they should be on?

Let me know an I'll run the code again and get the full responce.

Again Eric thanks for your help.

Ron
thedvs1.com
mc3products.com

Sign in to reply to this post

Eric Mittman

Oh, sorry about that, I assumed that you were already working with these bindings. These values are located in the bindings tab under the usps result. Here they are for reference:

full request

php:
<?php echo $_SESSION["WA_Store_Cart_USPS_FullRequest"]; ?>



full reponse

php:
<?php echo $_SESSION["WA_Store_Cart_USPS_FullResponse"]; ?>



You would want to put these on the shipping failure page and any other page after the confirm page that you would like to see these values.

Sign in to reply to this post

rmcadams351257

I added the request & responce codes

Hi: Eric

I added that code to the shipping_failure page.

Here is an update. I talked with USPS and they had me open another account,Then they moved it to the production server.
I went to the web page, that still had the code I had put in. I had changed the globels to reflect the new User ID for USPS & got this

Shipping Quote Failed
We're sorry
Rate_Respond.;SOLServerRates.RateV3_Respond - Invalid XML Element content is invalid according to the DTD/Schema. Expecting: FirstClassMailType, ZipOrigination. line= 0 pos= 1237

That was new. So then I added the request & responce codes as you ask and I got this.
(I think I did it right)..:)


API=RateV3&XML=FIRST CLASSFIRST CLASS9130630REGULAR -2147219085Rate_Respond.;SOLServerRates.RateV3_RespondInvalid XML Element content is invalid according to the DTD/Schema. Expecting: FirstClassMailType, ZipOrigination. line= 0 pos= 12371000440

Did that help?

Thanks again Eric

Ron

Sign in to reply to this post

Eric Mittman

To tell you the truth this error is not one that I have seen before, nor any like it. It seems to be saying that the xml is malformed and not accepted by the api.

When you talked to USPS what type of account did they open for you? Did you get a new production server URL to post to? If so what is that new URL? If you have not been given the production URL from USPS you should try to login and obtain the one that they are listing for you and post back with this value.

Sign in to reply to this post

rmcadams351257

USPS sent me this email

Hi; Eric

When I signed up USPS sent me this email.

Congratulations on completing your testing using the U.S. Postal
Service's Web Tools Application Program Interfaces (APIs). Your
profile has been updated to allow you access to the Production Servers.

The URLs you will use for the Production Servers are:
ShippingAPI.dll
ShippingAPI.dll

So I used ShippingAPI.dll.
I did notice the API part was in caps, I tryed both ways ShippingAPI.dll & Shippingapi.dll
and got same responce.

This is what my USPS globels looks like.

// USPS Shipping Settings
$WAGLOBAL_USPS_User = "***********"; // get this when you sign up for API access
$WAGLOBAL_USPS_Server = "http://production.shippingapis.com/ShippingAPI.dll"; // change this to the live server when you go live
$WAGLOBAL_USPS_ShipType = "FIRST CLASS"; //Enter the appropriate value for domestic shipping, based on the USPS Shipping key at the bottom of this page.
$WAGLOBAL_USPS_IntShipType = "Economy (Surface) Parcel Post"; //Enter the appropriate value for shipping to international customers, based on the USPS

I'm at a loss....

Thanks Eric

Ron

Sign in to reply to this post

Eric Mittman

I have opened a ticket for you so that we can exchange some more info. Please login to the site and visit your support history to update the ticket.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...