[ 
https://issues.apache.org/jira/browse/AXIS2-2531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deepal Jayasinghe resolved AXIS2-2531.
--------------------------------------

    Resolution: Won't Fix

Hi Thilina,
I can not understand how do we make out going SOAP envelope available to the 
client , since we create soap envelope when someone asked to invoke the 
service. And we can not create envelope when we create ServiceClient. But you 
can add headers to the service client and those will be added to the request 
message. 

Thanks
Deepal

> Make the outgoing SOAPEnvelope available to the service 
> --------------------------------------------------------
>
>                 Key: AXIS2-2531
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2531
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>            Reporter: Thilina Gunarathne
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>
> Currently service authors cannot set headers to the outgoing envelope from 
> the service..  The reason is that in the InOut message receivers, we create 
> the outgoing SoapEnvelope after invoking the business logic.. 
>                 OMElement result = (OMElement) method.invoke(
>                         obj, new 
> Object[]{msgContext.getEnvelope().getBody().getFirstElement()});
>                 SOAPFactory fac = getSOAPFactory(msgContext);
>                 SOAPEnvelope envelope = fac.getDefaultEnvelope();
>                 if (result != null) {
>                     envelope.getBody().addChild(result);
>                 }
>                 newmsgContext.setEnvelope(envelope);
> It would be great if we can make the envelope available to the service by 
> moving the newmsgContext.setEnvelope(envelope); and the related code to some 
> where before the method.invoke...

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to