hi

Did you manage to solve it, I've got the same problem and could not find any
solution to it.

I just copied the WS-Trust.wsdl and added binding and service.

cheers, håkon



Kai Petersen wrote:
> 
> Hi,
> I try to make a Security-Token-Service with a Token form of WS-Security
> from OASIS.
> 
> Problem: If I make wsdl2java using xmlbeans I get the following
> stacktrace. If I convert it with adb it works, but I think something
> should be wrong, and I don't want to get problems at a later task.
> 
> 
> Versions:
> axis2 v1.4
> jdk 1.6.0_06
> 
> 
> WSDL:
> =====
> <?xml version="1.0"?>
> <wsdl:definitions 
>       xmlns="http://www.mysts.de/sts";
>       xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>       xmlns:soapbind="http://schemas.xmlsoap.org/wsdl/soap/";
> 
> xmlns:ns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
> 
> xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
>       xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing";
>       xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/09/policy";
>       xmlns:ns4="http://schemas.xmlsoap.org/ws/2005/02/trust";
>       xmlns:ns5="http://www.w3.org/2000/09/xmldsig#";
>       xmlns:ns6="http://www.w3.org/2001/XMLSchema";
>       xmlns:ns7="http://schemas.xmlsoap.org/soap/encoding/";
>       targetNamespace="http://www.mysts.de/sts";>
>       
>       <wsdl:types>
>               <xsd:schema version="1.0"
>                       xmlns="http://www.w3.org/2001/XMLSchema";
>                       xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>                       <xsd:import
>                               
> namespace="http://schemas.xmlsoap.org/ws/2005/02/trust";
>                       
> schemaLocation="http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd";
> />
>               </xsd:schema>
>       </wsdl:types>
>       
>       <wsdl:message name="RequestSecurityTokenRequest">
>               <wsdl:part name="parameters" element="ns4:RequestSecurityToken" 
> />
>       </wsdl:message>
>       <wsdl:message name="RequestSecurityTokenResponse">
>               <wsdl:part name="parameters"
>                       element="ns4:RequestSecurityTokenResponse" />
>       </wsdl:message>
>       
>       <wsdl:portType name="SecurityTokenServicePortType">
>               <wsdl:operation name="RequestSecurityToken"
>                       parameterOrder="parameters">
>                       <wsdl:documentation>
>                               Dieser Service gibt nach erfolgreicher 
> Authentifizierung
>                               ein Security Token (Security Context Token) 
> zurueck. Die
>                               Authentifizierung kann dabei entweder mit 
> Benutzername
>                               und Passwort oder mit einem VDG-Ticket erfolgen.
>                       </wsdl:documentation>
>                       <wsdl:input message="RequestSecurityTokenRequest" />
>                       <wsdl:output message="RequestSecurityTokenResponse" />
>               </wsdl:operation>
>       </wsdl:portType>
>       
>       <wsdl:binding name="STS-Binding"
>               type="SecurityTokenServicePortType">
>               <soapbind:binding style="document"
>                       transport="http://schemas.xmlsoap.org/soap/http"; />
>               <wsdl:operation name="RequestSecurityToken">
>                       <soapbind:operation 
> soapAction="http://localhost:8080/sts"; />
>                       <wsdl:input>
>                               <soapbind:body use="literal" />
>                       </wsdl:input>
>                       <wsdl:output>
>                               <soapbind:body use="literal" />
>                       </wsdl:output>
>               </wsdl:operation>
>       </wsdl:binding>
>       
>       <wsdl:service name="SecurityTokenService">
>               <wsdl:documentation>
>                       Dieser Service stellt Funktionen fuer die 
> Authentifizierung
>                       mit Benutzername und Passwort oder mit einem VDG-Ticket 
> zur
>                       Verfuegung.
>               </wsdl:documentation>
>               <wsdl:port name="UserPasswordLogin" binding="STS-Binding">
>                       <wsdl:documentation>
>                               Diese Funktion erledigt die Authentifizierung 
> mit
>                               Benutzername und Passwort.
>                       </wsdl:documentation>
>                       <soapbind:address
>                               
> location="http://host/path/services/UserPasswordLogin"; />
>               </wsdl:port>
>               <wsdl:port name="VDGTicketLogin" binding="STS-Binding">
>                       <wsdl:documentation>
>                               Diese Funktion erledigt die Authentifizierung 
> mit einem
>                               VDG-Ticket.
>                       </wsdl:documentation>
>                       <soapbind:address
>                               
> location="http://host/path/services/VDGTicketLogin"; />
>                       <!-- 
>                               <wsp:PolicyReference URI="#VDGAuthPolicy" />
>                       -->
>               </wsdl:port>
>       </wsdl:service>
>       
> </wsdl:definitions>
> 
> 
> 
> 
> 
> CON-OUT:
> ========
> wsdl2java -d xmlbeans -s -wv 1.1 -ss -uri sts.wsdl
> Using AXIS2_HOME:   D:\_bin\lib\axis2-1.4
> Using JAVA_HOME:    C:\Programme\Java\jdk1.6.0_06
> Retrieving document at 'sts.wsdl'.
> Retrieving schema at
> 'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd', relative to
> 'file:/D:/_ws-diplom/wsdl_sts/sts.wsdl'.
> Retrieving schema at 'http://schemas.xmlsoap.org/ws/2004/08/addressing/',
> relative to 'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd'.
> Retrieving schema at
> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd',
> relative to 'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd'.
> Retrieving schema at
> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd',
> relative to 'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd'.
> Retrieving schema at
> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd',
> relative to
> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'.
> Retrieving schema at
> 'http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd', relative to
> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'.
> Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to
> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'.
> Retrieving schema at
> 'http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd', relative to
> 'http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd'.
> Retrieving schema at
> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd',
> relative to 'http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd'.
> Retrieving schema at
> 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd',
> relative to 'http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd'.
> [INFO] Resolving schema with publicId
> [http://schemas.xmlsoap.org/ws/2005/02/trust] and systemId
> [http:\schemas.xmlsoap.org\ws\2005\02\trust\WS-Trust.xsd]
> [INFO] Resolving schema with publicId
> [http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd]
> and systemId
> [http:\docs.oasis-open.org\wss\2004\01\oasis-200401-wss-wssecurity-secext-1.0.xsd]
> [INFO] Resolving schema with publicId
> [http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd]
> and systemId
> [http:\docs.oasis-open.org\wss\2004\01\oasis-200401-wss-wssecurity-utility-1.0.xsd]
> [INFO] Resolving schema with publicId
> [http://schemas.xmlsoap.org/ws/2004/09/policy] and systemId
> [http:\schemas.xmlsoap.org\ws\2004\09\policy\ws-policy.xsd]
> [INFO] Resolving schema with publicId
> [http://schemas.xmlsoap.org/ws/2004/08/addressing] and systemId
> [http:\schemas.xmlsoap.org\ws\2004\08\addressing]
> [INFO] Resolving schema with publicId [http://www.w3.org/2000/09/xmldsig#]
> and systemId [http:\www.w3.org\TR\xmldsig-core\xmldsig-core-schema.xsd]
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
>         at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:126)
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
>         ... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:115)
>         ... 3 more
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
> http://schemas.xmlsoap.org/ws/2004/08/addressing/:61:1: error:
> cvc-enumeration-valid: string value 'none' is not a valid enumeration
> value for type of processContents attribute in xs:wildcard
>         at
> org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325)
>         ... 8 more
> Caused by: org.apache.xmlbeans.XmlException:
> http://schemas.xmlsoap.org/ws/2004/08/addressing/:61:1: error:
> cvc-enumeration-valid: string value 'none' is not a valid enumeration
> value for type of processContents attribute in xs:wildcard
>         at
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
>         at
> org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:189)
>         ... 8 more
> 
> 
> 
> -- 
> GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
> Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext...@gmx
> 
> -- 
> Psssst! Schon vom neuen GMX MultiMessenger gehört?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscr...@ws.apache.org
> For additional commands, e-mail: axis-user-h...@ws.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/http%3A--schemas.xmlsoap.org-ws-2004-08-addressing-%3A61%3A1%3A-error%3A-cvc-enumeration-valid-tp17104454p21625788.html
Sent from the Axis - User mailing list archive at Nabble.com.

Reply via email to