That was perfect. Thank you very much.

I looked at the generated code and found the required lines.

_operationClient.execute(true);
org.apache.axis2.context.MessageContext _returnMessageContext =
_operationClient.getMessageContext(
 
org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
org.apache.axiom.soap.SOAPEnvelope _returnEnv =
_returnMessageContext.getEnvelope(); 

Thank you again,

-Jeff

-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 14, 2006 10:46 AM
To: [email protected]
Subject: Re: How do I get SOAP Header contents while using Axis2's
ServiceClient

Good Afternoon Jeff-

If you use the WSDL2Java utility you will generate the necessary Java
classes from the wsdl input ..the name will be
<NameOfWebService>Client.java where NameOfWebService is the name of the
web service (from the name attribute of wsdl:portType node) e.g.
<wsdl:portType name="MessageWebService">

HTH,
Martin --
*********************************************************************
This email message and any files transmitted with it contain
confidential information intended only for the person(s) to whom this
email message is addressed.  If you have received this email message in
error, please notify the sender immediately by telephone or email and
destroy the original message without making a copy.  Thank you.



----- Original Message -----
From: "Scudder, Jeffrey W" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, June 14, 2006 1:34 PM
Subject: RE: How do I get SOAP Header contents while using Axis2's
ServiceClient


I'm afraid I have a couple of new questions. I appreciate your patience
and all the help you've given so far. I'm trying to perform the last two
steps you listed, invoke using operation context, and get the response
from the operation client. I'm afraid I'm at a loss. I don't see a way
to invoke the service using the operation context or the operation
client. How do I make the client call once I have created to outgoing
request envelope?

Thank you,

Jeff 

-----Original Message-----
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 10:55 PM
To: [email protected]
Subject: Re: How do I get SOAP Header contents while using Axis2's
ServiceClient

yes you have , but you need to use operationClient not the service
client. You have to do the following steps in order to do that;
   - First create a ServiceClient
   - Then create an operation client using the created service client
   - Create Message context
   - Create SOAPEnvelop by your self
   - Add that to message context
   - invoke the service using operation context
   - using operation client you can get the response message context and
response SOAP envelop too.

Scudder, Jeffrey W wrote:

>Hi All,
>
>I am using Axis2 server side to host web services and using Rampart to 
>add outflow security. The client software uses the Axis2 bundled 
>libraries but does not run Tomcat. When I use a ServiceClient object to

>make my request, I get the contents of the SOAP Body, is there a way to

>retrieve the Header from the incoming Envelope as well?
>
>Thank you,
>
>Jeff Scudder
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

--
Thanks,
Deepal
................................................................
~Future is Open~ 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to