axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raj_curious <raj_12...@rediffmail.com>
Subject got a big Problem in rpc/lit binding style
Date Fri, 25 May 2007 09:00:52 GMT

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


Mime
View raw message