You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Octav Chipara <oc...@cse.unl.edu> on 2000/07/24 17:33:08 UTC
Is there any need for serialization/deserialization?
Hi,
I have the little problem in using a XML schema with SOAP. My schema and
my SOAP message are the following:
<schema xmlns="http://www.w3.org/1999/XMLSchema"
xmlns:rec="http://cse-mfayad2.unl.edu/~ochipara/Schema1"
targetNamespace="http://cse-mfayad2.unl.edu/~ochipara/Schema1">
<element name="recipe" type="string"/>
</schema>
<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>
<m:getRecipe
xmlns:m="http://cse-mfayad.unl.edu/xml-soap/RecipeFetcher"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<ns1:recipe
xmlns:ns1="http://cse-mfayad2.unl.edu/~ochipara/Schema1"
xsi:type="ns1:recipe">NachoDip</ns1:recipe>
</m:getRecipe>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
As you can see I do not use in my schema any type that the current
implementation of SOAP should not understand. The only thing that my heard
desires is that ns1:recipe to be compliant with my schema. I don't see why
I would get a deserializer error when inside my schema are types which
are default in the SOAPMappingRegistry. I guess this should not have to do
with serializing/deserializing but with the fact if my SOAP request is
valid or not! What do you guys think?
Octav
******************************************************************************
e-mail: ochipara@cse.unl.edu
phone: (402)472-9492
web page: www.cse.unl.edu/~ochipara
******************************************************************************