You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Michael Griffin (JIRA)" <ji...@apache.org> on 2007/02/28 21:46:51 UTC

[jira] Created: (SYNAPSE-64) Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services

Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services
-------------------------------------------------------------------------------------------------------------------------------------

                 Key: SYNAPSE-64
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-64
             Project: Synapse
          Issue Type: New Feature
            Reporter: Michael Griffin


When using a proxy to delegate back to a POX service it would be nice to allow for values from the incoming SOAP headers or to use an xpath expression to extract values to be used as HTTP request headers send to the delegate.

-- 
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


[jira] Assigned: (SYNAPSE-64) Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services

Posted by "indika priyantha kumara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

indika priyantha kumara reassigned SYNAPSE-64:
----------------------------------------------

    Assignee: indika priyantha kumara

> Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-64
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-64
>             Project: Synapse
>          Issue Type: New Feature
>            Reporter: Michael Griffin
>         Assigned To: indika priyantha kumara
>
> When using a proxy to delegate back to a POX service it would be nice to allow for values from the incoming SOAP headers or to use an xpath expression to extract values to be used as HTTP request headers send to the delegate.

-- 
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


[jira] Commented: (SYNAPSE-64) Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services

Posted by "indika priyantha kumara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478697 ] 

indika priyantha kumara commented on SYNAPSE-64:
------------------------------------------------

Ruman is correct 

replace
 <set-property name="string"
    (value="literal" | expression="xpath")
    [scope=axis2|transport]/>

with
 <property name="string"
    (value="literal" | expression="xpath")
    [scope=axis2|transport] [action="set|remove"]/> 

My idea was the above but when commenting this issue I had done some mistakes .

thanks
indika

> Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-64
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-64
>             Project: Synapse
>          Issue Type: New Feature
>            Reporter: Michael Griffin
>
> When using a proxy to delegate back to a POX service it would be nice to allow for values from the incoming SOAP headers or to use an xpath expression to extract values to be used as HTTP request headers send to the delegate.

-- 
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


[jira] Resolved: (SYNAPSE-64) Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services

Posted by "indika priyantha kumara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

indika priyantha kumara resolved SYNAPSE-64.
--------------------------------------------

    Resolution: Fixed

Now synapse can get the transport headers, property from the Axis2 configuration Context using  XPath function synapse:get-property(scope,prop-name)

ex: To get SOAP header To  synapse:get-property('transport','To')

Using the property mediator, setting and removing above properties are also possible
ex: 
 To set the transport header
      <property name="To" value="http://www.example.com" scope="transport" /> 
 To remove the transport header 
    <property name="To" scope="transport" action="remove"/>

> Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-64
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-64
>             Project: Synapse
>          Issue Type: New Feature
>            Reporter: Michael Griffin
>         Assigned To: indika priyantha kumara
>
> When using a proxy to delegate back to a POX service it would be nice to allow for values from the incoming SOAP headers or to use an xpath expression to extract values to be used as HTTP request headers send to the delegate.

-- 
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-64) Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services

Posted by Ruwan Linton <ru...@gmail.com>.
On 3/7/07, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
>
> Asankha C. Perera (JIRA) wrote:
> >     [
> https://issues.apache.org/jira/browse/SYNAPSE-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478356]
> >
> > Asankha C. Perera commented on SYNAPSE-64:
> > ------------------------------------------
> >
> > Indika, I guess your proposal is not the above, but the following:
> >
> > replace
> >  <set-property name="string"
> >     (value="literal" | expression="xpath")
> >     [scope=axis2|transport]/>
> >
> > with
> >  <set-property name="string"
> >     (value="literal" | expression="xpath")
> >     [scope=axis2|transport] [action="add|remove"]/>
> >
> > For this +1
>
> I read the issue also but I can't grok this: I you saying we're going to
> have a mediator saying <set-property action=remove>..</> to mean remove
> property?? If so I'm -1 on that; that's just totally confusing.
>
> Why not go with either "setProperty/removeProperty" or "property
> @actio

n=set|get"?


I think this change should be as :

<property  [action="set/remove"] ...../>

which means setting or removing properties to/from the context (property
mediator).

Indika, isn't it the case?

Ruwan.

Sanjiva.
> --
> Sanjiva Weerawarana, Ph.D.
> Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
> Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
> Director; Open Source Initiative; http://www.opensource.org/
> 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-64) Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
Asankha C. Perera (JIRA) wrote:
>     [ https://issues.apache.org/jira/browse/SYNAPSE-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478356 ] 
> 
> Asankha C. Perera commented on SYNAPSE-64:
> ------------------------------------------
> 
> Indika, I guess your proposal is not the above, but the following:
> 
> replace
>  <set-property name="string" 
>     (value="literal" | expression="xpath") 
>     [scope=axis2|transport]/>
> 
> with
>  <set-property name="string" 
>     (value="literal" | expression="xpath") 
>     [scope=axis2|transport] [action="add|remove"]/>
> 
> For this +1

I read the issue also but I can't grok this: I you saying we're going to 
have a mediator saying <set-property action=remove>..</> to mean remove 
property?? If so I'm -1 on that; that's just totally confusing.

Why not go with either "setProperty/removeProperty" or "property 
@action=set|get"?

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
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


[jira] Commented: (SYNAPSE-64) Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services

Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478356 ] 

Asankha C. Perera commented on SYNAPSE-64:
------------------------------------------

Indika, I guess your proposal is not the above, but the following:

replace
 <set-property name="string" 
    (value="literal" | expression="xpath") 
    [scope=axis2|transport]/>

with
 <set-property name="string" 
    (value="literal" | expression="xpath") 
    [scope=axis2|transport] [action="add|remove"]/>

For this +1

> Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-64
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-64
>             Project: Synapse
>          Issue Type: New Feature
>            Reporter: Michael Griffin
>
> When using a proxy to delegate back to a POX service it would be nice to allow for values from the incoming SOAP headers or to use an xpath expression to extract values to be used as HTTP request headers send to the delegate.

-- 
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


[jira] Commented: (SYNAPSE-64) Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services

Posted by "indika priyantha kumara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478348 ] 

indika priyantha kumara commented on SYNAPSE-64:
------------------------------------------------

I had extended the get-property XPath function to extract the transport headers ,Axis2 Configuration Context property and also extended the functionality of property mediator to set the above properties. But Still we have not a capability of removing the properties and the transport headers. Therefore I would like to suggest to change property mediator in order to achieve both of setting and removing functionality of properties .

Need to change
  <set-property name="string" [value="string"] [src="url"] [key="string"]>
        <inline-xml/>?
  <set-property/>
to the
  <property name="string" [action="set"] [value="string"] [src="url"] [key="string"]>
        <inline-xml/>?
  <property/>

<property name="string" action="remove" [value="string"] [src="url"] [key="string"]>
        <inline-xml/>?
<property/>



> Allow use of SOAP header elements or xpath extractions from the SOAP body to set HTTP request headers when delegating to POX services
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-64
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-64
>             Project: Synapse
>          Issue Type: New Feature
>            Reporter: Michael Griffin
>
> When using a proxy to delegate back to a POX service it would be nice to allow for values from the incoming SOAP headers or to use an xpath expression to extract values to be used as HTTP request headers send to the delegate.

-- 
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