Hello, im' wrote a client for MS WebServices

the request is like this

<?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>
*<xsi:Autenticate 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmln:xsi="something">*
        <SiteName xsi:type="xsd:string">xxx</SiteName>
        <UserName xsi:type="xsd:string">xxxx</UserName>
        <Encrypted xsi:type="xsd:string">PLAIN</Encrypted>
          <Password xsi:type="xsd:string">utente1</Password>
*</xsi:Autenticate>*
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

but this don't work

the correct one is

<?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>
* <Autenticate 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>*
        <SiteName xsi:type="xsd:string">xxx</SiteName>
        <UserName xsi:type="xsd:string">xxxx</UserName>
        <Encrypted xsi:type="xsd:string">PLAIN</Encrypted>
          <Password xsi:type="xsd:string">utente1</Password>
* </Autenticate>*
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


the difference is                              <xsi:Autenticate 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmln:xsi="something">
                                                     <Autenticate 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>

There's a way to create the right one With Apache SOAP 2.2 ??

Regards


Reply via email to