My objective is I need to get the soap envelope in my
business logic implementation class. Because I need to pass the SOAP envelope
from my implementation class to Bpel service Flow(Need to invoke Bpel service
Flow from my Webservice impl class
ALFEventManagerSkeleton)
But currently I am trying with
ALFEventManagerMessageReceiverInOut.java invoke business logic
method
In earlier version of Axis(Axis1.3) I can able to get
the SOAP envelope by using,
org.apache.axis.MessageContext axisContext =
org.apache.axis.MessageContext
.getCurrentContext();
SOAPMessage soapmess = axisContext.getMessage();
SOAPEnvelope soapEnvelope = soapmess.getSOAPPart().getEnvelope();
.getCurrentContext();
SOAPMessage soapmess = axisContext.getMessage();
SOAPEnvelope soapEnvelope = soapmess.getSOAPPart().getEnvelope();
Please let me know how to get the SOAP envelope from
request object.
Thanks.
Regards,
Niraimathi
R
From: Ramasamy, Niraimathi (Cognizant)
Sent: Tuesday, October 17, 2006 10:41 AM
To: [email protected]
Cc: '[EMAIL PROTECTED]'
Subject: Construct SOAP message in Axis2
Hi,
I am trying to construct soap message in
Axis2.
I have tried with following:
org.apache.axiom.soap.SOAPEnvelope env =
msgContext.getEnvelope();
But it is returning the envelope with empty
message.
I have also tried with env.build but it is causing
the exception org.apache.axiom.om.OMException:
java.util.NoSuchElementException
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java)
I
am trying with the latest nightly build version.
Please help me to solve
this.
Regards,
Niraimathi
R
Cognizant
Technology Solutions
Cell: 9841234394
Cell: 9841234394
Office:044-42284005
| This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com |
