SOAP timing out

SOAP timing out

am 27.09.2007 22:39:45 von Amer Neely

I have a working script that successfully sends data from my home PC to
a SOAP server in a .NET environment. I run Win2K on this box.

When I upload the script to a Redhat server, it times out, and does not
submit any data.

Anyone have a clue what might be causing this?

-------------------------------8<---------------------------------
#!/usr/bin/perl
use strict;
use warnings;

use lib 'PerlMods/SOAP-Lite-0.69/lib';
use SOAP::Lite ( +trace => 'all', maptype => {} );

my $FirstName='Amer';
my $LastName='Neely';
my $proxy = 'http://xxx.xxx.xxx.xxx:180/somescript.asmx'; # edited
my $soap = SOAP::Lite
-> uri('http://localhost:180/somewhere')
-> on_action( sub { join '/', 'http://localhost:180/somewhere','Insert'} )
-> proxy('http://xxx.xxx.xxx.xxx:180/somescript.asmx');

my $method = SOAP::Data->name('Insert')
->attr({xmlns => 'http://localhost:180/somewhere'});

my @params = (
SOAP::Data-> name(FirstName => $FirstName),
SOAP::Data-> name(LastName => $LastName));
print $soap->call($method => @params)->result;
-------------------------------8<---------------------------------

This prints 'OK', which is what is returned by the 'Insert' function
from the server.

--
Amer Neely
w: www.webmechanic.softouch.on.ca/
Perl | MySQL programming for all data entry forms.
"Others make web sites. We make web sites work!"

Re: SOAP timing out

am 28.09.2007 20:21:43 von rahed

Amer Neely writes:

> I have a working script that successfully sends data from my home PC
> to a SOAP server in a .NET environment. I run Win2K on this box.
>
> When I upload the script to a Redhat server, it times out, and does
> not submit any data.
>
> Anyone have a clue what might be causing this?

Change a SOAPAction header through an on_action method.

--
Radek

Re: SOAP timing out

am 28.09.2007 21:34:44 von Amer Neely

rahed wrote:
> Amer Neely writes:
>
>> I have a working script that successfully sends data from my home PC
>> to a SOAP server in a .NET environment. I run Win2K on this box.
>>
>> When I upload the script to a Redhat server, it times out, and does
>> not submit any data.
>>
>> Anyone have a clue what might be causing this?
>
> Change a SOAPAction header through an on_action method.
>

Ummm. I'm sorry but can you provide a little more detail for that? I'm
new to SOAP and .NET, so I need a little more to work with.

--
Amer Neely
w: www.webmechanic.softouch.on.ca/
Perl | MySQL programming for all data entry forms.
"Others make web sites. We make web sites work!"

Re: SOAP timing out

am 29.09.2007 11:40:14 von rahed

Amer Neely writes:

> Ummm. I'm sorry but can you provide a little more detail for that? I'm
> new to SOAP and .NET, so I need a little more to work with.

First try not to use on_action method. Default is set to uri#method and
it works when calling Perl service from Perl client.

Anyway it should return some fault report. If not, it's an http issue.

--
Radek

Re: SOAP timing out

am 29.09.2007 12:59:41 von Amer Neely

rahed wrote:
> Amer Neely writes:
>
>> Ummm. I'm sorry but can you provide a little more detail for that? I'm
>> new to SOAP and .NET, so I need a little more to work with.
>
> First try not to use on_action method. Default is set to uri#method and
> it works when calling Perl service from Perl client.
>
> Anyway it should return some fault report. If not, it's an http issue.
>

I am trying a modification to my script based on the example at
http://users.skynet.be/pascalbotte/rcx-ws-doc/perldotnet.htm

This return in the error log looks worrisome:
SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x1f8f14c)
^^^^^^^^^^^^^^^

I am getting the fault report:
Server was unable to process request. ---> Object reference not set to
an instance of an object

The script times out with a '500 Internal Server Error'.

Does this help in debugging?

--
Amer Neely
w: www.webmechanic.softouch.on.ca/
Perl | MySQL programming for all data entry forms.
"Others make web sites. We make web sites work!"

Re: SOAP timing out

am 29.09.2007 13:05:35 von Amer Neely

rahed wrote:
> Amer Neely writes:
>
>> Ummm. I'm sorry but can you provide a little more detail for that? I'm
>> new to SOAP and .NET, so I need a little more to work with.
>
> First try not to use on_action method. Default is set to uri#method and
> it works when calling Perl service from Perl client.
>
> Anyway it should return some fault report. If not, it's an http issue.
>

I am trying a modification to my script based on the example at
http://users.skynet.be/pascalbotte/rcx-ws-doc/perldotnet.htm

I don't get a fault report, but this entry in the log file worries me:
SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x89533f4)
SOAP::Transport::HTTP::Client::send_receive: 500 (Internal Server Error)
Can't connect to xxx.xxx.xxx.xxx:180 (connect: timeout)

The script still times out with a '500 Internal Server Error'.

Does this help in debugging?
--
Amer Neely
w: www.webmechanic.softouch.on.ca/
Perl | MySQL programming for all data entry forms.
"Others make web sites. We make web sites work!"

Re: SOAP timing out

am 29.09.2007 13:42:51 von rahed

Amer Neely writes:

> I don't get a fault report, but this entry in the log file worries me:
> SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x89533f4)
> SOAP::Transport::HTTP::Client::send_receive: 500 (Internal Server
> Error) Can't connect to xxx.xxx.xxx.xxx:180 (connect: timeout)

Application doesn't respond, you want to look at server faultstring
what's wrong.

--
Radek

Re: SOAP timing out

am 29.09.2007 18:35:27 von Amer Neely

rahed wrote:
> Amer Neely writes:
>
>> I don't get a fault report, but this entry in the log file worries me:
>> SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x89533f4)
>> SOAP::Transport::HTTP::Client::send_receive: 500 (Internal Server
>> Error) Can't connect to xxx.xxx.xxx.xxx:180 (connect: timeout)
>
> Application doesn't respond, you want to look at server faultstring
> what's wrong.
>

xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">soap:ServerServer
was unable to process request. ---> Object reference not set to an
instance of an object.
/>


--
Amer Neely
w: www.webmechanic.softouch.on.ca/
Perl | MySQL programming for all data entry forms.
"Others make web sites. We make web sites work!"

Re: SOAP timing out

am 29.09.2007 22:00:38 von rahed

Amer Neely writes:

> > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">soap:ServerServer
> was unable to process request. ---> Object reference not set to an
> instance of an object.
> />


You've got to fiddle with SOAPAction and probably other things as
described in "SOAP::Lite client with a .NET server" section of SOAP::Lite
docs.

--
Radek

Re: SOAP timing out

am 29.09.2007 22:24:11 von Amer Neely

rahed wrote:
> Amer Neely writes:
>
>> >> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema">soap:ServerServer
>> was unable to process request. ---> Object reference not set to an
>> instance of an object.
>> />

>
> You've got to fiddle with SOAPAction and probably other things as
> described in "SOAP::Lite client with a .NET server" section of SOAP::Lite
> docs.
>

It seems fiddling is all I've been doing for the past week or so :) I'll
do some more. For all its hype I'm not impressed with the .NET <-> SOAP
interoperability.

--
Amer Neely
w: www.webmechanic.softouch.on.ca/
Perl | MySQL programming for all data entry forms.
"Others make web sites. We make web sites work!"