Gianpiero wrote:
> 
> > Can someone tell me if there is any incompatibility issue
> > between Apache SOAP and Microsoft SOAP?
> 
> It's not so difficult.The Apache SOAP implementation always puts the
> xsi:type elements for all the parameters in the request while Microsoft SOAP
> Toolkit does not. You can handle this situation by instructing Apache SOAP
> Client to not to expect the xsi:type attribute in the response received.
> This is done by following lines in the client code:
> 
> SOAPMappingRegistry smr = new SOAPMappingRegistry();
> StringDeserializer sd = new StringDeserializer();
> smr.mapTypes(Constants.NS_URI_SOAP_ENC, new QName("", "Result"), null, null,
> sd);
[...]

Or you can add xsi:type attributes in MS SOAP like this:

  ISoapSerializerPtr pSerializer;  // smart pointer
  pSerializer->startElement( "firstName", "", "NONE", "" );
  pSerializer->SoapAttribute( "type", "", "xsd:string", "xsi" );
  pSerializer->writeString( "Wallace" );
  pSerializer->endElement();

-Chris

-- 
Chris Malley
PixelZoom, Inc.             Voice: +1.303.494.8849
835 Orman Drive             EMail: [EMAIL PROTECTED]
Boulder CO 80303-2616

Reply via email to