> Hi, > > Attached is the soap request & response captured in tcpmon when the > webservice deployed in Weblogic is contacted using Axis2 java client. > But in the command prompt in the client side below exception is > thrown. > > Please advice what I am doing wrong. Even though security header is > available in request I couldn't identify the reason for this exception > thrown. > > > > [java] org.apache.axis2.AxisFault: Missing wsse:Security header in > request > [java] at > org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java > :92) > [java] at org.apache.axis2.engine.Phase.invoke(Phase.java:292) > [java] at > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) > [java] at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) > [java] at > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(O > utInAxisOperation.java:336) > [java] at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOp > eration.java:389) > [java] at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutI > nAxisOperation.java:211) > [java] at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:1 > 63) > [java] at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:5 > 28) > [java] at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:5 > 08) > [java] at > org.apache.rampart.weblogic.sample.Client.main(Client.java:82) > [java] Caused by: org.apache.rampart.RampartException: Missing > wsse:Security header in request > [java] at > org.apache.rampart.RampartEngine.process(RampartEngine.java:106) > [java] at > org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java > :85) > [java] ... 10 more > [java] Exception in thread "main" > [java] Java Result: 1 > > > > <<soap-request-response-30Nov07.txt>> > > > Thanks & Regards, > > Peter Rajesh >
************************************************************************* This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. *************************************************************************
============== Listen Port: 8000 Target Host: 127.0.0.1 Target Port: 7001 ==== Request ==== POST /Axis2/services/SalvageAssignmentProcessingService HTTP/1.1 Content-Type: application/soap+xml; charset=UTF-8; action="urn:echo" User-Agent: Axis2 Host: 127.0.0.1:8000 Transfer-Encoding: chunked 2a9 <?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing"> <soapenv:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="true" /> <wsa:To>http://localhost:8000/Axis2/services/SalvageAssignmentProcessingService</wsa:To> <wsa:MessageID>urn:uuid:9F654A1C5DAEC185A51196436112533</wsa:MessageID> <wsa:Action>urn:echo</wsa:Action> </soapenv:Header> <soapenv:Body> <aps:EchoRequest xmlns:aps="http://hig.com/AssignmentProcessing/">Hello from HIG</aps:EchoRequest> </soapenv:Body> </soapenv:Envelope>0 ==== Response ==== HTTP/1.1 200 OK Date: Fri, 30 Nov 2007 15:21:53 GMT Content-Type: application/soap+xml; charset=UTF-8 Transfer-Encoding: chunked 0206 <?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing"> <soapenv:Header> <wsa:Action>http://hig.com/AssignmentProcessing/AssignmentProcessingPortBinding/echoResponse</wsa:Action> <wsa:RelatesTo>urn:uuid:9F654A1C5DAEC185A51196436112533</wsa:RelatesTo> </soapenv:Header> <soapenv:Body> <EchoResponse xmlns="http://hig.com/AssignmentProcessing/">Hello from HIG</EchoResponse> </soapenv:Body> </soapenv:Envelope> 0000 ==============
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
