You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Raj_curious <ra...@rediffmail.com> on 2007/05/25 11:00:52 UTC

got a big Problem in rpc/lit binding style

Hi all,
      i am deeply stuck into a problem . Got to implement rpc/lit binding
style, but axis2 generator does not create correct stubs and skeleton by
reading the wsdl.
my original wsdl contained:
<definitions name="ServiceSample"
    targetNamespace="http://webservices.alcatel.com/ServiceSample"
    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="http://webservices.alcatel.com/ServiceSample"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsd1="http://webservices.alcatel.com/xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <types>
        <xsd:schema targetNamespace="http://webservices.alcatel.com/xsd">
            <xsd:import namespace="http://webservices.alcatel.com/xsd"
               schemaLocation="ServiceSample.xsd"/>
        </xsd:schema>
    </types>

 <message name="echoString">
        <part element="xsd1:echoStringParam" name="in"/>
    </message>
    <message name="echoStringResponse">
        <part element="xsd1:echoStringReturn" name="out"/>
    </message>

    <portType name="ServiceSample">
        <operation name="echoString">
            <input message="tns:echoString" name="echoString"/>
            <output message="tns:echoStringResponse"
name="echoStringResponse"/>
        </operation>

        </portType>
    <binding name="ServiceSamplePortBinding"
        type="tns:ServiceSample">
        <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>

        <operation name="echoString">
            <soap:operation soapAction="echoString" style="document"/>
            <input name="echoString">
                <soap:body
namespace="http://webservices.alcatel.com/ServiceSample"
                    use="literal"/>
            </input>

which i have changed to following according to the tutorial on apache,s
site.
http://ws.apache.org/axis2/1_1/Axis2-rpc-support.html

<message name="echoString">
       <xsd:element name="echoStringParam">
         <xsd:simpleType>
          <xsd:sequence>
            <xsd:element name="in" type="xsd:string"/>
          </xsd:sequence>
         </xsd:simpleType>
       </xsd:element>
    </message>
    <message name="echoStringResponse">
       <xsd:element name="echoStringReturn">
         <xsd:simpleType>
          <xsd:sequence>
            <xsd:element name="out" type="xsd:string"/>
          </xsd:sequence>
         </xsd:simpleType>
       </xsd:element>
    </message>

    <portType name="ServiceSample">
        <operation name="echoString">
            <input message="echoString" name="echoString"/>
            <output message="echoStringResponse" name="echoStringResponse"/>
        </operation>

        </portType>

<binding name="ServiceSamplePortBinding"
        type="tns:ServiceSample">
        <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>

        <operation name="echoString">
            <soap:operation soapAction="echoString" style="document"/>
            <input name="echoString">
                <soap:body
namespace="http://webservices.alcatel.com/ServiceSample"
                    use="literal"/>
            </input>


But it is stillnot working. Axis code generator does not produces correct
stub and skeletons.

please help !!....lost of ideas..tried many thing..
..desperately waiting any suggestion...


Thanks,
Raj
-- 
View this message in context: http://www.nabble.com/got-a-big-Problem-in-rpc-lit--binding-style-tf3814993.html#a10799495
Sent from the Axis - User mailing list archive at Nabble.com.


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


Re: got a big Problem in rpc/lit binding style

Posted by Raj_curious <ra...@rediffmail.com>.
hi  vikas,

u probably didnt read my total mesg, i hv already followed the steps given
at this link and changed my wsdl file accordingly.
i hv given both wsdl snippets ..before and after change. Pls have a look ..u
might suggest me something.

thanks,
rajesh


Vikas-12 wrote:
> 
> http://ws.apache.org/axis2/1_2/Axis2-rpc-support.html
> 
> might will help you
> 
> With best regards
> From
> Vikas R. Khengare
> 
> ----- Original Message ----- 
> From: "Raj_curious" <ra...@rediffmail.com>
> To: <ax...@ws.apache.org>
> Sent: Friday, May 25, 2007 2:30 PM
> Subject: got a big Problem in rpc/lit binding style
> 
> 
>>
>> Hi all,
>>       i am deeply stuck into a problem . Got to implement rpc/lit binding
>> style, but axis2 generator does not create correct stubs and skeleton by
>> reading the wsdl.
>> my original wsdl contained:
>> <definitions name="ServiceSample"
>>     targetNamespace="http://webservices.alcatel.com/ServiceSample"
>>     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="http://webservices.alcatel.com/ServiceSample"
>>     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>     xmlns:xsd1="http://webservices.alcatel.com/xsd"
>>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>
>>     <types>
>>         <xsd:schema targetNamespace="http://webservices.alcatel.com/xsd">
>>             <xsd:import namespace="http://webservices.alcatel.com/xsd"
>>                schemaLocation="ServiceSample.xsd"/>
>>         </xsd:schema>
>>     </types>
>>
>>  <message name="echoString">
>>         <part element="xsd1:echoStringParam" name="in"/>
>>     </message>
>>     <message name="echoStringResponse">
>>         <part element="xsd1:echoStringReturn" name="out"/>
>>     </message>
>>
>>     <portType name="ServiceSample">
>>         <operation name="echoString">
>>             <input message="tns:echoString" name="echoString"/>
>>             <output message="tns:echoStringResponse"
>> name="echoStringResponse"/>
>>         </operation>
>>
>>         </portType>
>>     <binding name="ServiceSamplePortBinding"
>>         type="tns:ServiceSample">
>>         <soap:binding style="document"
>> transport="http://schemas.xmlsoap.org/soap/http"/>
>>
>>         <operation name="echoString">
>>             <soap:operation soapAction="echoString" style="document"/>
>>             <input name="echoString">
>>                 <soap:body
>> namespace="http://webservices.alcatel.com/ServiceSample"
>>                     use="literal"/>
>>             </input>
>>
>> which i have changed to following according to the tutorial on apache,s
>> site.
>> http://ws.apache.org/axis2/1_1/Axis2-rpc-support.html
>>
>> <message name="echoString">
>>        <xsd:element name="echoStringParam">
>>          <xsd:simpleType>
>>           <xsd:sequence>
>>             <xsd:element name="in" type="xsd:string"/>
>>           </xsd:sequence>
>>          </xsd:simpleType>
>>        </xsd:element>
>>     </message>
>>     <message name="echoStringResponse">
>>        <xsd:element name="echoStringReturn">
>>          <xsd:simpleType>
>>           <xsd:sequence>
>>             <xsd:element name="out" type="xsd:string"/>
>>           </xsd:sequence>
>>          </xsd:simpleType>
>>        </xsd:element>
>>     </message>
>>
>>     <portType name="ServiceSample">
>>         <operation name="echoString">
>>             <input message="echoString" name="echoString"/>
>>             <output message="echoStringResponse"
> name="echoStringResponse"/>
>>         </operation>
>>
>>         </portType>
>>
>> <binding name="ServiceSamplePortBinding"
>>         type="tns:ServiceSample">
>>         <soap:binding style="document"
>> transport="http://schemas.xmlsoap.org/soap/http"/>
>>
>>         <operation name="echoString">
>>             <soap:operation soapAction="echoString" style="document"/>
>>             <input name="echoString">
>>                 <soap:body
>> namespace="http://webservices.alcatel.com/ServiceSample"
>>                     use="literal"/>
>>             </input>
>>
>>
>> But it is stillnot working. Axis code generator does not produces correct
>> stub and skeletons.
>>
>> please help !!....lost of ideas..tried many thing..
>> ..desperately waiting any suggestion...
>>
>>
>> Thanks,
>> Raj
>> -- 
>> View this message in context:
> http://www.nabble.com/got-a-big-Problem-in-rpc-lit--binding-style-tf3814993.html#a10799495
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/got-a-big-Problem-in-rpc-lit--binding-style-tf3814993.html#a10800333
Sent from the Axis - User mailing list archive at Nabble.com.


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


Re: got a big Problem in rpc/lit binding style

Posted by Vikas <vi...@unnat-e.com>.
http://ws.apache.org/axis2/1_2/Axis2-rpc-support.html

might will help you

With best regards
From
Vikas R. Khengare

----- Original Message ----- 
From: "Raj_curious" <ra...@rediffmail.com>
To: <ax...@ws.apache.org>
Sent: Friday, May 25, 2007 2:30 PM
Subject: got a big Problem in rpc/lit binding style


>
> Hi all,
>       i am deeply stuck into a problem . Got to implement rpc/lit binding
> style, but axis2 generator does not create correct stubs and skeleton by
> reading the wsdl.
> my original wsdl contained:
> <definitions name="ServiceSample"
>     targetNamespace="http://webservices.alcatel.com/ServiceSample"
>     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="http://webservices.alcatel.com/ServiceSample"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>     xmlns:xsd1="http://webservices.alcatel.com/xsd"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
>     <types>
>         <xsd:schema targetNamespace="http://webservices.alcatel.com/xsd">
>             <xsd:import namespace="http://webservices.alcatel.com/xsd"
>                schemaLocation="ServiceSample.xsd"/>
>         </xsd:schema>
>     </types>
>
>  <message name="echoString">
>         <part element="xsd1:echoStringParam" name="in"/>
>     </message>
>     <message name="echoStringResponse">
>         <part element="xsd1:echoStringReturn" name="out"/>
>     </message>
>
>     <portType name="ServiceSample">
>         <operation name="echoString">
>             <input message="tns:echoString" name="echoString"/>
>             <output message="tns:echoStringResponse"
> name="echoStringResponse"/>
>         </operation>
>
>         </portType>
>     <binding name="ServiceSamplePortBinding"
>         type="tns:ServiceSample">
>         <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
>         <operation name="echoString">
>             <soap:operation soapAction="echoString" style="document"/>
>             <input name="echoString">
>                 <soap:body
> namespace="http://webservices.alcatel.com/ServiceSample"
>                     use="literal"/>
>             </input>
>
> which i have changed to following according to the tutorial on apache,s
> site.
> http://ws.apache.org/axis2/1_1/Axis2-rpc-support.html
>
> <message name="echoString">
>        <xsd:element name="echoStringParam">
>          <xsd:simpleType>
>           <xsd:sequence>
>             <xsd:element name="in" type="xsd:string"/>
>           </xsd:sequence>
>          </xsd:simpleType>
>        </xsd:element>
>     </message>
>     <message name="echoStringResponse">
>        <xsd:element name="echoStringReturn">
>          <xsd:simpleType>
>           <xsd:sequence>
>             <xsd:element name="out" type="xsd:string"/>
>           </xsd:sequence>
>          </xsd:simpleType>
>        </xsd:element>
>     </message>
>
>     <portType name="ServiceSample">
>         <operation name="echoString">
>             <input message="echoString" name="echoString"/>
>             <output message="echoStringResponse"
name="echoStringResponse"/>
>         </operation>
>
>         </portType>
>
> <binding name="ServiceSamplePortBinding"
>         type="tns:ServiceSample">
>         <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
>         <operation name="echoString">
>             <soap:operation soapAction="echoString" style="document"/>
>             <input name="echoString">
>                 <soap:body
> namespace="http://webservices.alcatel.com/ServiceSample"
>                     use="literal"/>
>             </input>
>
>
> But it is stillnot working. Axis code generator does not produces correct
> stub and skeletons.
>
> please help !!....lost of ideas..tried many thing..
> ..desperately waiting any suggestion...
>
>
> Thanks,
> Raj
> -- 
> View this message in context:
http://www.nabble.com/got-a-big-Problem-in-rpc-lit--binding-style-tf3814993.html#a10799495
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org


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