axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <>
Subject Re: How do I get SOAP Header contents while using Axis2's ServiceClient
Date Wed, 14 Jun 2006 17:46:05 GMT
Good Afternoon Jeff-

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

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" <>
To: <>
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,


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

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:
>For additional commands, e-mail:

~Future is Open~ 

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message