Actually, I'm starting to wonder if this is more of a misconception on my
part as well as that of the SOAP::Lite developer as I can't find what it was
that I was reading that led me to believe that in SOAP 1.1 booleans were to
be encoded as 0 or 1 only (even though mustUnderstand was restricted in that
manner for 1.1).
-- Marc
-----Original Message-----
From: Marc Tremblay [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 27, 2001 10:38 AM
To: Soap-Dev
Subject: Wrong encodingStyle being sent for boolean encoding.
Hello all,
I have a really simple SOAP server that I've been using to debug some
incompatilibity problems between SOAP::Lite for PERL and Apache SOAP. What
appears to be happening is Apache SOAP is creating a SOAP document that it
claims is encoded using SOAP 1.1, when in fact it's encoded using SOAP 1.2.
The request and response are shown below:
REQUEST (SOAP::Lite):
- encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" aka SOAP 1.1
- boolean encoded as 0 a la SOAP 1.1
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body><namesp1:bounceBoolean xmlns:namesp1="urn:TypeBouncer">
<c-gensym3 xsi:type="xsd:boolean">0</c-gensym3>
</namesp1:bounceBoolean>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
RESPONSE (Apache SOAP):
- encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" aka SOAP 1.1
- boolean encoded as 'false' a la SOAP 1.2
<?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:bounceBooleanResponse xmlns:ns1="urn:TypeBouncer"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:boolean">false</return>
</ns1:bounceBooleanResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I'm using the Aug 24, nightly build of Apache SOAP.
-- Marc