Solution:call.setsoapversion (Org.apache.axis.soap.SOAPConstants.SOAP12_CONSTANTS);
References: http://www.blogjava.net/andy199999/
Exception content:
Axisfault
FaultCode: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}invalidsecurity
Faultsubcode:
FaultString: An error occurred while verifying the security of the message.
Faultactor:
Faultnode:
Faultdetail:
{http://xml.apache.org/axis/}stacktrace: An error occurred while verifying the security of the message.
At Org.apache.axis.message.SOAPFaultBuilder.createFault (soapfaultbuilder.java:222)
At Org.apache.axis.message.SOAPFaultBuilder.endElement (soapfaultbuilder.java:129)
At Org.apache.axis.encoding.DeserializationContext.endElement (deserializationcontext.java:1087)
At Com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement (abstractsaxparser.java:601)
At Com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement ( xmldocumentfragmentscannerimpl.java:1782)
At Com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.next ( xmldocumentfragmentscannerimpl.java:2939)
At Com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (xmldocumentscannerimpl.java:647)
At Com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next (xmlnsdocumentscannerimpl.java:140)
At Com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument ( xmldocumentfragmentscannerimpl.java:511)
At Com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (xml11configuration.java:808)
At Com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (xml11configuration.java:737)
At Com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (xmlparser.java:119)
At Com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (abstractsaxparser.java:1205)
At Com.sun.org.apache.xerces.internal.jaxp.saxparserimpl$jaxpsaxparser.parse (saxparserimpl.java:522)
At Javax.xml.parsers.SAXParser.parse (saxparser.java:395)
At Org.apache.axis.encoding.DeserializationContext.parse (deserializationcontext.java:227)
At Org.apache.axis.SOAPPart.getAsSOAPEnvelope (soappart.java:696)
At Org.apache.axis.Message.getSOAPEnvelope (message.java:435)
At Org.apache.axis.transport.http.HTTPSender.readFromSocket (httpsender.java:796)
At Org.apache.axis.transport.http.HTTPSender.invoke (httpsender.java:144)
At Org.apache.axis.strategies.InvocationStrategy.visit (invocationstrategy.java:32)
At Org.apache.axis.SimpleChain.doVisiting (simplechain.java:118)
At Org.apache.axis.SimpleChain.invoke (simplechain.java:83)
At Org.apache.axis.client.AxisClient.invoke (axisclient.java:165)
At Org.apache.axis.client.Call.invokeEngine (call.java:2784)
At Org.apache.axis.client.Call.invoke (call.java:2767)
At Org.apache.axis.client.Call.invoke (call.java:2443)
At Org.apache.axis.client.Call.invoke (call.java:2366)
At Org.apache.axis.client.Call.invoke (call.java:1812)
At Com.xhdx.ems.entity.AuthClient.main (authclient.java:40)
Axis calls the. NET Webservic interface: An error occurred while verifying the security of the message