You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2006/08/02 15:10:14 UTC
[jira] Updated: (AXIS2-963) Problems with complex xml schemas in
wsdl2java
[ http://issues.apache.org/jira/browse/AXIS2-963?page=all ]
Carsten Ziegeler updated AXIS2-963:
-----------------------------------
Attachment: authentication.wsdl
> Problems with complex xml schemas in wsdl2java
> ----------------------------------------------
>
> Key: AXIS2-963
> URL: http://issues.apache.org/jira/browse/AXIS2-963
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: wsdl
> Reporter: Carsten Ziegeler
> Attachments: authentication.wsdl
>
>
> When trying to generate a service code using wsdl2java (latest svn), I get different errors depending on the databinding used. With "-d none" I get:
> xception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : org.apache.axis2.wsdl.codegen.CodeGenerationException:
> org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name
> RequestSecurityToken with namespace http://schemas.xmlsoap.org/ws/2005/02/trust at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:235)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
> org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name RequestSecurityToken with namespace http://schemas.xmlsoap.org/ws/2005/02/trust at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:796) at
> With "-d adb" I get this exception:
> Caused by: org.apache.axis2.schema.SchemaCompilationException:
> Unsupported content Simple Content Extension ! at
> org.apache.axis2.schema.SchemaCompiler.processSimpleContent(SchemaCom
> piler.java:979)
> With "-d xmlbeans" I get the following exception:
> ...
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
> http://schemas.xmlsoap.org/ws/2004/08/addressing/:4:1571: 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(CodeGe
> nerationUtility.java:235)
> ... 8 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
Re: [jira] Updated: (AXIS2-963) Problems with complex xml schemas
in wsdl2java
Posted by Thilo Frotscher <th...@web.de>.
Ups, sorry. My fault. I thought the schema location would be
a broken link. But you're right, it is not. The WSDL seems
to be ok and complies to the WS-I Basic Profile. So I'd
say there's a problem in the code generator.
Gruesse nach Deutschland :-)
Carsten Ziegeler wrote:
> Thilo Frotscher schrieb:
>> Carsten,
>>
>> The schema location URL in your WSDL does not point to a document.
>> Perhaps that's already the problem: the code generator just can't
>> load the schema.
>>
> Hi Thilo,
>
> the schema location points to
> "http://schemas.xmlsoap.org/ws/2005/02/trust/ws-trust.xsd" which is a
> valid schema. Or do you mean something different?
>
> Thanks
> Carsten
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
Re: [jira] Updated: (AXIS2-963) Problems with complex xml schemas
in wsdl2java
Posted by Carsten Ziegeler <cz...@apache.org>.
Thilo Frotscher schrieb:
> Carsten,
>
> The schema location URL in your WSDL does not point to a document.
> Perhaps that's already the problem: the code generator just can't
> load the schema.
>
Hi Thilo,
the schema location points to
"http://schemas.xmlsoap.org/ws/2005/02/trust/ws-trust.xsd" which is a
valid schema. Or do you mean something different?
Thanks
Carsten
--
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
Re: [jira] Updated: (AXIS2-963) Problems with complex xml schemas
in wsdl2java
Posted by Thilo Frotscher <th...@web.de>.
Carsten,
The schema location URL in your WSDL does not point to a document.
Perhaps that's already the problem: the code generator just can't
load the schema.
Also, try checking the WSDL for compliance with Basic Profile
using WS-I's analyzer tool.
Cheers,
Thilo
Carsten Ziegeler (JIRA) wrote:
> [ http://issues.apache.org/jira/browse/AXIS2-963?page=all ]
>
> Carsten Ziegeler updated AXIS2-963:
> -----------------------------------
>
> Attachment: authentication.wsdl
>
>> Problems with complex xml schemas in wsdl2java
>> ----------------------------------------------
>>
>> Key: AXIS2-963
>> URL: http://issues.apache.org/jira/browse/AXIS2-963
>> Project: Apache Axis 2.0 (Axis2)
>> Issue Type: Bug
>> Components: wsdl
>> Reporter: Carsten Ziegeler
>> Attachments: authentication.wsdl
>>
>>
>> When trying to generate a service code using wsdl2java (latest svn), I get different errors depending on the databinding used. With "-d none" I get:
>> xception in thread "main"
>> org.apache.axis2.wsdl.codegen.CodeGenerationException
>> : org.apache.axis2.wsdl.codegen.CodeGenerationException:
>> org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name
>> RequestSecurityToken with namespace http://schemas.xmlsoap.org/ws/2005/02/trust at
>> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:235)
>> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
>> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
>> org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name RequestSecurityToken with namespace http://schemas.xmlsoap.org/ws/2005/02/trust at
>> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:796) at
>> With "-d adb" I get this exception:
>> Caused by: org.apache.axis2.schema.SchemaCompilationException:
>> Unsupported content Simple Content Extension ! at
>> org.apache.axis2.schema.SchemaCompiler.processSimpleContent(SchemaCom
>> piler.java:979)
>> With "-d xmlbeans" I get the following exception:
>> ...
>> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
>> http://schemas.xmlsoap.org/ws/2004/08/addressing/:4:1571: 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(CodeGe
>> nerationUtility.java:235)
>> ... 8 more
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org