Hello,

I have a service provided by Axis 1.4. Because that service is written
by an other company, I cannot change the service itself.
I'm writting a client to that service. I'm using Axis 2 (1.1-SNAPSHOT I
took last week).

I generate a Stub with WSDL2Code using adb. I choose adb because it is
the default choice and I can change if another one is better.
My problem is that the stub give an empty result because it cannot find
the data : I have an empty result because the data is not inline.

The calling code :
                AbsAdminServiceStub.AdmAddUser user = new
AbsAdminServiceStub.AdmAddUser();
                user.setIdUser(unite.getIdCoffre());
                user.setIdUserDetails(unite.getLibelle());

                AbsAdminServiceStub.AdmAddUserResponse reponse =
stub.AdmAddUser(user);

                OMElement[] resultat =
réponse.getAdmAddUserReturn().getItem(); // returns null

The WSDL and the xml answer are provider in attachement.

I tried to add

            Options options = stub._getServiceClient().getOptions();
           
options.setProperty(org.apache.axis2.Constants.Configuration.ENABLE_MTOM,
Boolean.TRUE);

But nothing changed.

What can I do to make my client work ?

Thank you.

-- 
Jérôme Mainaud               Klee Group
[EMAIL PROTECTED]      <http://www.kleegroup.com/>
+ 33 146 295 825            Tel: + 33 146 292 525
                            Fax: + 33 146 292 529

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="https://abs.taoto.com/travaux_ws/AbsAdmin.jws"; xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:impl="https://abs.taoto.com/travaux_ws/AbsAdmin.jws"; xmlns:intf="https://abs.taoto.com/travaux_ws/AbsAdmin.jws"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
 <wsdl:types>
  <schema targetNamespace="http://xml.apache.org/xml-soap"; xmlns="http://www.w3.org/2001/XMLSchema";>
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="Vector">
    <sequence>
     <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:anyType"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>

   <wsdl:message name="AdmAddUserRequest">
      <wsdl:part name="IdUser" type="xsd:string"/>
      <wsdl:part name="IdUserDetails" type="xsd:string"/>
   </wsdl:message>

   <wsdl:message name="AdmAddUserResponse">
      <wsdl:part name="AdmAddUserReturn" type="apachesoap:Vector"/>
   </wsdl:message>
   
   <wsdl:portType name="AbsAdmin">
      <wsdl:operation name="AdmAddUser" parameterOrder="IdUser IdUserDetails">
         <wsdl:input message="impl:AdmAddUserRequest" name="AdmAddUserRequest"/>
         <wsdl:output message="impl:AdmAddUserResponse" name="AdmAddUserResponse"/>
      </wsdl:operation>
   </wsdl:portType>

   <wsdl:binding name="AbsAdminSoapBinding" type="impl:AbsAdmin">
      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="AdmAddUser">
         <wsdlsoap:operation soapAction=""/>
         <wsdl:input name="AdmAddUserRequest">
            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://DefaultNamespace"; use="encoded"/>
         </wsdl:input>
         <wsdl:output name="AdmAddUserResponse">
            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="https://abs.taoto.com/travaux_ws/AbsAdmin.jws"; use="encoded"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>

   <wsdl:service name="AbsAdminService">
      <wsdl:port binding="impl:AbsAdminSoapBinding" name="AbsAdmin">
         <wsdlsoap:address location="https://abs.taoto.com/travaux_ws/AbsAdmin.jws"/>
      </wsdl:port>
   </wsdl:service>

</wsdl:definitions>
<?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:AdmAddUserResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="https://d3s.dictao.com/arcade_ws/D3SAdmin.jws";><AdmAddUserReturn href="#id0"/></ns1:AdmAddUserResponse><multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xsi:type="ns2:Vector" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns2="http://xml.apache.org/xml-soap";><item xsi:type="soapenc:int">2</item></multiRef></soapenv:Body></soapenv:Envelope>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to