SoapLite Error



Hello,

we're trying to put together a SOAP::Lite application but keep getting this
error message:
===========================================================
soaptest.cgi: Element 'XMLRequest' can't be allowed in valid XML message. Died.
at /usr/lib/perl5/site_perl/5.8.8/SOAP/Lite.pm
===========================================================

this is a snip of code being used, the line
" SOAP::Data->name(XMLRequest=>$xmllines), "

seems to be causing the error.
===========================================================
my $soap = SOAP::Lite
-> uri('https://www.edentifyservices.com/')
-> proxy('https://www.edentifyservices.com/XMLGateway/Request.asmx')
-> on_action( sub { return 'http://tempuri.org/ProcessRequest' });

# Format the SOAP envelope
my $method = SOAP::Data->name('ProcessRequest')->attr({xmlns
=>'http://tempuri.org/'});

# Format the SOAP body
my $query = SOAP::Data->name(ProcessRequest => SOAP::Data->value(
SOAP::Data->name(ServiceName=>'idalert'),
SOAP::Data->name(XMLRequest=>$xmllines),
SOAP::Data->name(Userid=>$conf{edentify}->{Userid}),
SOAP::Data->name(password=>$conf{edentify}->{Password}),
SOAP::Data->name(Options=>''))
);

# Query the web service
my $result = $soap->call($method => $query);
=========================================================

This is the way it suppose to be setup according to documentation provided by
the service provider, Edentify. The "$xmllines" is a XML request formatted file
sent in the request. The "$xmllines" looks like this and passed to the 'XMLRequest=> :
=========================================================

<idalert><username>TotalPayroll</username><candidates><candidate>
<firstname>Karen</firstname><mi>R</mi><lastname>Jones</lastname>
<suffix></suffix><ssn>339448854</ssn><dob>6/25/1965</dob><locator>DD-987654321</locator>
<address><address1>8585 N. Center Ave.</address1><address2></address2>
<city>Jonestown</city><state>NE</state><zip>66654</zip></address>
</candidate></candidates></idalert>

=========================================================

Any help would be much appreciated. This is my first crack using SoapLite :)

Thx's
Mike(mickalo)Blezien
===============================
Thunder Rain Internet Publishing
Providing Internet Solution that Work
===============================

.



Relevant Pages

  • RE: SOAP Endpoint: How to Receive RAISERROR as Exception?
    ... I understand that you created a SOAP endpoint in your SQL Server 2005 ... generates an error message which is returned as a server error message to ... Microsoft Online Community Support ...
    (microsoft.public.sqlserver.connect)
  • Re: SOAP Endpoint: How to Receive RAISERROR as Exception?
    ... I understand that you created a SOAP endpoint in your SQL Server 2005 ... generates an error message which is returned as a server error message to ... Microsoft Online Community Support ...
    (microsoft.public.sqlserver.connect)
  • Re: Year comparison
    ... entering the date in abbreviated format, ... just the line that you provided results in the same error message ... No, YEARreturns 4 digit years, you'd want to use 2005 and 2099, ... but you've altered the validation considerably. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: "file cannot be opened because there are problems with content
    ... You are right to say that customers should not be required to work in XML, and that is one reason why I offer to try to recover documents when I see problems reported. ... The suggestion to save a copy in a different format does offer one way of playing safe, but it requires a lot of discipline, and if you do it, one of the formats must be a non-Word 2007 format - HTML, perhaps, as suggested by your link. ... The error message is a problem is with content - Location:> Part: ...
    (microsoft.public.word.application.errors)
  • Re: Failure of SendObject in Access 2003 Runtime
    ... DoCmd.SendObject acSendReport, "BlankReport" ... Windows Registry Guide by Jerry Honerycutt and after several hours ... Still getting the same error message when attempting to run the ... Then you should get a popup that allows the user to choose the format for the ...
    (microsoft.public.access.modulesdaovba)