Tech-Today
-2147219047;SOLServer.Verify_RespondInvalid XML The name of the top most element must match the name of the DOCTYPE declaration.
I was testing the USPS Api, when I got that error.
This is because of the error in my root tag, my request is as follow:
API=Verify&XML=<verifyrequest USERID='207BAZLI7194' PASSWORD='053FG85YP581'><address ID="0">
<address1></Address1><address2>Address2</Address2><city>City</City><state>State</State><zip5>Zip Code</Zip5><zip4></Zip4></Address></VerifyRequest>
As written, I am calling the verify API. What I did wrong was I named the root tag
, sure it works on the test server: http://testing.shippingapis.com/ShippingAPITest.dll. But it failed in the production: http://production.shippingapis.com/ShippingAPITest.dll.
Solution:
Just rename the root tag to <addressvalidaterequest>, the xml request becomes:
API=Verify&XML=<addressvalidaterequest USERID='207BAZLI7194' PASSWORD='053FG85YP581'><address ID="0">
<address1></Address1><address2>Address2</Address2><city>City</City><state>State</State><zip5>Zip Code</Zip5><zip4></Zip4></Address></AddressValidateRequest>
Note: It seems USPS is treating address1 as address2 and vice versa. Take note of this :D.
-
Apache Cassandra Clustering
This tutorial will help us configure an Apache Cassandra's ring with 2 nodes. It will not explain what Cassandra is, use Google for that. There are actually not too many properties that we must update in order to set up the cluster. Note that in...
-
How To Configure Wildfly 8 Clustering And Deploying Picketlink Enabled War Application To Test The Session.
In this tutorial we will try to configure wildfly cluster and test it by deploying a picketlink enabled war application where a user can login and the session shared between the virtual server. Before we start, make sure that you read these links: https://docs.jboss.org/author/display/AS71/AS7+Cluster+Howto...
-
How To Move The An Eclipse-rcp Window In The Center Of A Desktop Screen
Using eclipse-rcp HelloWorld Example To be able to do this we need to override the WorkbenchWindowAdvisor's postWindowCreate method in the ApplicationWorkbenchWindowAdvisor class. @Override /** * ostWindowCreate - called after the window has...
-
Make_sock: Could Not Bind To Address 0.0.0.0:80
I am developing a web application and is testing it on my localhost, when suddenly the page failed to load. No error, no message. So I went to control panel -> Administrative Tools -> Event Viewer -> application and found 2 error entries related to Apache...
-
Usps::submit_request: Domxml_open_mem Is Uncallable
I am calling the USPS API when I got the above error. The problem is the server where my application resides is equipped with php version 5, while the class that I have downloaded and using is class.usps.php. This class use the old domxml object available...
Tech-Today