SOAP-Lite - Argument Type Mismatch

Posted on Wed Jul 23 23:37:43 2008 by caplife
Argument Type Mismatch
I have upgraded from SOAP::Lite 0.6 to 0.71 and my previously working web service calls fail with the above error. I have managed to get 1 web service call to work by changing the single parameter data type from "int" to "long". Below is an example of a the two xml messages, one works and one doesn't. The only diffreence is the reference to the 2001 xml schema. Any help appreciated. FAILED XML message using version 0.71 =======================================
<?xml version="1.0" encoding="ISO-8859-1"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/en +coding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <registerPlayer> <firstName xsi:type="xsd:string">testtesttest</firstName> <lastName xsi:type="xsd:string">tststststststs</lastName> <email xsi:type="xsd:string">phil@phil.com</email> <startDate xsi:type="xsd:date">2008-07-23</startDate> </registerPlayer> </soap:Body> </soap:Envelope>
WORKING XML Message using version 0.6 =====================================
<?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soa +p/encoding/"> <SOAP-ENV:Body> <registerPlayer> <firstName xsi:type="xsd:string">erte</firstName> <lastName xsi:type="xsd:string">rtertyertyertyerty</lastName> <email xsi:type="xsd:string">phil@phil.com</email> <startDate xsi:type="xsd:date">2008-07-23</startDate> </registerPlayer> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Write a response