Hi all,

I'm trying to support user define data types for Axis C++. My server side is
axis-java.
But when I request "echoStruct" for samples.echo.* with the envelop.

<?xml version="1.0" encoding="UTF-8"?>
   <soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> 
      <soapenv:Body>  
         <ns3:echoStruct xmlns:ns3="http://soapinterop.org/xsd";>   
            <SOAPStruct xsi:type="ns3:SOAPStruct">    
               <varString xsi:type="xsd:string">Hello World</varString>    
               <varInt xsi:type="xsd:int">100</varInt>    
               <varFloat xsi:type="xsd:float">10.000000</varFloat>   
            </SOAPStruct>  
         </ns3:echoStruct> 
      </soapenv:Body>
   </soapenv:Envelope>


The server replies with envelop:


<?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:echoStructResponse 
 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
                  xmlns:ns1="http://soapinterop.org/";>
   <return href="#id0"/>
  </ns1:echoStructResponse>
  <multiRef id="id0" soapenc:root="0" 
 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
                  xsi:type="ns2:SOAPStruct" 
                  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
                  xmlns:ns2="http://soapinterop.org/xsd";>
   <varString xsi:type="xsd:string">Hello World</varString>
   <varInt xsi:type="xsd:int">100</varInt>
   <varFloat xsi:type="xsd:float">10.0</varFloat>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>


Which has multiRef element!!

But when I use the axis-java (as client) sample's test for interoperability.

The Sample send the following SOAP envelop with multi-references.


<?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:echoStruct
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
        
xmlns:ns1="http://soapinterop.org/";>   
            <inputStruct href="#id0"/>  
         </ns1:echoStruct>  
         <multiRef id="id0" soapenc:root="0" 
        
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
                                    xsi:type="ns2:SOAPStruct" 
        
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
                                    xmlns:ns2="http://soapinterop.org/xsd";>

            <varString xsi:type="xsd:string">Hello</varString>   
            <varInt xsi:type="xsd:int">5</varInt>   
            <varFloat xsi:type="xsd:float">103.0</varFloat>  
         </multiRef> 
      </soapenv:Body>
   </soapenv:Envelope> 


I guess I should not need to send multi-reference SOAP envelop for user
define 
types SOAPStruct. To make my C++ client interoperable could somebody tell me

whether I need to support multiref in my client code??

regards
Lilantha

Reply via email to