java - How to see what Axis2 sends and receives? -
I have an Axis 2 web service client This service uses both SSL and WS-security so I have the rampart
I think my customer sends the right questions, but I got an exception:
org.apache.axis2.AxisFault: Must understand that header is http: / failed to /docs.oasis-open.org/ WSS / 2004/01 / oasis 200,401-WSS-wssecurity-secext-1.0.xsd: Security org.apache.axis2.engine.AxisEngine.checkMustUnderstand (AxisEngine.java:97 ) On org.apache.axis2.engine.AxisEngine .receive (AxisEngine.java:163) org.apache.axis2.description.OutInAxisOperationClient.handleResponse (OutInAxisOperation.java:364) organization on org.apache.axis2.description.OutInAxisOperationClient.send (OutInAxisOperation.java:417). On apache.axis2.description.OutInAxisOperationClient.executeImpl org.apache.axis2.client.OperationClient.execute (OutInAxisOperation.java:229) (OperationClient.java:165) on pl.firstdata.www.wdx.business.card.CardServiceStub. getBalance (CardServiceStub.java:1570) on pl.firstdata.www.wdx.business.card.wdx_client.main (wdx_client.java:164)
There is no way to see " Eared feedback with "bare" queries and HTTP H?
Although this service uses SSL, I think I can not use an HTTP monitor, and it should be done by axis2 after applying "WS-Security", but with SSL First I can enable such logging on my emulator (without SSL) and it looks like:
POST /webservices/emu/get_info.hdb HTTP / 1.1 Content-Type: Text / Xml; Charset = UTF-8 SOAPAction: "" User-Agent: Axis2 host: 127.0.0.1:8765 Content-Length? 4585 from & lt; XML version = '1.0' encoding = 'UTF-8' & gt; & Lt; soapenv: Envelope xmlns: soapenv = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: xenc = "http://www.w3.org/2001/04/xmlenc#" & gt; & Lt; Soapenv: header xmlns: wsa = "http://www.w3.org/2005/08/addressing" & gt; & Lt; wsse: Security xmlns: wsse = "http://docs.oasis-open.org/wss/2004/01/ Oasis-200401-WSS-Waissyukwayri-Sesekst-Lk0.akssdi" Sopenvi: Chahisender = "1" & gt; & Lt; Xenc: encrypted key id = "ankIid-0d71ff 61f 3796881f812803190645315" & gt; & Lt; Xenc: encryption method algorithm = "http: // www .w3.org / 2001/04 / xmlenc # rsa-1_5" /> & Lt; DS: KiInfo xmlns: DS = "http://www.w3.org/2000/09/xmldsig#" & gt; & Lt; Wsse: SecurityTokenReference & gt; & Lt; Wsse: main identifier ... ...
Use the TCPMN tool for this .
Please note that in most Linux-based installations, this will most likely be made for you. Once you are done with the process of building, you can find executable on Linux $ {AXIS2C_HOME} / bin / tools on Linux, or on% AXIS2C_HOME% \ bin \ devices on MS Windows.
Comments
Post a Comment