You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Ahmed Sallam <a....@hotmail.com> on 2010/05/16 04:55:49 UTC
Dynamic publishedWSDL
Hello,
Am trying to create proxy with dynamic endpoint
and dynamic publishedWSDL
synapse doc contains example for dynamic endpoint
however I can't find any thing for publishedWSDL except unclear example (forme)
the proxy definition as following:
-----------
<definitions xmlns="http://ws.apache.org/ns/synapse">
<registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
<parameter name="root">file:repository/conf/sample/resources/</parameter>
<parameter name="cachableDuration">15000</parameter>
</registry>
<proxy name="CalculatorProxy">
<target>
<endpoint key="endpoint/sallam_endpoint.xml"/>
<outSequence>
<send/>
</outSequence>
</target>
<publishedWSDL key="WSDL/sallam_wsdl.xml"/>
</proxy>
</definitions>
--------------------
where
sallam_endpoint.xml contains the following
-----------------
<endpoint xmlns="http://ws.apache.org/ns/synapse">
<address uri="http://localhost:8080/axis/Calculator.jws"/>
</endpoint>
--------------------
and
sallam_wsdl.xml contains the following
------------------
<publishWSDL xmlns=http://ws.apache.org/ns/synapse uri="http://localhost:8080/axis/Calculator.jws?WSDL"/>
==============================
the dynamic endpoint works fine, but the problem with the publishWSDl
can you solve me with this problem please
Re: Dynamic publishedWSDL
Posted by Ruwan Linton <ru...@gmail.com>.
publishWSDL is taken into the account only when the service is being created
which is done at the server startup time, so the publishWSDL is not dynamic.
Thanks,
Ruwan
2010/5/16 Ahmed Sallam <a....@hotmail.com>
> Hello,
>
> Am trying to create proxy with dynamic endpoint
> and dynamic publishedWSDL
>
> synapse doc contains example for dynamic endpoint
> however I can't find any thing for publishedWSDL except unclear example
> (forme)
>
> the proxy definition as following:
> -----------
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>
> <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
> <parameter
> name="root">file:repository/conf/sample/resources/</parameter>
> <parameter name="cachableDuration">15000</parameter>
> </registry>
>
> <proxy name="CalculatorProxy">
> <target>
> <endpoint key="endpoint/sallam_endpoint.xml"/>
> <outSequence>
> <send/>
> </outSequence>
> </target>
> <publishedWSDL key="WSDL/sallam_wsdl.xml"/>
> </proxy>
> </definitions>
> --------------------
> where
> sallam_endpoint.xml contains the following
> -----------------
> <endpoint xmlns="http://ws.apache.org/ns/synapse">
> <address uri="http://localhost:8080/axis/Calculator.jws"/>
> </endpoint>
> --------------------
> and
> sallam_wsdl.xml contains the following
> ------------------
> <publishWSDL xmlns=http://ws.apache.org/ns/synapse uri="
> http://localhost:8080/axis/Calculator.jws?WSDL"/>
>
> ==============================
> the dynamic endpoint works fine, but the problem with the publishWSDl
>
> can you solve me with this problem please
>
>
>
>
>
--
Ruwan Linton
Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
Lean . Enterprise . Middleware
phone: +1 408 754 7388 ext 51789
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://blog.ruwan.org
linkedin: http://www.linkedin.com/in/ruwanlinton
google: http://www.google.com/profiles/ruwan.linton
tweet: http://twitter.com/ruwanlinton