axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Chow" <eric...@gmail.com>
Subject Axis2 client problem ?
Date Tue, 29 Aug 2006 03:16:58 GMT
Hello,

How can I write a simple client to the following WSDL with Axis2?
The parameter for QueryInv must use OMElement. How to construct the
OMElement with the following WSDL ?


=================================

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://facade.query.pi"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://facade.query.pi"
xmlns:intf="http://facade.query.pi"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns1="http://inv.query.pi"
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.2.1
Built on Aug 08, 2005 (11:49:10 PDT)-->
 <wsdl:types>
  <schema targetNamespace="http://inv.query.pi"
xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="InvWebQueryCriteria">
    <sequence>
     <element name="beginDataPedido" nillable="true" type="xsd:dateTime"/>
     <element name="beginDataPrior" nillable="true" type="xsd:dateTime"/>
     <element name="classCod" nillable="true" type="xsd:string"/>
     <element name="endDataPedido" nillable="true" type="xsd:dateTime"/>
     <element name="endDataPrior" nillable="true" type="xsd:dateTime"/>
     <element name="inventNomeC" nillable="true" type="xsd:string"/>
     <element name="inventNomeP" nillable="true" type="xsd:string"/>
     <element name="portRegisto" nillable="true" type="xsd:string"/>
     <element name="procNo" nillable="true" type="xsd:int"/>
     <element name="requerNomeC" nillable="true" type="xsd:string"/>
     <element name="requerNomeP" nillable="true" type="xsd:string"/>
     <element name="tituloC" nillable="true" type="xsd:string"/>
     <element name="tituloP" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>

   <wsdl:message name="queryInvRequest">

      <wsdl:part name="in0" type="tns1:InvWebQueryCriteria"/>

   </wsdl:message>

   <wsdl:message name="queryInvResponse">

      <wsdl:part name="queryInvReturn" type="xsd:string"/>

   </wsdl:message>

   <wsdl:portType name="WebQueryFacade">

      <wsdl:operation name="queryInv" parameterOrder="in0">

         <wsdl:input message="impl:queryInvRequest" name="queryInvRequest"/>

         <wsdl:output message="impl:queryInvResponse" name="queryInvResponse"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="WebQueryFacadeSoapBinding" type="impl:WebQueryFacade">

      <wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="queryInv">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="queryInvRequest">

            <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://facade.query.pi" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="queryInvResponse">

            <wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://facade.query.pi" use="encoded"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="WebQueryFacadeService">

      <wsdl:port binding="impl:WebQueryFacadeSoapBinding" name="WebQueryFacade">

         <wsdlsoap:address
location="http://10.1.25.64:8080/PiQueryWebModule/services/WebQueryFacade"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>


=================================

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message