[wsf-c-dev] [jira] Created: (WSFPHP-106) Allow adding soap headers
with clild element
Nandika Jayawardana (JIRA)
jira at wso2.org
Tue Nov 6 04:15:14 PST 2007
Allow adding soap headers with clild element
--------------------------------------------
Key: WSFPHP-106
URL: http://www.wso2.org/jira/browse/WSFPHP-106
Project: WSO2 WSF/PHP
Issue Type: Improvement
Environment: Linux/Windows
Reporter: Nandika Jayawardana
Priority: Minor
A user should be allowed to add soap headers similar to the following.
<ServiceGatewayHeader>
<SourceApplicationId>foo</SourceApplicationId>
<DestinationApplicationId>bar</DestinationApplicationId>
<TargetWebService>foobar</TargetWebService>
</ServiceGatewayHeader>
A suitable API to do the above would be to the following.
new WSMessage($this->xmlString,
array('to' => 'endpoint',
'action' => 'method',
'headers' => array(new WSHeader('foo', 'ServiceGatewayHeader', array(
new WSHeader('foo1', 'OriginatingApplicationId', 'foo'),
new WSHeader('foo2', 'DestinationApplicationId', 'bar'),
new WSHeader('foo3', 'TargetWebService', 'foobar'))))));
Here the 3 argument to the WSHeader constructor can be either a string, or an array of WSHeader objects.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Wsf-c-dev
mailing list