Mark,
Thank you for the response, after changing to "data" it worked.
Page 97 of srsApiDoc.pdf (OpenSRS v.2.75 API Specification) has
given it as "Data". For once I thought that it might be a typing mistake
but ... :-)
Regards,
Amit.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On
> Behalf Of Mark
> Sent: Thursday, July 10, 2003 11:24 PM
> To: Amit Rana
> Cc: [EMAIL PROTECTED]
> Subject: Re: invalid method
>
> Heya Amit,
>
> Some of the hash keys being sent in are in mixed-case (ie, Data). Set
all
> to lowercase, and it should be good. Other than that, I can't see any
> obvious problems.
>
> Mark.
>
> On Thu, 10 Jul 2003, Amit Rana wrote:
>
> > Date: Thu, 10 Jul 2003 16:26:40 +0900
> > From: Amit Rana <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: invalid method
> >
> > Hi,
> > Thanks everyone for their reply to my earlier message. I think I
> > will use Roger's idea of serializing domain names 1, 2, 3...
> >
> > Now I have stuck in another problem, this is when I send an xml
> > request to Modify contact information for a domain
> > --snip--
> > <item key="object">DOMAIN</item>
> > <item key="cookie">766599716:380526</item>
> > <item key="action">MODIFY</item>
> > <item key="protocol">XCP</item>
> > --snip--
> >
> > I get a response saying that this is an invalid method. But this
> > is what is given in srsApiDoc.pdf
> >
> > Is there something I am missing? Please feel free to forward me
> > to any document.
> >
> > Regards,
> > Amit.
> >
> > Full request and response are given below:
> >
> >
<OPS_envelope><header><version>0.9</version><msg_id>5.01462685995842</ms
> >
g_id><msg_type>standard</msg_type></header><body><data_block><dt_assoc><
> > item key="attributes"><dt_assoc><item key="org_name"/><item
> > key="Data">contact_info</item><item
key="contact_set"><dt_assoc><item
> > key="owner"><dt_assoc><item key="address3"/><item key="state"/><item
> > key="address2"/><item key="address1"/><item key="country"/><item
> > key="org_name"/><item key="city"/><item key="first_name"/><item
> > key="email">[EMAIL PROTECTED]</item><item key="postal_code"/><item
> >
key="last_name"/></dt_assoc></item></dt_assoc></item></dt_assoc></item><
> > item key="object">DOMAIN</item><item
> > key="cookie">766599716:380526</item><item
> > key="action">MODIFY</item><item
> >
key="protocol">XCP</item></dt_assoc></data_block></body></OPS_envelope>
> >
> > I get response:
> > <OPS_envelope>
> > <header>
> > <version>0.9</version>
> > </header>
> > <body>
> > <data_block>
> > <dt_assoc>
> > <item key="object" class="">DOMAIN</item>
> > <item key="response_text" class="">Invalid Command:
modify</item>
> > <item key="is_success" class="">0</item>
> > <item key="response_code" class="">400</item>
> > <item key="protocol" class="">XCP</item>
> > <item key="action" class="">REPLY</item>
> > </dt_assoc>
> > </data_block>
> > </body>
> > </OPS_envelope>
> >
> >