Hi folks,

I've just started using the OpenSRS client software, so I do apologise if
this is covered in the docs.

Here's my problem: I'm integrating XML_Client.pm with some custom CGI,
running on Linux / Apache / mod_perl. For my first test, I thought I'd try a
lookup.

I'm sending this:
my $tx =
{
        action          =>      'lookup',
        object          =>      'domain',
        registrant_ip   =>      <snip - my IP address>,
        attributes      =>      { domain => 'andytest.com' }
};
And I'm getting back this:
$VAR1 = {
          'response_code' => 210,
          'response_text' => 'Domain available',
          'is_success' => 1,
          'attributes' => {
                            'reason' => undef,
                            'status' => 'available',
                            'matches' => [
                                           'andytest.net',
                                           'andytest.org'
                                         ],
                            'price_status' => undef,
                            'upg_to_subdomain' => undef
                          }
        };
Which is great.

But I'm getting this in my error log:
[Tue Dec 18 18:54:54 2001] null: Use of uninitialized value at
/blah...blah/OpenSRS/XML_Client.pm line 586, <GEN0> chunk 2.

Line 586 of XML_Client.pm contains this:
    if ( $prompt->{response_code} == 555 ) {

So I thought I'd check if $prompt->{response_code} existed, which it
doesn't, because $prompt looks like this:
$VAR1 = {
          'protocol' => 'XCP',
          'action' => 'CHECK',
          'attributes' => {
                            'sender' => 'OpenSRS SERVER',
                            'state' => 'ready',
                            'version' => 'XML:0.1'
                          },
          'object' => 'VERSION'
        };

Now I've read in the FAQ that the test server doesn't check my IP address to
authenticate - so I'm guessing I need to tell XML_Client not to expect a
$prompt->{response_code} ?

How would I go about doing that?

All assistance gratefully appreciated.

Cheers,
Andy.

--
Andrew Ellam
http://aellam.net/


Reply via email to