){ $xml .= $_; }
my $data = SOAP::Data->name( 'msg ')->value($xml)->type( 'xml ');
my $soap = SOAP::Lite
->outputxml(1)
->readable(1)
->proxy("http://psdappweb1.csa.scot.nhs.uk:7782/PRS/PRSRegistration")
->uri("urn:oracle:ReceiveMessage")
->on_action(sub { sprintf '"%s"', shift });
my $som = $soap->ReceiveMessage("$data");
exit 0;
and here's the output in detail:-
SOAP::Serializer::new: ()
SOAP::Deserializer::new: ()
SOAP::Parser::new: ()
SOAP::Lite::new: ()
SOAP::Transport::HTTP::Client::new: ()
SOAP::Serializer::envelope: ()
SOAP::Serializer::envelope: ReceiveMessage SOAP::Data=HASH(0x20fad58)
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x210411c)
SOAP::Transport::HTTP::Client::send_receive: POST http://psdappweb1.csa.scot.nhs
.uk:7782/PRS/PRSRegistration HTTP/1.1
Accept: text/xml
Accept: multipart/*
Content-Length: 586
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:oracle:ReceiveMessage"
SOAP::Data=HASH(0x20fad58)
SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x242fd08)
SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 504 Gateway Timeout
Connection: close
Date: Tue, 18 Jan 2005 15:14:33 GMT
Server: NetCache appliance (NetApp/5.5R6D15)
Content-Length: 283
Content-Type: text/html
Client-Date: Tue, 18 Jan 2005 15:14:35 GMT
Client-Peer: 164.134.80.80:3128
Client-Response-Num: 1
Title: 504 Gateway Timeout
504 Gateway Timeout
Gateway Timeout
The following error occurred:
[code=GATEWAY_TIMEOUT] A gateway timeout occurred. The server is unreachable. Re
try the request.
Please contact the administrator.
main::(sendXmlToPRS.pl:24): exit 0;