Send arin-tech-discuss mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.arin.net/mailman/listinfo/arin-tech-discuss
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of arin-tech-discuss digest..."
Today's Topics:
1. XML payload did not validate (Jamie Kohns)
2. Re: XML payload did not validate (Andy Newton)
----------------------------------------------------------------------
Message: 1
Date: Fri, 25 Jan 2013 15:53:56 -0500
From: Jamie Kohns <[email protected]>
To: [email protected]
Subject: [arin-tech-discuss] XML payload did not validate
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
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:
<http://lists.arin.net/pipermail/arin-tech-discuss/attachments/20130125/dd55fef4/attachment-0001.html>
------------------------------
Message: 2
Date: Fri, 25 Jan 2013 21:31:06 +0000
From: Andy Newton <[email protected]>
To: Jamie Kohns <[email protected]>,
"[email protected]" <[email protected]>
Subject: Re: [arin-tech-discuss] XML payload did not validate
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="us-ascii"
From: Jamie Kohns
<[email protected]<mailto:[email protected]>>
Date: Friday, January 25, 2013 3:53 PM
To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Subject: [arin-tech-discuss] XML payload did not validate
<customer xmlns="<customer
Jamie,
I think this might be the problem.
Andy Newton,
Chief Engineer, ARIN
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.arin.net/pipermail/arin-tech-discuss/attachments/20130125/b2d11f07/attachment-0001.html>
------------------------------
_______________________________________________
arin-tech-discuss mailing list
[email protected]
http://lists.arin.net/mailman/listinfo/arin-tech-discuss
End of arin-tech-discuss Digest, Vol 24, Issue 1
************************************************