This looks like an RPC/encoded message.
You've included
- xsi:type information
 
A wrapped service message would look something like this:
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
 <soapenv:Body>
  <ns1:Add xmlns:ns1="http://math.samples/">
   <B>4.1</B>
   <A>2.2</A>
  </ns1:Add>
 </soapenv:Body>
</soapenv:Envelope>
 
Keep in mind that when you're using WRAPPED (or any literal encoding), you need a WSDL file to get the schema of the message body. Otherwise the SOAP runtime has no idea how to type map it.
 
Anne
 
----- Original Message -----
Sent: Monday, August 04, 2003 1:47 AM
Subject: Is this a wrapped service ?

I have a service similar to math in samples. I wrote a wsdd and a client (I'm not usnig wsdl or wsdl2java).If I run the TCP monitor shows the following messages (given bellow).
 
My question is :::
        Is it a wrapped service? 
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:Add soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://math.samples/">
   <B xsi:type="xsd:float">4.1</B>
   <A xsi:type="xsd:float">2.2</A>
  </ns1:Add>
 </soapenv:Body>
</soapenv:Envelope>
 
And the reply is:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <AddResponse xmlns="http://math.samples/">
   <AddResult xsi:type="xsd:float">6.3</AddResult>
  </AddResponse>
 </soapenv:Body>
</soapenv:Envelope>
 
However I use a call object to invoke this service. Am I missing something here? Am I going against the definition of wrapped style here?
 
Thank you,
Dimuthu.
 

Reply via email to