axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thulasiraman K <>
Subject Re: Missing Headers in the SOAP:Response - Rampart
Date Wed, 05 Sep 2012 06:09:33 GMT
Thanks Suresh for your prompt reply,

Yes, I have copied the .mar files and the jar files. And I also tested for SSL Mutual Authentication,
the webservices works fine as expected. The issue is capturing the Web Services messages,
I tried the logging module(tried the Apache sample-logging.mar example) I am not able to
see any Headers in the SOAPResponse, i.e. the WS-ReplyTo, MessageID etc. or any optional headers
in the Out going SOAPResponse, but I can able to see Headers in SOAPRequest. I know Headers
are not mandate in the SOAPResponse, but for auditing purpose we are capturing.

I have even edited the Addressing.mar(Module.xml) file like this, but still i am not able
to get the Headers in the SOAPResponse. Also tried the same thing in the axis2.xml (Added
moduleconfig for optionalheaders)

<module name="addressing">
<parameter name="includeOptionalHeaders">true</parameter>

Any clue on this.


 From: Suresh Attanayake <>
To:; Thulasiraman K <> 
Sent: Wednesday, September 5, 2012 10:07 AM
Subject: Re: Missing Headers in the SOAP:Response - Rampart


Have you added rampart.mar module and rampart lib jars to Axis2 ?
	* You should have copied the rampart.mar which can be found in the modules/ directory of
the rampart distribution to the repository/modules/ folder of the axis2 distribution. 
	* You should have copied .jar files which can be found in the lib/ directory of the rampart
distribution to the lib/ directory of the aixs2 distribution.
 Can you please share the server logs ?


On Tue, Sep 4, 2012 at 7:08 PM, Thulasiraman K <> wrote:

Hi All,
>I am trying to implement a Web Services application using Axis 1.6.2 and Rampart 1.6.2,
based on the MessageID in the SOAP header request I want to log and Map that to the outgoing
SOAP response. But right now my response doesn't have any headers. do i need to configure
anything in the services.xml or anything in rampart? Any help is appreciated.
>From Log:
>Request: <soapenv:Envelope xmlns:soapenv=""><soapenv:Header
xmlns:wsa=""><wsse:Security xmlns:wsse=""
soapenv:mustUnderstand="1"><wsu:Timestamp wsu:Id="TS-1"><wsu:Created>2012-09-04T13:03:10.709Z</wsu:Created><wsu:Expires>2012-09-04T13:08:10.709Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken
>Response: [INFO] <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv=""><soapenv:Body><ns:testResponse
>both my policy.xml and services.xml are same
>-- services.xml--
><operation name="test">
><messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
><parameter name="ServiceClass" locked="false">xx.xx.IDEnrollment
><module ref="rampart" />
><module ref="addressing" />
><module ref="sample-logging" />
><wsp:Policy wsu:Id="UTOverTransport"
><sp:HttpsToken RequireClientCertificate="false" />
><sp:Basic128 />
><sp:Lax />
><sp:IncludeTimestamp />
><ramp:RampartConfig xmlns:ramp="">

Suresh Attanayake

Blog : 
LinkedIn : 
Twitter : 
View raw message