If you are using Axis2 1.6.0, then you should use Rampart 1.6.0. Andreas
On Tue, Sep 6, 2011 at 16:53, ennidhi <satish.pus...@accenture.com> wrote: > > The rampart version is 1.5. I am adding the POM file below for more details: > > POM: > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>SecureService</groupId> > <artifactId>SecureService</artifactId> > <version>0.0.1-SNAPSHOT</version> > > > <dependencies> > > <dependency> > <groupId>wsdl4j</groupId> > <artifactId>wsdl4j</artifactId> > <version>1.6.1</version> > </dependency> > <dependency> > <groupId>org.apache.xerces</groupId> > <artifactId>xercesImpl</artifactId> > <version>2.9.1</version> > </dependency> > <dependency> > <groupId>xerces</groupId> > <artifactId>xerces</artifactId> > <version>2.4.0</version> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-codegen</artifactId> > <version>1.6.0</version> > </dependency> > <dependency> > <groupId>org.apache.axis2</groupId> > <artifactId>axis2-adb-codegen</artifactId> > <version>1.6.0</version> > </dependency> > <dependency> > <groupId>org.apache.rampart</groupId> > <artifactId>rampart-core</artifactId> > <version>1.5</version> > </dependency> > <dependency> > <groupId>org.apache.rampart</groupId> > <artifactId>rampart</artifactId> > <version>1.5</version> > <type>mar</type> > </dependency> > </dependencies> > > > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <source>1.6</source> > <target>1.6</target> > </configuration> > </plugin> > </plugins> > </build> > </project> > > > > > Amila Jayasekara wrote: >> >> Hello Ennidhi, >> >> Could you please let us know th Rampart version you are using ? >> >> Also, according to stack trace the error had occurred while converting >> Axiom message to its DOM implementation. Therefore to further >> investigate this issue it will be great if you could send us a sample >> SOAP message you are trying to send. >> >> Thanks >> AmilaJ >> >> On Tue, Aug 30, 2011 at 12:29 PM, ennidhi <satish.pus...@accenture.com> >> wrote: >>> >>> I am getting this exception when I call the web service from the client. >>> Please help me here. >>> >>> 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 File >>> <?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=""/> >>> <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> >>> -- >>> View this message in context: >>> http://old.nabble.com/Exception-in-thread-%22main%22-org.apache.axis2.AxisFault%3A-Error-in-extracting-tp32362217p32362217.html >>> Sent from the Axis - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org >>> For additional commands, e-mail: java-user-h...@axis.apache.org >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org >> For additional commands, e-mail: java-user-h...@axis.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/org.apache.axis2.AxisFault%3A-Error-in-extracting-tp32362217p32408703.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org