Dear all,
we have to communicate with a SOAP server which seems a bit picky about the
messages it´s willing to process.
For some reason, the commands to create and destroy a session are using the
document/literal encoding style while the other commands have to be send as
rpc-encoded messages.
Session creation and destruction work fine.
We´ve already found out that we have to add "use
XML::Compile::SOAP11::Encoding;" and that we have to create a different
XML::Compile::WSDL11 object to feed the WSDL files for the other commands
to.
Now we´re able to send other commands to the server using that second
object, but the server only returns a fault:
JAXRPCTIE01: Ausnahmefehler beim Bearbeiten der Anforderung: Unerwarteter
Kodierungsstil: erwartet=http://schemas.xmlsoap.org/soap/encoding/, tats
\xC3\xA4chlich=
which roughly translates to
"Exception: unexpected encoding style: expected=http://schemas.xmlsoap.org/
soap/encoding/, got="
The request message indeed doesn´t contain an "encodingStyle" attribute
anywhere.
The WSDL declares the usage of the encoding style:
-- snip --
<binding name="XYZShowDataInterfaceBinding" type="tns:XYZShowDataInterface">
<soap:binding
transport="http://schemas.xmlsoap.org/soap/http"
style="rpc"/>
<operation name="executeXYZShowData">
<soap:operation soapAction=""/>
<input>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded"
namespace="urn:xyz"/>
</input>
-- / snip --
The "Envelope" element that´s currently generated looks like this:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/">
If I manually change that to
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/
encoding/">
and re-submit the modified message using lwp-request the server accepts the
request.
Until now I´ve been unable to find out how I´m supposed to enforce the
presence of the missing attribute.
Any suggestions?
--
HeikoBEGIN:VCARD
ADR;TYPE=pref;TYPE=work:;;Jülicher Str. 6;Köln;Nordrhein-Westfalen;50674;
Germany
ADR;TYPE=postal:270451;;;Köln;Nordrhein-Westfalen;50510;Germany
EMAIL:[email protected]
FN:Heiko Jansen
N:Jansen;Heiko;;;
ORG:hbz - Hochschulbibliothekszentrum des Landes NRW;Portale
TEL;TYPE=WORK:+49 221 / 400 75 150
TEL;TYPE=FAX:+49 221 / 400 75 190
UID:995be063-dfe4-4f62-bd04-7fd91ebcf999
URL:http://www.hbz-nrw.de/
VERSION:3.0
X-KADDRESSBOOK-X-Office:524
X-SKYPE:heiko_jansen
END:VCARD
_______________________________________________
Xml-compile mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile