Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Web Services
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Web Services
Exception in thread "main" org.apache.axis2.AxisFault: Error in extracting message properties
srinivas kumarr
Greenhorn
Posts: 7
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Gettign this exception while calling the webservice from the client
Exception in thread "main" org.apache.axis2.AxisFault: Error in extracting message properties at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:70) at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340) at org.apache.axis2.engine.Phase.invoke(Phase.java:313) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:427) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at com.ttdev.ss.SecureServiceStub.concat(SecureServiceStub.java:182) at com.ttdev.ss.SecureClient.main(SecureClient.java:29) Caused by: org.apache.rampart.RampartException: Error in extracting message properties at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:386) at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:61) at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64) ... 9 more Caused by: org.apache.ws.security.WSSecurityException: Error in converting SOAP Envelope to Document; nested exception is: java.lang.UnsupportedOperationException: TODO at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:161) at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:272) ... 11 more Caused by: java.lang.UnsupportedOperationException: TODO at org.apache.axiom.om.impl.dom.DocumentImpl.setStandalone(DocumentImpl.java:415) at org.apache.axiom.om.impl.builder.StAXOMBuilder.createDocument(StAXOMBuilder.java:190) at org.apache.axiom.om.impl.builder.StAXOMBuilder.<init>(StAXOMBuilder.java:105) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:167) at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:130) ... 12 more
WSDL:
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions name="SecureService" targetNamespace="http://ttdev.com/ss" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200512" xmlns:wsp="http://www.w3.org/Submission/2006/SUBM-WS-Policy-20060425" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://ttdev.com/ss" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurityutility-1.0.xsd"> <wsdl:types> <xsd:schema targetNamespace="http://ttdev.com/ss"> <xsd:element name="concat"> <xsd:complexType> <xsd:sequence> <xsd:element name="s1" type="xsd:string"/> <xsd:element name="s2" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="concatResponse"> <xsd:complexType> <xsd:sequence> <xsd:element name="r" type="xsd:string"> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </wsdl:types> <wsdl:message name="concatResponse"> <wsdl:part name="parameters" element="tns:concatResponse"> </wsdl:part> </wsdl:message> <wsdl:message name="concatRequest"> <wsdl:part name="parameters" element="tns:concat"> </wsdl:part> </wsdl:message> <wsdl:portType name="SecureService"> <wsdl:operation name="concat"> <wsdl:input message="tns:concatRequest"> </wsdl:input> <wsdl:output message="tns:concatResponse"> </wsdl:output> </wsdl:operation> </wsdl:portType> <wsdl:binding name="SecureServiceSOAP" type="tns:SecureService"> <wsp:PolicyReference URI="#p1" wsdl:required="true"/> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="concat"> <soap:operation soapAction="http://ttdev.com/ss/NewOperation"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="SecureService"> <wsdl:port name="p1" binding="tns:SecureServiceSOAP"> <soap:address location="http://localhost:8080/ss/p1"/> </wsdl:port> </wsdl:service> <wsp:Policy wsu:Id="p1"> <sp:AsymmetricBinding> <wsp:Policy> <sp:InitiatorToken> <wsp:Policy> <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/12/securitypolicy/IncludeToken/AlwaysToRecipient"> <wsp:Policy> <sp:WssX509V3Token10/> </wsp:Policy> </sp:X509Token> </wsp:Policy> </sp:InitiatorToken> <sp:RecipientToken> <wsp:Policy> <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/12/securitypolicy/IncludeToken/Never"> <wsp:Policy> <sp:WssX509V3Token10/> </wsp:Policy> </sp:X509Token> </wsp:Policy> </sp:RecipientToken> <sp:AlgorithmSuite> <wsp:Policy> <sp:TripleDesRsa15/> </wsp:Policy> </sp:AlgorithmSuite> </wsp:Policy> </sp:AsymmetricBinding> <sp:Wss10> <wsp:Policy> <sp:MustSupportRefEmbeddedToken/> <sp:MustSupportRefIssuerSerial/> </wsp:Policy> </sp:Wss10> <sp:SignedParts> <sp:Body/> </sp:SignedParts> <sp:EncryptedParts> <sp:Body/> </sp:EncryptedParts> <sp:EncryptedElements> <sp:XPath> //*[local-name()='Signature'] </sp:XPath> </sp:EncryptedElements> <sp:SignedSupportingTokens> <wsp:Policy> <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/12/securitypolicy/IncludeToken/AlwaysToRecipient"/> </wsp:Policy> </sp:SignedSupportingTokens> </wsp:Policy> </wsdl:definitions>
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
WDSL2Java using Axis2 via Ant in Eclipse
The service cannot be found for the endpoint reference (EPR) 127.0.0.1/a
Web Service message level Encryption Decryption through public and private key
Rampart/Axis2 not generating Security Header.
Need Java Client stubs for given WSDL
More...