in reply to Re^2: using a client SOAP with SOAP::Lite with ComplexType
in thread using a client SOAP with SOAP::Lite with ComplexType
When I run your code I get an envelope which looks on balance to okay:
Although the extra <c-gensym3 /> element seems to be erroneous and can be removed by changing the \SOAP::Data->value($request_obj->as_soap_data) to simply $request_obj->as_soap_data. The missing namespace prefix on the SOAP envelope would appear to be a bug in SOAP::Lite and can be fixed by omitting the setting of the soapversion().<?xml version="1.0" encoding="UTF-8"?> <Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:namesp2="http://namespaces.soaplite.com/perl" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Body> <changeDeliveryState xmlns="http://my_serv/services/DeliveryWS?wsd +l"> <c-gensym3> <namesp1:Context xmlns:namesp1="http://my_serv/services/Delive +ryWS?wsdl" xsi:type="namesp2"> <agent xsi:type="xsd:int">1</agent> <user xsi:type="xsd:string">jbbec</user> </namesp1:Context> </c-gensym3> <c-gensym8 xsi:type="xsd:int">526101</c-gensym8> <c-gensym10 xsi:type="xsd:int">2</c-gensym10> </changeDeliveryState> </Body> </Envelope>
However I suspect that your actual error might be coming from elsewhere, could you post the output you get when you use:
So we can see what XML is actually being generated and returned.use SOAP::Lite +trace => 'all';
/J\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: using a client SOAP with SOAP::Lite with ComplexType
by jeanba (Novice) on May 12, 2006 at 06:40 UTC | |
by gellyfish (Monsignor) on May 12, 2006 at 08:18 UTC | |
by jeanba (Novice) on May 12, 2006 at 09:24 UTC | |
by jeanba (Novice) on May 12, 2006 at 14:26 UTC |