You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by "Sabareeswar P. B." <Sa...@infosys.com> on 2009/12/09 10:01:44 UTC

publishing an RPC-encoded WSDL in Synapse

Hi,

My requirement is to use Synapse and a soap intermediary between a web service which exposes a document-literal WSDL and a web service client which has been generated out of an rpc-encoded WSDL.

So I had planned to use the publishWSDL feature in Synapse to expose the rpc-encoded WSDL to the client and internally forward the soap message to the document-literal web service (after necessary transformations).

The issue is that even if I point publishWSDL to an rpc-encoded WSDL, the resulting wsdl from synapse is document-literal.

Could someone please suggest me how to expose the rpc-encoded wsdl as it is?

Regards,
Sabareeswar

Re: publishing an RPC-encoded WSDL in Synapse

Posted by Ruwan Linton <ru...@gmail.com>.
Nice to hear that you got it to work!

Thanks,
Ruwan

On Tue, Dec 15, 2009 at 10:16 AM, Sabareeswar P. B. <
Sabareeswar_PB@infosys.com> wrote:

> Thanks a lot Ruwan! it worked.
>
> Regards,
> Sabareeswar
> -----Original Message-----
> From: Ruwan Linton [mailto:ruwan.linton@gmail.com]
> Sent: Monday, December 14, 2009 6:49 PM
> To: user@synapse.apache.org
> Subject: Re: publishing an RPC-encoded WSDL in Synapse
>
> It has to be on the proxy level and please note the spelling of the
> parameter name;
>
> <proxy name="Workflow">
>
>       <target>
>
>           <inSequence>
>
>               <send>
>
>                   <endpoint>
>
>                       <address uri="http://localhost:8080/workflow"/>
>
>                   </endpoint>
>
>               </send>
>
>           </inSequence>
>
>         <outSequence>
>
>               <send/>
>
>         </outSequence>
>
>       </target>
>
>       <publishWSDL
> uri="file:repository/conf/sample/resources/proxy/rpc.wsdl"/>
>
>       <parameter name="useOriginalwsdl">true</parameter>
>
>   </proxy>
>
> Thanks,
> Ruwan
>
>
> On Mon, Dec 14, 2009 at 6:30 PM, Sabareeswar P. B. <
> Sabareeswar_PB@infosys.com> wrote:
>
> > Thanks for replying Ruwan!
> >
> >
> >
> > I tried this out but still not getting the rpc wsdl as it is.
> >
> >
> >
> > I tried it with both
> >
> >      <parameter name="useOriginalWSDL" value="true"/>
> >
> > And
> >
> >      <parameter name="useOriginalWSDL">true</parameter>
> >
> >
> >
> > under publishWSDL as..
> >
> >
> >
> > <definitions xmlns="http://ws.apache.org/ns/synapse">
> >
> >   <proxy name="Workflow">
> >
> >        <target>
> >
> >            <inSequence>
> >
> >                <send>
> >
> >                    <endpoint>
> >
> >                        <address uri="http://localhost:8080/workflow"/>
> >
> >                    </endpoint>
> >
> >                </send>
> >
> >            </inSequence>
> >
> >          <outSequence>
> >
> >                <send/>
> >
> >          </outSequence>
> >
> >        </target>
> >
> >        <publishWSDL
> > uri="file:repository/conf/sample/resources/proxy/rpc.wsdl">
> >
> >            <parameter name="useOriginalWSDL">true</parameter>
> >
> >        </publishWSDL>
> >
> >    </proxy>
> >
> > </definitions>
> >
> >
> >
> > Regards,
> >
> > Sabareeswar
> >
> > +91 80 668 82267
> >
> > -----Original Message-----
> > From: Ruwan Linton [mailto:ruwan.linton@gmail.com]
> > Sent: Friday, December 11, 2009 9:21 PM
> > To: user@synapse.apache.org
> > Subject: Re: publishing an RPC-encoded WSDL in Synapse
> >
> >
> >
> > Please use the parameter useOriginalWSDL as a parameter while creating
> the
> >
> > proxy.
> >
> >
> >
> > <parameter name="useOriginalWSDL" value="true"/>
> >
> >
> >
> > Thanks,
> >
> > Ruwan
> >
> >
> >
> > On Wed, Dec 9, 2009 at 2:31 PM, Sabareeswar P. B. <
> >
> > Sabareeswar_PB@infosys.com> wrote:
> >
> >
> >
> > > Hi,
> >
> > >
> >
> > > My requirement is to use Synapse and a soap intermediary between a web
> >
> > > service which exposes a document-literal WSDL and a web service client
> > which
> >
> > > has been generated out of an rpc-encoded WSDL.
> >
> > >
> >
> > > So I had planned to use the publishWSDL feature in Synapse to expose
> the
> >
> > > rpc-encoded WSDL to the client and internally forward the soap message
> to
> >
> > > the document-literal web service (after necessary transformations).
> >
> > >
> >
> > > The issue is that even if I point publishWSDL to an rpc-encoded WSDL,
> the
> >
> > > resulting wsdl from synapse is document-literal.
> >
> > >
> >
> > > Could someone please suggest me how to expose the rpc-encoded wsdl as
> it
> >
> > > is?
> >
> > >
> >
> > > Regards,
> >
> > > Sabareeswar
> >
> > >
> >
> >
> >
> >
> >
> >
> >
> > --
> >
> > Ruwan Linton
> >
> > Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
> >
> > WSO2 Inc.; http://wso2.org
> >
> > email: ruwan@wso2.com; cell: +94 77 341 3097
> >
> > blog: http://ruwansblog.blogspot.com
> >
>
>
>
> --
> Ruwan Linton
> Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
> WSO2 <http://wso2.org/esb%0AWSO2> Inc.; http://wso2.org
> email: ruwan@wso2.com; cell: +94 77 341 3097
> blog: http://ruwansblog.blogspot.com
>



-- 
Ruwan Linton
Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

RE: publishing an RPC-encoded WSDL in Synapse

Posted by "Sabareeswar P. B." <Sa...@infosys.com>.
Thanks a lot Ruwan! it worked.

Regards,
Sabareeswar
-----Original Message-----
From: Ruwan Linton [mailto:ruwan.linton@gmail.com] 
Sent: Monday, December 14, 2009 6:49 PM
To: user@synapse.apache.org
Subject: Re: publishing an RPC-encoded WSDL in Synapse

It has to be on the proxy level and please note the spelling of the
parameter name;

<proxy name="Workflow">

       <target>

           <inSequence>

               <send>

                   <endpoint>

                       <address uri="http://localhost:8080/workflow"/>

                   </endpoint>

               </send>

           </inSequence>

         <outSequence>

               <send/>

         </outSequence>

       </target>

       <publishWSDL
uri="file:repository/conf/sample/resources/proxy/rpc.wsdl"/>

       <parameter name="useOriginalwsdl">true</parameter>

   </proxy>

Thanks,
Ruwan


On Mon, Dec 14, 2009 at 6:30 PM, Sabareeswar P. B. <
Sabareeswar_PB@infosys.com> wrote:

> Thanks for replying Ruwan!
>
>
>
> I tried this out but still not getting the rpc wsdl as it is.
>
>
>
> I tried it with both
>
>      <parameter name="useOriginalWSDL" value="true"/>
>
> And
>
>      <parameter name="useOriginalWSDL">true</parameter>
>
>
>
> under publishWSDL as..
>
>
>
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>
>   <proxy name="Workflow">
>
>        <target>
>
>            <inSequence>
>
>                <send>
>
>                    <endpoint>
>
>                        <address uri="http://localhost:8080/workflow"/>
>
>                    </endpoint>
>
>                </send>
>
>            </inSequence>
>
>          <outSequence>
>
>                <send/>
>
>          </outSequence>
>
>        </target>
>
>        <publishWSDL
> uri="file:repository/conf/sample/resources/proxy/rpc.wsdl">
>
>            <parameter name="useOriginalWSDL">true</parameter>
>
>        </publishWSDL>
>
>    </proxy>
>
> </definitions>
>
>
>
> Regards,
>
> Sabareeswar
>
> +91 80 668 82267
>
> -----Original Message-----
> From: Ruwan Linton [mailto:ruwan.linton@gmail.com]
> Sent: Friday, December 11, 2009 9:21 PM
> To: user@synapse.apache.org
> Subject: Re: publishing an RPC-encoded WSDL in Synapse
>
>
>
> Please use the parameter useOriginalWSDL as a parameter while creating the
>
> proxy.
>
>
>
> <parameter name="useOriginalWSDL" value="true"/>
>
>
>
> Thanks,
>
> Ruwan
>
>
>
> On Wed, Dec 9, 2009 at 2:31 PM, Sabareeswar P. B. <
>
> Sabareeswar_PB@infosys.com> wrote:
>
>
>
> > Hi,
>
> >
>
> > My requirement is to use Synapse and a soap intermediary between a web
>
> > service which exposes a document-literal WSDL and a web service client
> which
>
> > has been generated out of an rpc-encoded WSDL.
>
> >
>
> > So I had planned to use the publishWSDL feature in Synapse to expose the
>
> > rpc-encoded WSDL to the client and internally forward the soap message to
>
> > the document-literal web service (after necessary transformations).
>
> >
>
> > The issue is that even if I point publishWSDL to an rpc-encoded WSDL, the
>
> > resulting wsdl from synapse is document-literal.
>
> >
>
> > Could someone please suggest me how to expose the rpc-encoded wsdl as it
>
> > is?
>
> >
>
> > Regards,
>
> > Sabareeswar
>
> >
>
>
>
>
>
>
>
> --
>
> Ruwan Linton
>
> Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
>
> WSO2 Inc.; http://wso2.org
>
> email: ruwan@wso2.com; cell: +94 77 341 3097
>
> blog: http://ruwansblog.blogspot.com
>



-- 
Ruwan Linton
Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

Re: publishing an RPC-encoded WSDL in Synapse

Posted by Ruwan Linton <ru...@gmail.com>.
It has to be on the proxy level and please note the spelling of the
parameter name;

<proxy name="Workflow">

       <target>

           <inSequence>

               <send>

                   <endpoint>

                       <address uri="http://localhost:8080/workflow"/>

                   </endpoint>

               </send>

           </inSequence>

         <outSequence>

               <send/>

         </outSequence>

       </target>

       <publishWSDL
uri="file:repository/conf/sample/resources/proxy/rpc.wsdl"/>

       <parameter name="useOriginalwsdl">true</parameter>

   </proxy>

Thanks,
Ruwan


On Mon, Dec 14, 2009 at 6:30 PM, Sabareeswar P. B. <
Sabareeswar_PB@infosys.com> wrote:

> Thanks for replying Ruwan!
>
>
>
> I tried this out but still not getting the rpc wsdl as it is.
>
>
>
> I tried it with both
>
>      <parameter name="useOriginalWSDL" value="true"/>
>
> And
>
>      <parameter name="useOriginalWSDL">true</parameter>
>
>
>
> under publishWSDL as..
>
>
>
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>
>   <proxy name="Workflow">
>
>        <target>
>
>            <inSequence>
>
>                <send>
>
>                    <endpoint>
>
>                        <address uri="http://localhost:8080/workflow"/>
>
>                    </endpoint>
>
>                </send>
>
>            </inSequence>
>
>          <outSequence>
>
>                <send/>
>
>          </outSequence>
>
>        </target>
>
>        <publishWSDL
> uri="file:repository/conf/sample/resources/proxy/rpc.wsdl">
>
>            <parameter name="useOriginalWSDL">true</parameter>
>
>        </publishWSDL>
>
>    </proxy>
>
> </definitions>
>
>
>
> Regards,
>
> Sabareeswar
>
> +91 80 668 82267
>
> -----Original Message-----
> From: Ruwan Linton [mailto:ruwan.linton@gmail.com]
> Sent: Friday, December 11, 2009 9:21 PM
> To: user@synapse.apache.org
> Subject: Re: publishing an RPC-encoded WSDL in Synapse
>
>
>
> Please use the parameter useOriginalWSDL as a parameter while creating the
>
> proxy.
>
>
>
> <parameter name="useOriginalWSDL" value="true"/>
>
>
>
> Thanks,
>
> Ruwan
>
>
>
> On Wed, Dec 9, 2009 at 2:31 PM, Sabareeswar P. B. <
>
> Sabareeswar_PB@infosys.com> wrote:
>
>
>
> > Hi,
>
> >
>
> > My requirement is to use Synapse and a soap intermediary between a web
>
> > service which exposes a document-literal WSDL and a web service client
> which
>
> > has been generated out of an rpc-encoded WSDL.
>
> >
>
> > So I had planned to use the publishWSDL feature in Synapse to expose the
>
> > rpc-encoded WSDL to the client and internally forward the soap message to
>
> > the document-literal web service (after necessary transformations).
>
> >
>
> > The issue is that even if I point publishWSDL to an rpc-encoded WSDL, the
>
> > resulting wsdl from synapse is document-literal.
>
> >
>
> > Could someone please suggest me how to expose the rpc-encoded wsdl as it
>
> > is?
>
> >
>
> > Regards,
>
> > Sabareeswar
>
> >
>
>
>
>
>
>
>
> --
>
> Ruwan Linton
>
> Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
>
> WSO2 Inc.; http://wso2.org
>
> email: ruwan@wso2.com; cell: +94 77 341 3097
>
> blog: http://ruwansblog.blogspot.com
>



-- 
Ruwan Linton
Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

RE: publishing an RPC-encoded WSDL in Synapse

Posted by "Sabareeswar P. B." <Sa...@infosys.com>.
Thanks for replying Ruwan!



I tried this out but still not getting the rpc wsdl as it is.



I tried it with both

      <parameter name="useOriginalWSDL" value="true"/>

And

      <parameter name="useOriginalWSDL">true</parameter>



under publishWSDL as..



<definitions xmlns="http://ws.apache.org/ns/synapse">

   <proxy name="Workflow">

        <target>

            <inSequence>

                <send>

                    <endpoint>

                        <address uri="http://localhost:8080/workflow"/>

                    </endpoint>

                </send>

            </inSequence>

          <outSequence>

                <send/>

          </outSequence>

        </target>

        <publishWSDL uri="file:repository/conf/sample/resources/proxy/rpc.wsdl">

            <parameter name="useOriginalWSDL">true</parameter>

        </publishWSDL>

    </proxy>

</definitions>



Regards,

Sabareeswar

+91 80 668 82267

-----Original Message-----
From: Ruwan Linton [mailto:ruwan.linton@gmail.com]
Sent: Friday, December 11, 2009 9:21 PM
To: user@synapse.apache.org
Subject: Re: publishing an RPC-encoded WSDL in Synapse



Please use the parameter useOriginalWSDL as a parameter while creating the

proxy.



<parameter name="useOriginalWSDL" value="true"/>



Thanks,

Ruwan



On Wed, Dec 9, 2009 at 2:31 PM, Sabareeswar P. B. <

Sabareeswar_PB@infosys.com> wrote:



> Hi,

>

> My requirement is to use Synapse and a soap intermediary between a web

> service which exposes a document-literal WSDL and a web service client which

> has been generated out of an rpc-encoded WSDL.

>

> So I had planned to use the publishWSDL feature in Synapse to expose the

> rpc-encoded WSDL to the client and internally forward the soap message to

> the document-literal web service (after necessary transformations).

>

> The issue is that even if I point publishWSDL to an rpc-encoded WSDL, the

> resulting wsdl from synapse is document-literal.

>

> Could someone please suggest me how to expose the rpc-encoded wsdl as it

> is?

>

> Regards,

> Sabareeswar

>







--

Ruwan Linton

Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb

WSO2 Inc.; http://wso2.org

email: ruwan@wso2.com; cell: +94 77 341 3097

blog: http://ruwansblog.blogspot.com

Re: publishing an RPC-encoded WSDL in Synapse

Posted by Ruwan Linton <ru...@gmail.com>.
Please use the parameter useOriginalWSDL as a parameter while creating the
proxy.

<parameter name="useOriginalWSDL" value="true"/>

Thanks,
Ruwan

On Wed, Dec 9, 2009 at 2:31 PM, Sabareeswar P. B. <
Sabareeswar_PB@infosys.com> wrote:

> Hi,
>
> My requirement is to use Synapse and a soap intermediary between a web
> service which exposes a document-literal WSDL and a web service client which
> has been generated out of an rpc-encoded WSDL.
>
> So I had planned to use the publishWSDL feature in Synapse to expose the
> rpc-encoded WSDL to the client and internally forward the soap message to
> the document-literal web service (after necessary transformations).
>
> The issue is that even if I point publishWSDL to an rpc-encoded WSDL, the
> resulting wsdl from synapse is document-literal.
>
> Could someone please suggest me how to expose the rpc-encoded wsdl as it
> is?
>
> Regards,
> Sabareeswar
>



-- 
Ruwan Linton
Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com