Axis calls the. NET Webservic interface: An error occurred while verifying the security of the message

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.