Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 4786 invoked from network); 11 Feb 2011 16:10:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 16:10:38 -0000 Received: (qmail 69909 invoked by uid 500); 11 Feb 2011 16:10:37 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 69636 invoked by uid 500); 11 Feb 2011 16:10:35 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 69627 invoked by uid 99); 11 Feb 2011 16:10:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 16:10:34 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of gmazza@talend.com does not designate 83.220.139.241 as permitted sender) Received: from [83.220.139.241] (HELO mail.skyfillers.com) (83.220.139.241) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 16:10:28 +0000 X-MDAV-Processed: mail.skyfillers.com, Fri, 11 Feb 2011 17:10:07 +0100 Received: from [127.0.0.1] by mail.skyfillers.com (Cipher TLSv1:RC4-MD5:128) (MDaemon PRO v11.0.3) with ESMTP id md50005232573.msg for ; Fri, 11 Feb 2011 17:10:05 +0100 X-Spam-Processed: mail.skyfillers.com, Fri, 11 Feb 2011 17:10:05 +0100 (not processed: message from trusted or authenticated source) X-Authenticated-Sender: smtp@mail.talend.com X-MDRemoteIP: 158.59.127.90 X-Return-Path: gmazza@talend.com X-Envelope-From: gmazza@talend.com X-MDaemon-Deliver-To: dev@cxf.apache.org Message-ID: <4D555F62.6050609@talend.com> Date: Fri, 11 Feb 2011 11:10:10 -0500 From: Glen Mazza User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: "dev@cxf.apache.org" Subject: Re: wsdl2java client generation error with WS-Trust References: <1297438529907-3381396.post@n5.nabble.com> In-Reply-To: <1297438529907-3381396.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Actually, Kerek best to ask CXF questions on the users@cxf.apache.org list (also on Nabble), which has virtually everybody on dev (for internal development of CXF only) plus tons of users. I think you're running wsdl2java with the "-validate" option, the error below might be WS-I Basic Profile related and not an actual WSDL syntactical error, so the wsdl2jva process should complete if you don't use "-validate" option. Of course, the WSDLs you create should not fail the -validate option, but if you are provided the WSDL and it doesn't completely follow the WS-I BP there may not be much you can do about it. Anyway, you might not even need to run WSDL2Java on the below WSDL -- using CXF's stsclient[1] to access the STS may be sufficient for your needs. HTH, Glen [1] http://cxf.apache.org/docs/ws-trust.html On 2/11/2011 10:35 AM, Kerek.Tibor wrote: > Hi! > I hope i'm writing to the right mailing list. I want to use OpenAm, and it > has a few webservices. When i tried to generate a client to one of them, i > got the following error message (i'm using SpringSource Tool Suitewith CXF > 2.3.1): > > WSDLToJava Error: > Summary: Failures: 2, Warnings: 0 > > <<< ERROR! > Part in Message > <{http://localhost:8080/openfm/SecurityTokenService/}ISecurityTokenService_IssueToken_InputMessage> > referenced Type > <{http://docs.oasis-open.org/ws-sx/ws-trust/200512}RequestSecurityToken> can > not be found in the schemas > Part in Message > <{http://localhost:8080/openfm/SecurityTokenService/}ISecurityTokenService_IssueToken_OutputMessage> > referenced Type > <{http://docs.oasis-open.org/ws-sx/ws-trust/200512}RequestSecurityTokenResponse> > can not be found in the schemas > > A document-literal binding in a DESCRIPTION MUST refer, in each of its > soapbind:body element(s),only to wsdl:part element(s) that have been defined > using the element attribute. > > > > org.apache.cxf.tools.common.ToolException: > Summary: Failures: 2, Warnings: 0 > > <<< ERROR! > Part in Message > <{http://localhost:8080/openfm/SecurityTokenService/}ISecurityTokenService_IssueToken_InputMessage> > referenced Type > <{http://docs.oasis-open.org/ws-sx/ws-trust/200512}RequestSecurityToken> can > not be found in the schemas > Part in Message > <{http://localhost:8080/openfm/SecurityTokenService/}ISecurityTokenService_IssueToken_OutputMessage> > referenced Type > <{http://docs.oasis-open.org/ws-sx/ws-trust/200512}RequestSecurityTokenResponse> > can not be found in the schemas > > A document-literal binding in a DESCRIPTION MUST refer, in each of its > soapbind:body element(s),only to wsdl:part element(s) that have been defined > using the element attribute. > > > at > org.apache.cxf.tools.validator.internal.WSDL11Validator.isValid(WSDL11Validator.java:141) > at > org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.validate(JAXWSDefinitionBuilder.java:201) > at > org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.validate(JAXWSDefinitionBuilder.java:61) > at > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:167) > at > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:128) > at > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:271) > at > org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103) > at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113) > at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86) > at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184) > > The wsdl to the webservice i'm trying to use is the following: > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:wsap10="http://www.w3.org/2006/05/addressing/wsdl" > xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" > xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" > xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/09/policy/addressing" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" > xmlns:tns="http://localhost:8080/openfm/SecurityTokenService/" > xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" > xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" > xmlns:wsa10="http://www.w3.org/2005/08/addressing" > name="SecurityTokenService" > targetNamespace="http://localhost:8080/openfm/SecurityTokenService/"> > > > > xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> > > > > sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"> > > > > > > > > > > sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always"> > > > > > > > > > > > > > > > > > > > > > > > > xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> > > > > > > > > > xmlns:wspe="http://schemas.xmlsoap.org/ws/2004/09/policy/encoding" /> > > > > > > > > xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> > > > > > > > > > > > > > xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> > > > > > > > > > > > targetNamespace="http://localhost:8080/openfm/SecurityTokenService/Imports"> > schemaLocation="http://kicsakadam:8080/openam_s951/sts/soap11?xsd=1" > namespace="http://schemas.message.com/Message" /> > > > > > xmlns:q1="http://docs.oasis-open.org/ws-sx/ws-trust/200512" > name="rstMessage" type="q1:RequestSecurityToken" /> > > > > xmlns:q2="http://docs.oasis-open.org/ws-sx/ws-trust/200512" > name="ProcessRequestSecurityTokenResult" > type="q2:RequestSecurityTokenResponse" /> > > > > > wsap10:Action="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue" > message="tns:ISecurityTokenService_IssueToken_InputMessage" /> > wsap10:Action="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/Issue" > message="tns:ISecurityTokenService_IssueToken_OutputMessage" /> > > > > type="tns:ISecurityTokenService"> > > transport="http://schemas.xmlsoap.org/soap/http" /> > > soapAction="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue" > style="document" /> > > URI="#ISecurityTokenService_IssueToken_Input_policy" /> > > > > > URI="#ISecurityTokenService_IssueToken_Output_policy" /> > > > > > type="tns:ISecurityTokenService"> > > > transport="http://schemas.xmlsoap.org/soap/http" /> > > soapAction="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue" > style="document" /> > > URI="#ISecurityTokenService_IssueToken_Input_policy" /> > > > > URI="#ISecurityTokenService_IssueToken_Output_policy" /> > > > > > > > binding="tns:ISecurityTokenService_Binding"> > location="http://kicsakadam:8080/openam_s951/sts" /> > > binding="tns:ISecurityTokenService_BindingSoap11"> > > location="http://kicsakadam:8080/openam_s951/sts/soap11" /> > > > > > Could you help me please with a solution to my problem? If CXF does not > support some required feature, or it is a bug, could you help me by altering > the wsdl to a form, that will work with CXF? > Thank you for the help in advance! > > Tibor Kerek > -- > View this message in context: http://cxf.547215.n5.nabble.com/wsdl2java-client-generation-error-with-WS-Trust-tp3381396p3381396.html > Sent from the cxf-issues mailing list archive at Nabble.com.