Hi David, Thanks for response.
As per my knowledge addressing module is engaged by default. Find below axi2.xml: Location: C:\Apache\axis2\webapps\WEB-INF\conf <axisconfig name="AxisJava2.0"> <!-- ================================================= --> <!-- Parameters --> <!-- ================================================= --> <parameter name="hotdeployment" locked="false">true</parameter> <parameter name="hotupdate" locked="false">false</parameter> <parameter name="enableMTOM" locked="false">false</parameter> <!--During a fault, stacktrace can be sent with the fault message. The following flag will control --> <!--that behaviour.--> <parameter name="sendStacktraceDetailsWithFaults" locked="false">true</parameter> <!--If there aren't any information available to find out the fault reason, we set the message of the expcetion--> <!--as the faultreason/Reason. But when a fault is thrown from a service or some where, it will be --> <!--wrapped by different levels. Due to this the initial exception message can be lost. If this flag--> <!--is set then, Axis2 tries to get the first exception and set its message as the faultreason/Reason.--> <parameter name="DrillDownToRootCauseForFaultReason" locked="false">false</parameter> <parameter name="userName" locked="false">admin</parameter> <parameter name="password" locked="false">axis2</parameter> <!-- If you have a frontend host which exposes this webservice using a different public URL --> <!-- use this parameter to override autodetected url --> <!--<parameter name="httpFrontendHostUrl" locked="false">https://someotherhost/context</parameter>--> <!-- The way of adding listener to the system--> <!-- <listener class="org.apache.axis2.ObserverIMPL">--> <!-- <parameter name="RSS_URL" locked="false">http://127.0.0.1/rss</parameter>--> <!-- </listener>--> <!-- ================================================= --> <!-- Message Receivers --> <!-- ================================================= --> <!--This is the Deafult Message Receiver for the system , if you want to have MessageReceivers for --> <!--all the other MEP implement it and add the correct entry to here , so that you can refer from--> <!--any operation --> <!--Note : You can ovride this for particular service by adding the same element with your requirement--> <messageReceivers> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> </messageReceivers> <!-- ================================================= --> <!-- Transport Ins --> <!-- ================================================= --> <transportReceiver name="http" class="org.apache.axis2.transport.http.SimpleHTTPServer"> <parameter name="port" locked="false">6060</parameter> <!--If you want to give your own host address for EPR generation--> <!--uncommet following paramter , and set as you required.--> <!--<parameter name="hostname" locked="false">http://myApp.com/ws</parameter>--> </transportReceiver> <!--Uncomment if you want to have SMTP transport support--> <!--<transportReceiver name="mail" class="org.apache.axis2.transport.mail.SimpleMailListener">--> <!--<parameter name="transport.mail.pop3.host" locked="false">127.0.0.1</parameter>--> <!--<parameter name="transport.mail.pop3.user" locked="false">axis2</parameter>--> <!--<parameter name="transport.mail.pop3.password" locked="false">axis2</parameter>--> <!--<parameter name="transport.mail.pop3.port" locked="false">110</parameter>--> <!--<parameter name="transport.mail.replyToAddress" locked="false">[EMAIL PROTECTED]</parameter>--> <!--</transportReceiver>--> <transportReceiver name="tcp" class="org.apache.axis2.transport.tcp.TCPServer"> <parameter name="port" locked="false">6060</parameter> <!--If you want to give your own host address for EPR generation--> <!--uncommet following paramter , and set as you required.--> <!--<parameter name="hostname" locked="false">tcp://myApp.com/ws</parameter>--> </transportReceiver> <!--Uncomment this if you want JMS transport support--> <!--<transportReceiver name="jms" class="org.apache.axis2.transport.jms.SimpleJMSListener">--> <!--<parameter name="transport.jms.Destination" locked="false">dynamicQueues/FOO</parameter>--> <!--<parameter name="java.naming.factory.initial" locked="false">--> <!--org.activemq.jndi.ActiveMQInitialContextFactory</parameter>--> <!--<parameter name="java.naming.provider.url" locked="false">tcp://localhost:61616</parameter>--> <!--</transportReceiver>--> <!-- ================================================= --> <!-- Transport Outs --> <!-- ================================================= --> <transportSender name="tcp" class="org.apache.axis2.transport.tcp.TCPTransportSender"/> <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/> <transportSender name="jms" class="org.apache.axis2.transport.jms.JMSSender"/> <transportSender name="http" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender"> <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter> <parameter name="Transfer-Encoding" locked="false">chunked</parameter> </transportSender> <transportSender name="https" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender"> <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter> <parameter name="Transfer-Encoding" locked="false">chunked</parameter> </transportSender> <!-- Uncomment this one with the appropriate papameters to enable the SMTP transport Receiver <transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender"> <parameter name="transport.mail.smtp.host" locked="false">127.0.0.1</parameter> <parameter name="transport.mail.smtp.user" locked="false">axis2</parameter> <parameter name="transport.mail.smtp.password" locked="false">axis2</parameter> <parameter name="transport.mail.smtp.port" locked="false">25</parameter> </transportSender> --> <!-- ================================================= --> <!-- Global Modules --> <!-- ================================================= --> <!-- Comment this to disable Addressing --> <module ref="addressing"/> <module ref="soapmonitor"/> <!--Configuring module , providing parameters for modules whether they refer or not--> <!--<moduleConfig name="addressing">--> <!--<parameter name="addressingPara" locked="false">N/A</parameter>--> <!--</moduleConfig>--> <!-- ================================================= --> <!-- Phases --> <!-- ================================================= --> <phaseOrder type="inflow"> <!-- System pre defined phases --> <phase name="Transport"> <handler name="RequestURIBasedDispatcher" class="org.apache.axis2.engine.RequestURIBasedDispatcher"> <order phase="Dispatch"/> </handler> <handler name="SOAPActionBasedDispatcher" class="org.apache.axis2.engine.SOAPActionBasedDispatcher"> <order phase="Dispatch"/> </handler> </phase> <phase name="Security"/> <phase name="PreDispatch"/> <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"> <handler name="AddressingBasedDispatcher" class="org.apache.axis2.engine.AddressingBasedDispatcher"> <order phase="Dispatch"/> </handler> <handler name="SOAPMessageBodyBasedDispatcher" class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher"> <order phase="Dispatch"/> </handler> <handler name="InstanceDispatcher" class="org.apache.axis2.engine.InstanceDispatcher"> <order phase="PostDispatch"/> </handler> </phase> <!-- System pre defined phases --> <!-- After Postdispatch phase module author or or service author can add any phase he want --> <phase name="soapmonitorPhase"/> <phase name="OperationInPhase"/> <phase name="RMPhase"/> </phaseOrder> <phaseOrder type="outflow"> <!-- user can add his own phases to this area --> <phase name="RMPhase"/> <phase name="soapmonitorPhase"/> <phase name="OperationOutPhase"/> <!--system predefined phase--> <!--these phase will run irrespective of the service--> <phase name="PolicyDetermination"/> <phase name="MessageOut"/> </phaseOrder> <phaseOrder type="INfaultflow"> <phase name="PreDispatch"/> <phase name="soapmonitorPhase"/> <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"> <handler name="RequestURIBasedDispatcher" class="org.apache.axis2.engine.RequestURIBasedDispatcher"> <order phase="Dispatch"/> </handler> <handler name="SOAPActionBasedDispatcher" class="org.apache.axis2.engine.SOAPActionBasedDispatcher"> <order phase="Dispatch"/> </handler> <handler name="AddressingBasedDispatcher" class="org.apache.axis2.engine.AddressingBasedDispatcher"> <order phase="Dispatch"/> </handler> <handler name="SOAPMessageBodyBasedDispatcher" class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher"> <order phase="Dispatch"/> </handler> <handler name="InstanceDispatcher" class="org.apache.axis2.engine.InstanceDispatcher"> <order phase="PostDispatch"/> </handler> </phase> <!-- user can add his own phases to this area --> <phase name="OperationInFaultPhase"/> <phase name="RMPhase"/> </phaseOrder> <phaseOrder type="Outfaultflow"> <!-- user can add his own phases to this area --> <phase name="RMPhase"/> <phase name="soapmonitorPhase"/> <phase name="OperationOutFaultPhase"/> <phase name="PolicyDetermination"/> <phase name="MessageOut"/> </phaseOrder> </axisconfig> Am I missing anything? Thanks Sunil -----Original Message----- From: David Illsley [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 2:52 PM To: axis-user@ws.apache.org Subject: Re: WS Addressing - Not able to Get MessageID in Response. Hi, Yes, you should get ws-addressing (including a messageid) in the response. My best guess is that the addressing modules isn't engaged on the server (though it obviously is in the client). David On 07/12/06, Sunil Choudhari -X (suchaudh - Satyam at Cisco) <[EMAIL PROTECTED]> wrote: > > > > Hi, > > Find below my request: > > <?xml version='1.0' encoding='utf-8'?> > > <soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:wsa="http://www.w3.org/2005/08/addressing"> > > <soapenv:Header> > > > <wsa:To>http://127.0.0.1:8080/Axis2/services/fromws</wsa:To> > > <wsa:ReplyTo> > > > <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address > > > </wsa:ReplyTo> > > > <wsa:MessageID>urn:uuid:154D4ED7795855F43111655301223211</wsa:MessageID> > > <wsa:Action>echoString</wsa:Action> > > </soapenv:Header> > > <soapenv:Body> > > <ns1:echoString xmlns:ns1="http://sunilfromws.org/"> > > <ns1:Text>echo1</ns1:Text> > > <ns1:Sequence>sequence1</ns1:Sequence> > > </ns1:echoString> > > </soapenv:Body> > > </soapenv:Envelope> > > I am getting following response: > > <?xml version='1.0' encoding='utf-8'?> > > <soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > > <soapenv:Header /> > > <soapenv:Body> > > <ns1:echoStringResponse xmlns:ns1="http://sunilfromws.org/" > xmlns:tns="http://ws.apache.org/axis2"> > > > <ns1:EchoStringReturn>echo1---sequence1</ns1:EchoStringReturn> > > </ns1:echoStringResponse> > > </soapenv:Body> > > </soapenv:Envelope> > > WS Addressing is engaged and I was expectring MessageID in response. > > Could any one help me to confirm my assumption? And if it is true , please > let me know why I am not receiving same. > > I am using Axis 2.0 Version 1.0 > > > Thanks, > > > > Sunil > > -- David Illsley - IBM Web Services Development --------------------------------------------------------------------- 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]