axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anne Thomas Manes <atma...@gmail.com>
Subject Re: WSDL - duplicate methods
Date Thu, 18 Aug 2005 11:27:15 GMT
Your WSDL has some errors in it. When using RPC style, your message
parts must reference types rather than elements. Also Axis doesn't
support mixed styles, so you have to use either document or RPC.

Here's an updated WSDL:

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="DrugiServis"
 targetNamespace="XYZ"
 xmlns="http://schemas.xmlsoap.org/wsdl/"
 xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:tns="XYZ"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

 <types>
 </types>

 <message name="metoda4">
   <part type="xsd:string" name="aVal"/>
 </message>
 <message name="metoda4Response">
   <part type="xsd:string" name="result"/>
 </message>
 <message name="metoda3"/>
 <message name="metoda3Response"/>

 <portType name="DrugiServisPortType">
   <operation name="metoda4">
     <input message="tns:metoda4" name="metoda4"/>
     <output message="tns:metoda4Response" name="metoda4Response"/>
   </operation>
   <operation name="metoda3">
     <input message="tns:metoda3" name="metoda3"/>
     <output message="tns:metoda3Response" name="metoda3Response"/>
   </operation>
 </portType>

 <binding name="DrugiServisPortBinding"
   type="tns:DrugiServisPortType">
   <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
   <operation name="metoda4">
     <soap:operation soapAction="metoda4" style="rpc"/>
     <input name="metoda4">
       <soap:body namespace="XYZ" use="literal"/>
     </input>
     <output name="metoda4Response">
       <soap:body namespace="XYZ" use="literal"/>
     </output>
   </operation>
   <operation name="metoda3">
     <soap:operation soapAction="metoda3" style="rpc"/>
     <input name="metoda3">
       <soap:body namespace="XYZ" use="literal"/>
     </input>
     <output name="metoda3Response">
       <soap:body namespace="XYZ" use="literal"/>
     </output>
   </operation>
 </binding>

 <service name="DrugiServis">
   <port binding="tns:DrugiServisPortBinding" name="DrugiServisPort">
     <soap:address
location="http://localhost/axis2/services/DrugiServis.wsdl"/>
   </port>
 </service>

</definitions>


On 8/17/05, Branko Kaucic <branko.kaucic@amis.net> wrote:
> Hi all!
> 
> I am completely new to Axis, but... I tried to follow the user guide and to
> generate Java files from sample WSDL file Axis2SampleDocLit.wsdl, but
> I got duplicate methods in DataBindingSupporter classes.
> Also, when I tried my sample (WSDL is attached below) without using any
> user defined data types, I got the same problem. What am I doing wrong?
> 
> Also (I opened the project in Eclipse) I got some other problems in the
> same DrugiServisPortTypemetoda4DatabindingSupporter.
> 
> Please, could someone help.
> 
> Thanks in advance,
> B
> 
> --
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="DrugiServis"
>  targetNamespace="XYZ"
>  xmlns="http://schemas.xmlsoap.org/wsdl/"
>  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
>  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>  xmlns:tns="XYZ"
>  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> 
>  <types>
>  </types>
> 
>  <message name="metoda4">
>    <part element="xsd:string" name="aVal"/>
>  </message>
>  <message name="metoda4Response">
>    <part element="xsd:string" name="result"/>
>  </message>
>  <message name="metoda3"/>
>  <message name="metoda3Response"/>
> 
>  <portType name="DrugiServisPortType">
>    <operation name="metoda4">
>      <input message="tns:metoda4" name="metoda4"/>
>      <output message="tns:metoda4Response" name="metoda4Response"/>
>    </operation>
>    <operation name="metoda3">
>      <input message="tns:metoda3" name="metoda3"/>
>      <output message="tns:metoda3Response" name="metoda3Response"/>
>    </operation>
>  </portType>
> 
>  <binding name="DrugiServisPortBinding"
>    type="tns:DrugiServisPortType">
>    <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>    <operation name="metoda4">
>      <soap:operation soapAction="metoda4" style="rpc"/>
>      <input name="metoda4">
>        <soap:body namespace="XYZ" use="literal"/>
>      </input>
>      <output name="metoda4Response">
>        <soap:body namespace="XYZ" use="literal"/>
>      </output>
>    </operation>
>    <operation name="metoda3">
>      <soap:operation soapAction="metoda3" style="rpc"/>
>      <input name="metoda3">
>        <soap:body namespace="XYZ" use="literal"/>
>      </input>
>      <output name="metoda3Response">
>        <soap:body namespace="XYZ" use="literal"/>
>      </output>
>    </operation>
>  </binding>
> 
>  <service name="DrugiServis">
>    <port binding="tns:DrugiServisPortBinding" name="DrugiServisPort">
>      <soap:address
> location="http://localhost/axis2/services/DrugiServis.wsdl"/>
>    </port>
>  </service>
> 
> </definitions>
> --
>

Mime
View raw message