[arin-tech-discuss] rest POCHANDLE returns not found

Andy Newton andy at arin.net
Fri Aug 5 13:23:06 EDT 2011


Bill,

While it is possible to use a browser for testing with Whois-RWS, using it for Reg-RWS is not so easy as most browsers cannot be coerced to set the content-type to application/xml. (Whois-RWS supports multiple content types, whereas Reg-RWS only supports XML). I suggest using command line tools such as wget, curl, or xmllint for testing REST interactions outside your framework. Additionally, Google has a graphical REST client for Windows and Mac at http://code.google.com/p/rest-client.

Using the information you gave to Eddie, I was able to use wget with your API KEY to GET the POC you were after.

BTW, are you using our production system or do you have access to our OT&E Reg-RWS system, which allows you to play with your data without actually touching the production system? I recommend signing up for OT&E access if you have not already done so.

I hope this helps.
Andy Newton,
ARIN Chief Engineer

On Aug 5, 2011, at 10:43 AM, Bill Dolan wrote:

> Thank you Andy.  It seems I got some misinformation from Eddie Diego regarding the url of the RWS.
>  
> Thanks to you, the issue of being able to connect is resolved.  I did have to add a "Content-Type=application/xml" header to resolve an Unsupported Media Type response.  Currently however, I still do not get the expected response from the GET /org/ORGHANDLE or GET /poc/POCHANDLE methods:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <error xmlns="http://www.arin.net/regrws/core/v1">
>  <additionalInfo/>
>   <code>E_OBJECT_NOT_FOUND</code>
>   <components>
>    <component>
>     <message>The referenced object does not exist.</message> 
>     <name>handle</name>
>    </component>
>   </components>
>   <message>The referenced object does not exist.</message>
>  </error>
> Any ideas?  I thought maybe it had to do with my payload.  The documentation says there is no payload required for the GET /poc/POCHANDLE method.  Unfortunately, my integration framework does not allow null in the payload.  I have tried a single space and I have tried <poc /> but get the same error above.  Posting via a browser has the same effect.
>  
> Bill
> >>> Andy Newton <andy at arin.net> 8/5/2011 9:21 AM >>>
> Bill,
> 
> Whois-RWS does not use API KEYs at present, it is a read-only service with public data. Inclusion of the apikey parameter may be causing the problem, though I can't reproduce your issue.
> 
> However, I think you want to use the registration restful web service (Reg-RWS). At present it is at www.arin.net and requires https (e.g. https://www.arin.net/rest/poc/POCHANDLE?apikey=API-XXXX-XXXX-XXXX-XXXX). You can verify your API KEY via ARIN Online. Also note that Reg-RWS only allows access to your resources; that is the resources with which your ARIN Online user account has been linked to via POCs.
> 
> I hope this is helpful information and answers your question.
> Andy Newton,
> ARIN Chief Engineer
> 
> On Aug 4, 2011, at 3:43 PM, Bill Dolan wrote:
> 
> > Converting from email...just trying to make some initial contact with ARIN rest service.
> > I submit either of the following (full packet below) and get 404 error, but not like 404 page not found...more like query fail. Message says Not Found.  When submit with browser, message says "No record found for the handle provided."
> >  
> > http://whois.arin.net/rest/org/ORGHANDLE?apikey=API-xxxx-xxxx-xxxx-xxxx
> > http://whois.arin.net/rest/poc/POCHANDLE?apikey=API-xxxx-xxxx-xxxx-xxxx
> >  
> > The body of the request is empty (rather a single space, cause my integration platform does not allow empty body.
> >  
> > I opened ticket to confirm apikey is correct and linked to POC and org, which was confirmed.  What am I doing wrong? Do I need to include something else in the request?  Username/password?  I would imagine I'd get a different error.
> > Sorry to sound like a noob, just frustrated.
> >  
> > Bill
> >  
> > packet sent:
> > Hypertext Transfer Protocol 
> > GET /rest/org/ORGHANDLE?apikey=API-xxxx-xxxx-xxxx-xxxx HTTP/1.1\r\n 
> > [Expert Info (Chat/Sequence): GET /rest/org/ORGHANDLE?apikey=API-xxxx-xxxx-xxxx-xxxx HTTP/1.1\r\n] 
> > Request Method: GET 
> > Request URI: /rest/org/ORGHANDLE?apikey=API-xxxx-xxxx-xxxx-xxxx 
> > Request Version: HTTP/1.1 
> > User-Agent: WebSphere CastIron Client\r\n 
> > Content-Type: text/plain; charset="UTF-8"\r\n 
> > Host: whois.arin.net\r\n 
> > \r\n
> >  
> >  
> > Bill Dolan
> > Tech App SW Lead
> > <ATT00001.jpeg>
> > 200 Jericho Quadrangle
> > Jericho, NY  11753
> > 516.803.6717 (office)
> > 516.807.8850 (mobile)
> > Why Optimum Lightpath?
> > www.optimumlightpath.com/why
> > 
> > -------------------------------------------------------- 
> > The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain information concerning Cablevision and/or its affiliates and subsidiaries that is proprietary, privileged, confidential and/or subject to copyright. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient(s) is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
> > --------------------------------------------------------_______________________________________________
> > arin-tech-discuss mailing list
> > arin-tech-discuss at arin.net
> > http://lists.arin.net/mailman/listinfo/arin-tech-discuss
> 
> 
> -------------------------------------------------------- 
> The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain information concerning Cablevision and/or its affiliates and subsidiaries that is proprietary, privileged, confidential and/or subject to copyright. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient(s) is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
> --------------------------------------------------------_______________________________________________
> arin-tech-discuss mailing list
> arin-tech-discuss at arin.net
> http://lists.arin.net/mailman/listinfo/arin-tech-discuss




More information about the arin-tech-discuss mailing list