Hi All! I’m trying to access a .NET service using Axis2. From what I understand, if the WSDL (see policy below) has a WS security policy in it then WSDL2Java will generate the setUsername and setPassword methods in the service stub. Is this correct?
Here is the WSDL2Java invocation: sh ${AXIS2_HOME}/bin/axis2.sh \ org.apache.axis2.wsdl.WSDL2Java \ -uri "service" \ -d xmlbeans -s -r client_repository The client repository has the rampart and addressing mar in it and the axis2.xml. When I run the WSDL2Java above I get the following output and NO username or password stubs are created. WHY? Using AXIS2_HOME: /home/coi/downloads/axis2-1.1.1 Using JAVA_HOME: /usr/jdk1.5.0_03 Retrieving schema at 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP10.xml', relative to 'http://pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP1.xml'. Retrieving schema at 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP12.xml', relative to 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP10.xml'. Retrieving schema at 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP11.xml', relative to 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP10.xml'. Retrieving schema at 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP12.xml', relative to 'http://pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP1.xml'. Retrieving schema at 'http://Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP11.xml', relative to 'http://pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP1.xml'. Mar 28, 2007 10:54:01 AM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity INFO: Resolving schema with publicId [beta.va.nortel.com] and systemId [/http:/Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP10.xml] Mar 28, 2007 10:54:02 AM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity INFO: Resolving schema with publicId [http://schemas.microsoft.com/2003/10/Serialization/] and systemId [/http:/Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP11.xml] Mar 28, 2007 10:54:02 AM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity INFO: Resolving schema with publicId [http://schemas.microsoft.com/2003/10/Serialization/Arrays] and systemId [/http:/Pcary571.corp.nortel.com/WSDL/Authorize/ServiceBSP12.xml] Mar 28, 2007 10:54:12 AM org.apache.axis2.deployment.DeploymentEngine prepareRepository INFO: no services directory found under /home/coi/projects/coi/source_code/coidw/axsysTest/client_repository Mar 28, 2007 10:54:12 AM org.apache.axis2.deployment.DeploymentEngine doDeploy INFO: Deploying module : addressing-1.1.1 Mar 28, 2007 10:54:20 AM org.apache.axis2.deployment.DeploymentEngine doDeploy INFO: Deploying module : rampart-1.1 cannot create repository : policy will not be supported cannot find a PolicyExtension to process http://schemas.xmlsoap.org/ws/2005/07/securitypolicytype assertions cannot find a PolicyExtension to process http://schemas.xmlsoap.org/ws/2005/07/securitypolicytype assertions Mar 28, 2007 10:54:21 AM org.apache.axis2.wsdl.codegen.writer.ClassWriter createOutFile INFO: File ./src/com/nortel/va/beta/ClaimProcessorStub.java will not be overwritten. WS security policy <wsp:Policy wsu:Id="BasicHttpBinding_IClaim_policy"> - <wsp:ExactlyOne> - <wsp:All> - <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> - <wsp:Policy> - <sp:TransportToken> - <wsp:Policy> <sp:HttpsToken RequireClientCertificate="false" /> </wsp:Policy> </sp:TransportToken> - <sp:AlgorithmSuite> - <wsp:Policy> <sp:Basic256 /> </wsp:Policy> </sp:AlgorithmSuite> - <sp:Layout> - <wsp:Policy> <sp:Lax /> </wsp:Policy> </sp:Layout> <sp:IncludeTimestamp /> </wsp:Policy> </sp:TransportBinding> - <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> - <wsp:Policy> - <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"> - <wsp:Policy> <sp:WssUsernameToken10 /> </wsp:Policy> </sp:UsernameToken> </wsp:Policy> </sp:SignedSupportingTokens> - <sp:Wss10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> - <wsp:Policy> <sp:MustSupportRefKeyIdentifier /> <sp:MustSupportRefIssuerSerial /> </wsp:Policy> </sp:Wss10> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> -- View this message in context: http://www.nabble.com/Axis2%2C-WSDL2Java-and-Rampart-tf3481259.html#a9716824 Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]