Hi Csongor I get exactly the same result even with "sw_register". Should DOMAIN be in lower case? The documentation puts it in upper case.
Dave
On Tue, 2003-03-11 at 13:33, Csongor Fagyal wrote:
> Hi,
>
> Shouldn't that be "sw_register" instead of "SW_REGISTER"? I think the
> API is case sensitive.
>
> - Cs.
>
> >resent because I didn't get any replies. Are there any opensrs staff on this list?
> >
> >
> >I'm currently trying to write a plugin for Zaygo to work with opensrs. I
> >am getting the following error from the server. Can anyone guess at what
> >is going on?
> >
> >Dumper($server_response):
> >$VAR1 = {
> > 'attributes' => {},
> > 'response_text' => 'Invalid command: ',
> > 'is_success' => 0,
> > 'response_code' => 400
> > };
> >
> >The command sent to the server is shown below, however, I really want to
> >know why the server isn't sending any useful information back. Is this a
> >bug? How can I find out what I am doing wrong?
> >
> >Thanks,
> >
> >David Hugh-Jones
> >Zaygo Ltd
> >
> >
> >Dumper(\%command):
> >$VAR1 = {
> > 'object' => 'DOMAIN',
> > 'attributes' => {
> > 'reg_type' => 'new',
> > 'reg_username' => 'dash2',
> > 'period' => '1',
> > 'link_domains' => 0,
> > 'custom_tech_contact' => 1,
> > 'legal_type' => undef,
> > 'contact_set' => {
> > 'tech' => {
> > 'state' => undef,
> > 'first_name' => ' Paul',
> > 'country' => 'GB',
> > 'address1' => 'Tech addr',
> > 'address2' => undef,
> > 'last_name' => 'Smith',
> > 'fax' => '+44.8708318359',
> > 'postal_code' => 'LE16 7JG',
> > 'city' => 'tech city',
> > 'phone' => '01233 123123',
> > 'email' => '[EMAIL PROTECTED]',
> > 'org_name' => 'Dave Hugh-Jones'
> > },
> > 'admin' => {
> > 'state' => undef,
> > 'first_name' => ' John',
> > 'country' => 'GB',
> > 'address1' => 'admin street',
> > 'address2' => undef,
> > 'last_name' => 'Smith',
> > 'fax' => ' 01233 123124',
> > 'postal_code' => 'PC 123 ',
> > 'city' => 'admincity',
> > 'phone' => '01233 123432',
> > 'email' => '[EMAIL PROTECTED]',
> > 'org_name' => 'Dave Hugh-Jones'
> > },
> > 'billing' => {
> > 'state' => undef,
> > 'first_name' => undef,
> > 'country' => 'GB',
> > 'address1' => 'Add 1',
> > 'address2' => undef,
> > 'last_name' => 'Dave Testing',
> > 'fax' => ' 01233 123124',
> > 'postal_code' => 'PC 123 ',
> > 'city' => 'City',
> > 'phone' => '01233 123123',
> > 'email' => '[EMAIL PROTECTED]',
> > 'org_name' => 'Dave Hugh-Jones'
> > },
> > 'owner' => {
> > 'state' => 'County',
> > 'first_name' => undef,
> > 'country' => 'GB',
> > 'address1' => 'Add 1',
> > 'address2' => 'Add2',
> > 'last_name' => 'Dave Testing',
> > 'fax' => ' 01233 123124',
> > 'postal_code' => 'PC 123 ',
> > 'city' => 'City',
> > 'phone' => '01233 123123',
> > 'email' => '[EMAIL PROTECTED]',
> > 'org_name' => 'Dave Hugh-Jones'
> > }
> > },
> > 'nameserver_list' => [
> > {
> > 'sortorder' => 1,
> > 'name' => 'ns.foo.com'
> > },
> > {
> > 'sortorder' => 2,
> > 'name' => 'ns2.foo.com'
> > }
> > ],
> > 'tld_data' => {},
> > 'reg_domain' => '',
> > 'reg_password' => ***removed***,
> > 'domain' => 'availableithink.tv',
> > 'master_order_id' => undef,
> > 'lang_pref' => undef,
> > 'custom_nameservers' => 1
> > },
> > 'protocol' => 'XCP',
> > 'action' => 'SW_REGISTER'
> > };
> >
> >
> >
> >
> >
>
