[arin-tech-discuss] XML payload did not validate
Jamie Kohns
jamie.kohns at nationalnet.com
Fri Jan 25 15:53:56 EST 2013
I'm trying to perform a Create Recipient Customer request on the rest
service, and getting an error response indicating that "The XML payload
did not validate against the defined schema"..
While my final implementation will be in PHP using CURL, I have been
using curl directly as:
curl -v -H "Content-Type: application/xml" -X POST --data "<customer
xmlns="<customer xmlns="http://www.arin.net/regrws/core/v1"
><customerName>TESTME</customerName><iso3166-1><name>UNITED
STATES</name><code2>US</code2><code3>USA</code3><e164>1</e164></iso3166-1>
<handle></handle><streetAddress><line number = "1">Line
1</line></streetAddress><city>Chantilly</city><iso3166-2>VA</iso3166-2><postalCode>20151</postalCode><comment><line
number = "1">Line
1</line></comment><parentOrgHandle>NNNN</parentOrgHandle><registrationDate></registrationDate>
<privateCustomer>true</privateCustomer></customer>"
https://rest-beta.arin.net/rest/net/NET-NN-NN-128-0-1/customer?apikey=API-NNNN-NNNN-NNNN-NNNN
The customer payload is copied directly from the documentation,
substituting our parentOrgHandle and PARENTNETHANDLE and API key values.
The only response is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><error
xmlns="http://www.arin.net/regrws/core/v1"><additionalInfo/><code>E_SCHEMA_VALIDATION</code><components/><message>The
XML payload did not validate against the defined schema. Please see the
documentation for details.</message></error>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.arin.net/pipermail/arin-tech-discuss/attachments/20130125/dd55fef4/attachment.html>
More information about the arin-tech-discuss
mailing list