You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Upul Godage (JIRA)" <ji...@apache.org> on 2007/09/24 12:30:50 UTC

[jira] Commented: (SYNAPSE-116) Add support for useOriginalWSDL in Synapse

    [ https://issues.apache.org/jira/browse/SYNAPSE-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529825 ] 

Upul Godage commented on SYNAPSE-116:
-------------------------------------

This can be achieved by using 2 Axis2 parameters: useOriginalwsdl, modifyUserWSDLPortAddress.

<definitions xmlns="http://ws.apache.org/ns/synapse">
    <proxy name="StockQuoteProxy">
        <target>
            <endpoint>
                <address uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
            </endpoint>
			<outSequence>
				<send/>
			</outSequence>
        </target>
        <publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
	<parameter name="useOriginalwsdl">true</parameter>
	<parameter name="modifyUserWSDLPortAddress">false</parameter>
    </proxy>
</definitions>

> Add support for useOriginalWSDL in Synapse
> ------------------------------------------
>
>                 Key: SYNAPSE-116
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-116
>             Project: Synapse
>          Issue Type: Bug
>            Reporter: Paul Fremantle
>
> This needs to be allowed on a per-proxy basis. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Re: [jira] Commented: (SYNAPSE-116) Add support for useOriginalWSDL in Synapse

Posted by Ruwan Linton <ru...@gmail.com>.
Balaji,

Yes, we are trying to fix that.

AFAIK, this second parameter "modifyUserWSDLPortAddress" depends on the
presence of the first parameter "useOriginalWsdl". So we can not handle your
exact requirement for the moment. We will fix this before the 1.1 release.

Thanks,
Ruwan

On 9/24/07, balaji hari <to...@gmail.com> wrote:
>
>
> Looks like this issue is related with
>
>
> http://www.nabble.com/Synapse-proxy-service-changes-service-address-location-tf4209274.html#a11973972
>
> Is there a way to specify just not to modify the WSDL port address and
> still
> change the WSDL to apply security policy?
>
> Actually the public address to access the web service is different, but we
> need user name security token policy to be applied to service WSDL.
>
> Balaji
>
>
> JIRA jira@apache.org wrote:
> >
> >
> >     [
> >
> https://issues.apache.org/jira/browse/SYNAPSE-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529825
> > ]
> >
> > Upul Godage commented on SYNAPSE-116:
> > -------------------------------------
> >
> > This can be achieved by using 2 Axis2 parameters: useOriginalwsdl,
> > modifyUserWSDLPortAddress.
> >
> > <definitions xmlns="http://ws.apache.org/ns/synapse">
> >     <proxy name="StockQuoteProxy">
> >         <target>
> >             <endpoint>
> >                 <address
> > uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
> >             </endpoint>
> >                       <outSequence>
> >                               <send/>
> >                       </outSequence>
> >         </target>
> >         <publishWSDL
> > uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
> >       <parameter name="useOriginalwsdl">true</parameter>
> >       <parameter name="modifyUserWSDLPortAddress">false</parameter>
> >     </proxy>
> > </definitions>
> >
> >> Add support for useOriginalWSDL in Synapse
> >> ------------------------------------------
> >>
> >>                 Key: SYNAPSE-116
> >>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-116
> >>             Project: Synapse
> >>          Issue Type: Bug
> >>            Reporter: Paul Fremantle
> >>
> >> This needs to be allowed on a per-proxy basis.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the issue online.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: synapse-dev-help@ws.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-jira--Created%3A-%28SYNAPSE-116%29-Add-support-for-useOriginalWSDL-in-Synapse-tf4209535.html#a12865344
> Sent from the Synapse - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>


-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"

Re: [jira] Commented: (SYNAPSE-116) Add support for useOriginalWSDL in Synapse

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Balaji,

On 9/25/07, balaji hari <to...@gmail.com> wrote:
>
>
> This solves the problem.. Thanks guys.
>
> I am glad I followed up on this issue to get this solved.


It is nice to here that.

I am going to resolve the issue since we can do the useOriginalWsdl using
the service parameter and your issue is resolved.

Thanks,
Ruwan


Balaji
>
>
> asankha wrote:
> >
> > Balaji
> >
> > Is what you want something like this..
> >
> > Client -------(a)-------->Apache httpd proxy -------(b)--------> Synapse
> > Proxy service --------(c)------> Actual service implementation
> >
> > If this is the case, the ?WSDL generated by Synapse must show the
> > scheme, host and port of the Apache http information (i.e. public
> > address). I believe in your scenario you would use Apache to front all
> > requests, do SSL decryption (possibly) and load balance between a bunch
> > of Synapse instances.
> >
> > If this is your requirement, you could also use the "WSDLEPRPrefix"
> > parameter of the HttpCoreNIO*Listener's defined on the axis2.xml used by
> > Synapse. This way you could specify the prefix as you like - and can
> > even change the scheme for http to something over https etc.
> >
> > e.g.
> > <transportReceiver name="http"
> > class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener">
> >         <parameter name="WSDLEPRPrefix"
> > locked="false">http://10.25.51.38:8080/esb</parameter>
> >         .....
> >
> > asankha
> >
> > balaji hari wrote:
> >> Looks like this issue is related with
> >>
> >>
> http://www.nabble.com/Synapse-proxy-service-changes-service-address-location-tf4209274.html#a11973972
> >>
> >> Is there a way to specify just not to modify the WSDL port address and
> >> still
> >> change the WSDL to apply security policy?
> >>
> >> Actually the public address to access the web service is different, but
> >> we
> >> need user name security token policy to be applied to service WSDL.
> >>
> >> Balaji
> >>
> >>
> >> JIRA jira@apache.org wrote:
> >>
> >>>     [
> >>>
> https://issues.apache.org/jira/browse/SYNAPSE-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529825
> >>> ]
> >>>
> >>> Upul Godage commented on SYNAPSE-116:
> >>> -------------------------------------
> >>>
> >>> This can be achieved by using 2 Axis2 parameters: useOriginalwsdl,
> >>> modifyUserWSDLPortAddress.
> >>>
> >>> <definitions xmlns="http://ws.apache.org/ns/synapse">
> >>>     <proxy name="StockQuoteProxy">
> >>>         <target>
> >>>             <endpoint>
> >>>                 <address
> >>> uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
> >>>             </endpoint>
> >>>                     <outSequence>
> >>>                             <send/>
> >>>                     </outSequence>
> >>>         </target>
> >>>         <publishWSDL
> >>>
> uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
> >>>     <parameter name="useOriginalwsdl">true</parameter>
> >>>     <parameter name="modifyUserWSDLPortAddress">false</parameter>
> >>>     </proxy>
> >>> </definitions>
> >>>
> >>>
> >>>> Add support for useOriginalWSDL in Synapse
> >>>> ------------------------------------------
> >>>>
> >>>>                 Key: SYNAPSE-116
> >>>>                 URL:
> https://issues.apache.org/jira/browse/SYNAPSE-116
> >>>>             Project: Synapse
> >>>>          Issue Type: Bug
> >>>>            Reporter: Paul Fremantle
> >>>>
> >>>> This needs to be allowed on a per-proxy basis.
> >>>>
> >>> --
> >>> This message is automatically generated by JIRA.
> >>> -
> >>> You can reply to this email to add a comment to the issue online.
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> >>> For additional commands, e-mail: synapse-dev-help@ws.apache.org
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-jira--Created%3A-%28SYNAPSE-116%29-Add-support-for-useOriginalWSDL-in-Synapse-tf4209535.html#a12881375
> Sent from the Synapse - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>


-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"

Re: [jira] Commented: (SYNAPSE-116) Add support for useOriginalWSDL in Synapse

Posted by balaji hari <to...@gmail.com>.
This solves the problem.. Thanks guys.

I am glad I followed up on this issue to get this solved.

Balaji


asankha wrote:
> 
> Balaji
> 
> Is what you want something like this..
> 
> Client -------(a)-------->Apache httpd proxy -------(b)--------> Synapse 
> Proxy service --------(c)------> Actual service implementation
> 
> If this is the case, the ?WSDL generated by Synapse must show the 
> scheme, host and port of the Apache http information (i.e. public 
> address). I believe in your scenario you would use Apache to front all 
> requests, do SSL decryption (possibly) and load balance between a bunch 
> of Synapse instances.
> 
> If this is your requirement, you could also use the "WSDLEPRPrefix" 
> parameter of the HttpCoreNIO*Listener's defined on the axis2.xml used by 
> Synapse. This way you could specify the prefix as you like - and can 
> even change the scheme for http to something over https etc.
> 
> e.g.
> <transportReceiver name="http" 
> class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener">
>         <parameter name="WSDLEPRPrefix" 
> locked="false">http://10.25.51.38:8080/esb</parameter>
>         .....
> 
> asankha
> 
> balaji hari wrote:
>> Looks like this issue is related with
>>
>> http://www.nabble.com/Synapse-proxy-service-changes-service-address-location-tf4209274.html#a11973972
>>
>> Is there a way to specify just not to modify the WSDL port address and
>> still
>> change the WSDL to apply security policy?
>>
>> Actually the public address to access the web service is different, but
>> we
>> need user name security token policy to be applied to service WSDL.
>>
>> Balaji
>>
>>
>> JIRA jira@apache.org wrote:
>>   
>>>     [
>>> https://issues.apache.org/jira/browse/SYNAPSE-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529825
>>> ] 
>>>
>>> Upul Godage commented on SYNAPSE-116:
>>> -------------------------------------
>>>
>>> This can be achieved by using 2 Axis2 parameters: useOriginalwsdl,
>>> modifyUserWSDLPortAddress.
>>>
>>> <definitions xmlns="http://ws.apache.org/ns/synapse">
>>>     <proxy name="StockQuoteProxy">
>>>         <target>
>>>             <endpoint>
>>>                 <address
>>> uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
>>>             </endpoint>
>>> 			<outSequence>
>>> 				<send/>
>>> 			</outSequence>
>>>         </target>
>>>         <publishWSDL
>>> uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
>>> 	<parameter name="useOriginalwsdl">true</parameter>
>>> 	<parameter name="modifyUserWSDLPortAddress">false</parameter>
>>>     </proxy>
>>> </definitions>
>>>
>>>     
>>>> Add support for useOriginalWSDL in Synapse
>>>> ------------------------------------------
>>>>
>>>>                 Key: SYNAPSE-116
>>>>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-116
>>>>             Project: Synapse
>>>>          Issue Type: Bug
>>>>            Reporter: Paul Fremantle
>>>>
>>>> This needs to be allowed on a per-proxy basis. 
>>>>       
>>> -- 
>>> This message is automatically generated by JIRA.
>>> -
>>> You can reply to this email to add a comment to the issue online.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>>>
>>>
>>>
>>>     
>>
>>   
> 
> 

-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28SYNAPSE-116%29-Add-support-for-useOriginalWSDL-in-Synapse-tf4209535.html#a12881375
Sent from the Synapse - Dev mailing list archive at Nabble.com.


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


Re: [jira] Commented: (SYNAPSE-116) Add support for useOriginalWSDL in Synapse

Posted by "Asankha C. Perera" <as...@wso2.com>.
Balaji

Is what you want something like this..

Client -------(a)-------->Apache httpd proxy -------(b)--------> Synapse 
Proxy service --------(c)------> Actual service implementation

If this is the case, the ?WSDL generated by Synapse must show the 
scheme, host and port of the Apache http information (i.e. public 
address). I believe in your scenario you would use Apache to front all 
requests, do SSL decryption (possibly) and load balance between a bunch 
of Synapse instances.

If this is your requirement, you could also use the "WSDLEPRPrefix" 
parameter of the HttpCoreNIO*Listener's defined on the axis2.xml used by 
Synapse. This way you could specify the prefix as you like - and can 
even change the scheme for http to something over https etc.

e.g.
<transportReceiver name="http" 
class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener">
        <parameter name="WSDLEPRPrefix" 
locked="false">http://10.25.51.38:8080/esb</parameter>
        .....

asankha

balaji hari wrote:
> Looks like this issue is related with
>
> http://www.nabble.com/Synapse-proxy-service-changes-service-address-location-tf4209274.html#a11973972
>
> Is there a way to specify just not to modify the WSDL port address and still
> change the WSDL to apply security policy?
>
> Actually the public address to access the web service is different, but we
> need user name security token policy to be applied to service WSDL.
>
> Balaji
>
>
> JIRA jira@apache.org wrote:
>   
>>     [
>> https://issues.apache.org/jira/browse/SYNAPSE-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529825
>> ] 
>>
>> Upul Godage commented on SYNAPSE-116:
>> -------------------------------------
>>
>> This can be achieved by using 2 Axis2 parameters: useOriginalwsdl,
>> modifyUserWSDLPortAddress.
>>
>> <definitions xmlns="http://ws.apache.org/ns/synapse">
>>     <proxy name="StockQuoteProxy">
>>         <target>
>>             <endpoint>
>>                 <address
>> uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
>>             </endpoint>
>> 			<outSequence>
>> 				<send/>
>> 			</outSequence>
>>         </target>
>>         <publishWSDL
>> uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
>> 	<parameter name="useOriginalwsdl">true</parameter>
>> 	<parameter name="modifyUserWSDLPortAddress">false</parameter>
>>     </proxy>
>> </definitions>
>>
>>     
>>> Add support for useOriginalWSDL in Synapse
>>> ------------------------------------------
>>>
>>>                 Key: SYNAPSE-116
>>>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-116
>>>             Project: Synapse
>>>          Issue Type: Bug
>>>            Reporter: Paul Fremantle
>>>
>>> This needs to be allowed on a per-proxy basis. 
>>>       
>> -- 
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>>
>>
>>
>>     
>
>   

Re: [jira] Commented: (SYNAPSE-116) Add support for useOriginalWSDL in Synapse

Posted by Ruwan Linton <ru...@gmail.com>.
On 9/25/07, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
>
> balaji hari wrote:
> > Looks like this issue is related with
> >
> >
> http://www.nabble.com/Synapse-proxy-service-changes-service-address-location-tf4209274.html#a11973972
> >
> > Is there a way to specify just not to modify the WSDL port address and
> still
> > change the WSDL to apply security policy?
>
> Um, no :).
>
> The service that Synapse is proxying could be a .Net service or a PHP
> service. The only way to "add value" to the interface offered by that
> service is to front that service with another that offers the same
> interface offered over a more secure policy and which simply delegates the
> actual implementation of the request to the original service. That's
> basically what a proxy service is.



I think you miss interpreted Balaji's requirement. His requirement is to
http proxy synapse so that the proxy service should show the http proxy
address on the wsdl not the synapse server address.

Quoting from Balaji about his requirement,
This is how it looks like.
                              Forwards
                              (http)
Apache(https):8081 --------->Synapse(http):6666


So the WSDL should show 8081 rather than 6666.

Thanks,
Ruwan

> Actually the public address to access the web service is different, but we
> > need user name security token policy to be applied to service WSDL.
>
> Right that's possible- just create a proxy and engage whatever policies
> you want on it.
>
> Sanjiva.
> --
> Sanjiva Weerawarana, Ph.D.
> Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
> Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
> Member; Apache Software Foundation; http://www.apache.org/
> Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>


-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"

Re: [jira] Commented: (SYNAPSE-116) Add support for useOriginalWSDL in Synapse

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
balaji hari wrote:
> Looks like this issue is related with
> 
> http://www.nabble.com/Synapse-proxy-service-changes-service-address-location-tf4209274.html#a11973972
> 
> Is there a way to specify just not to modify the WSDL port address and still
> change the WSDL to apply security policy?

Um, no :).

The service that Synapse is proxying could be a .Net service or a PHP 
service. The only way to "add value" to the interface offered by that 
service is to front that service with another that offers the same 
interface offered over a more secure policy and which simply delegates the 
actual implementation of the request to the original service. That's 
basically what a proxy service is.

> Actually the public address to access the web service is different, but we
> need user name security token policy to be applied to service WSDL.

Right that's possible- just create a proxy and engage whatever policies 
you want on it.

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/


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


Re: [jira] Commented: (SYNAPSE-116) Add support for useOriginalWSDL in Synapse

Posted by balaji hari <to...@gmail.com>.
Looks like this issue is related with

http://www.nabble.com/Synapse-proxy-service-changes-service-address-location-tf4209274.html#a11973972

Is there a way to specify just not to modify the WSDL port address and still
change the WSDL to apply security policy?

Actually the public address to access the web service is different, but we
need user name security token policy to be applied to service WSDL.

Balaji


JIRA jira@apache.org wrote:
> 
> 
>     [
> https://issues.apache.org/jira/browse/SYNAPSE-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529825
> ] 
> 
> Upul Godage commented on SYNAPSE-116:
> -------------------------------------
> 
> This can be achieved by using 2 Axis2 parameters: useOriginalwsdl,
> modifyUserWSDLPortAddress.
> 
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>     <proxy name="StockQuoteProxy">
>         <target>
>             <endpoint>
>                 <address
> uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
>             </endpoint>
> 			<outSequence>
> 				<send/>
> 			</outSequence>
>         </target>
>         <publishWSDL
> uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
> 	<parameter name="useOriginalwsdl">true</parameter>
> 	<parameter name="modifyUserWSDLPortAddress">false</parameter>
>     </proxy>
> </definitions>
> 
>> Add support for useOriginalWSDL in Synapse
>> ------------------------------------------
>>
>>                 Key: SYNAPSE-116
>>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-116
>>             Project: Synapse
>>          Issue Type: Bug
>>            Reporter: Paul Fremantle
>>
>> This needs to be allowed on a per-proxy basis. 
> 
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28SYNAPSE-116%29-Add-support-for-useOriginalWSDL-in-Synapse-tf4209535.html#a12865344
Sent from the Synapse - Dev mailing list archive at Nabble.com.


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