You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Carsten Ziegeler <cz...@apache.org> on 2006/07/31 12:44:00 UTC

[Axis2] Problems with wsdl2java

Hi,

I'm trying to generate a java service using wsdl2java from latest axis2
svn, but I'm getting always the following exception.

As far as I understand all this, the element RequestSecurityToken has a
type. I tried to generate client code with axis 1.3 and that worked though.

Any help appreciated.

Thanks
Carsten

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.d
atabinding.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(CodeGener
ationEngine.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.axi
s2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the
name Reque
stSecurityToken with namespace http://schemas.xmlsoap.org/ws/2005/02/trust
        at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:796)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:217)
        ... 2 more
Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No
type was
 mapped to the name RequestSecurityToken with namespace
http://schemas.xmlsoap.o
rg/ws/2005/02/trust
        at
org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingNa
me(TypeMappingAdapter.java:73)
        at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:1855)
        at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:1713)
        at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1454)
        at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.createDOMDocumentForSkeletonInterface(AxisServiceBasedMultiLanguageEmitter
.java:1384)


-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Re: [Axis2] Problems with wsdl2java

Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi all,
I've a feeling that this could be a fault in the XMLSchema
serialization mechanism since the . But I've to test this before
making a concrete claim

Ajith

On 8/1/06, Anne Thomas Manes <at...@gmail.com> wrote:
> Hmm....
>
> But I just filtered through both the WS-Trust and WS-Addressing
> schemas, and neither includes a value of "none" in any processContent
> attribute.
>
> I wouldn't expect ADB to handle these schemas, but I do expect
> XMLBeans to do so. This looks like a bug in XMLBeans.
>
> Anne
>
> On 7/31/06, Martin Gainty <mg...@hotmail.com> wrote:
> > Carsten-
> >
> > http://www.filigris.com/products/docflex_xml/xsddoc/examples/html/XMLSchema/schemas/XMLSchema_xsd/complexTypes/wildcard.html
> >
> > xsd:wildcard
> > valid values for attribute processContents are either "skip", "lax",
> > "strict"  ONLY
> > "none" is not a valid in this context
> >
> > Viel Gluck,
> > Martin Gainty
> >
> > ______________________________________________
> > Disclaimer and confidentiality note
> > Everything in this e-mail and any attachments relates to the official
> > business of Sender. This transmission is of a confidential nature and Sender
> > does not endorse distribution to any party other than intended recipient.
> > Sender does not necessarily endorse content contained within this
> > transmission.
> >
> >
> >
> >
> >
> >
> > >From: Carsten Ziegeler <cz...@apache.org>
> > >Reply-To: axis-user@ws.apache.org
> > >To: axis-user@ws.apache.org
> > >Subject: Re: [Axis2] Problems with wsdl2java
> > >Date: Mon, 31 Jul 2006 13:34:47 +0200
> > >MIME-Version: 1.0
> > >Received: from mail.apache.org ([209.237.227.199]) by
> > >bay0-mc4-f7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Mon, 31
> > >Jul 2006 04:33:58 -0700
> > >Received: (qmail 40002 invoked by uid 500); 31 Jul 2006 11:33:49 -0000
> > >Received: (qmail 39990 invoked by uid 99); 31 Jul 2006 11:33:49 -0000
> > >Received: from [209.237.227.194] (HELO [127.0.0.1]) (209.237.227.194)    by
> > >apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 04:33:49 -0700
> > >X-Message-Info: LsUYwwHHNt1tVplJvUOmFk/UVEnmHIctKTkyJo5uTFU=
> > >Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm
> > >Precedence: bulk
> > >list-help: <ma...@ws.apache.org>
> > >list-unsubscribe: <ma...@ws.apache.org>
> > >List-Post: <ma...@ws.apache.org>
> > >List-Id: <axis-user.ws.apache.org>
> > >Delivered-To: mailing list axis-user@ws.apache.org
> > >X-ASF-Spam-Status: No, hits=-0.0 required=10.0tests=SPF_HELO_PASS,SPF_PASS
> > >X-Spam-Check-By: apache.org
> > >User-Agent: Thunderbird 1.5.0.5 (Windows/20060719)
> > >References: <44...@apache.org>
> > ><f4...@mail.gmail.com>
> > >X-Enigmail-Version: 0.94.0.0
> > >X-Virus-Checked: Checked by ClamAV on apache.org
> > >Return-Path: axis-user-return-48421-mgainty=hotmail.com@ws.apache.org
> > >X-OriginalArrivalTime: 31 Jul 2006 11:33:58.0192 (UTC)
> > >FILETIME=[365E6300:01C6B495]
> > >
> > >Ajith Ranabahu schrieb:
> > > > Hi,
> > > > Have you tried with -d xmlbeans ?
> > > >
> > >I tried it with "-d none".
> > >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
> > >
> > >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-user-unsubscribe@ws.apache.org
> > >For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Ajith Ranabahu

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Problems with wsdl2java

Posted by Carsten Ziegeler <cz...@apache.org>.
Anne Thomas Manes wrote:
> Hmm....
> 
> But I just filtered through both the WS-Trust and WS-Addressing
> schemas, and neither includes a value of "none" in any processContent
> attribute.
> 
> I wouldn't expect ADB to handle these schemas, but I do expect
> XMLBeans to do so. This looks like a bug in XMLBeans.
> 
I think there might be more than this :) Even with "-d none" it's
not possible to generate java code and I get the exception I posted
first.

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-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Problems with wsdl2java

Posted by Martin Gainty <mg...@hotmail.com>.
yes-

Martin--


>
>Hmm....
>
>But I just filtered through both the WS-Trust and WS-Addressing
>schemas, and neither includes a value of "none" in any processContent
>attribute.
>
>I wouldn't expect ADB to handle these schemas, but I do expect
>XMLBeans to do so. This looks like a bug in XMLBeans.
>
>Anne
>
>On 7/31/06, Martin Gainty <mg...@hotmail.com> wrote:
>>Carsten-
>>
>>http://www.filigris.com/products/docflex_xml/xsddoc/examples/html/XMLSchema/schemas/XMLSchema_xsd/complexTypes/wildcard.html
>>
>>xsd:wildcard
>>valid values for attribute processContents are either "skip", "lax",
>>"strict"  ONLY
>>"none" is not a valid in this context
>>
>>Viel Gluck,
>>Martin Gainty
>>
>>______________________________________________
>>Disclaimer and confidentiality note
>>Everything in this e-mail and any attachments relates to the official
>>business of Sender. This transmission is of a confidential nature and 
>>Sender
>>does not endorse distribution to any party other than intended recipient.
>>Sender does not necessarily endorse content contained within this
>>transmission.
>>
>>
>>
>>
>>
>>
>> >From: Carsten Ziegeler <cz...@apache.org>
>> >Reply-To: axis-user@ws.apache.org
>> >To: axis-user@ws.apache.org
>> >Subject: Re: [Axis2] Problems with wsdl2java
>> >Date: Mon, 31 Jul 2006 13:34:47 +0200
>> >MIME-Version: 1.0
>> >Received: from mail.apache.org ([209.237.227.199]) by
>> >bay0-mc4-f7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Mon, 
>>31
>> >Jul 2006 04:33:58 -0700
>> >Received: (qmail 40002 invoked by uid 500); 31 Jul 2006 11:33:49 -0000
>> >Received: (qmail 39990 invoked by uid 99); 31 Jul 2006 11:33:49 -0000
>> >Received: from [209.237.227.194] (HELO [127.0.0.1]) (209.237.227.194)    
>>by
>> >apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 04:33:49 -0700
>> >X-Message-Info: LsUYwwHHNt1tVplJvUOmFk/UVEnmHIctKTkyJo5uTFU=
>> >Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm
>> >Precedence: bulk
>> >list-help: <ma...@ws.apache.org>
>> >list-unsubscribe: <ma...@ws.apache.org>
>> >List-Post: <ma...@ws.apache.org>
>> >List-Id: <axis-user.ws.apache.org>
>> >Delivered-To: mailing list axis-user@ws.apache.org
>> >X-ASF-Spam-Status: No, hits=-0.0 
>>required=10.0tests=SPF_HELO_PASS,SPF_PASS
>> >X-Spam-Check-By: apache.org
>> >User-Agent: Thunderbird 1.5.0.5 (Windows/20060719)
>> >References: <44...@apache.org>
>> ><f4...@mail.gmail.com>
>> >X-Enigmail-Version: 0.94.0.0
>> >X-Virus-Checked: Checked by ClamAV on apache.org
>> >Return-Path: axis-user-return-48421-mgainty=hotmail.com@ws.apache.org
>> >X-OriginalArrivalTime: 31 Jul 2006 11:33:58.0192 (UTC)
>> >FILETIME=[365E6300:01C6B495]
>> >
>> >Ajith Ranabahu schrieb:
>> > > Hi,
>> > > Have you tried with -d xmlbeans ?
>> > >
>> >I tried it with "-d none".
>> >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
>> >
>> >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-user-unsubscribe@ws.apache.org
>> >For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Problems with wsdl2java

Posted by Anne Thomas Manes <at...@gmail.com>.
Hmm....

But I just filtered through both the WS-Trust and WS-Addressing
schemas, and neither includes a value of "none" in any processContent
attribute.

I wouldn't expect ADB to handle these schemas, but I do expect
XMLBeans to do so. This looks like a bug in XMLBeans.

Anne

On 7/31/06, Martin Gainty <mg...@hotmail.com> wrote:
> Carsten-
>
> http://www.filigris.com/products/docflex_xml/xsddoc/examples/html/XMLSchema/schemas/XMLSchema_xsd/complexTypes/wildcard.html
>
> xsd:wildcard
> valid values for attribute processContents are either "skip", "lax",
> "strict"  ONLY
> "none" is not a valid in this context
>
> Viel Gluck,
> Martin Gainty
>
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and Sender
> does not endorse distribution to any party other than intended recipient.
> Sender does not necessarily endorse content contained within this
> transmission.
>
>
>
>
>
>
> >From: Carsten Ziegeler <cz...@apache.org>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: [Axis2] Problems with wsdl2java
> >Date: Mon, 31 Jul 2006 13:34:47 +0200
> >MIME-Version: 1.0
> >Received: from mail.apache.org ([209.237.227.199]) by
> >bay0-mc4-f7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Mon, 31
> >Jul 2006 04:33:58 -0700
> >Received: (qmail 40002 invoked by uid 500); 31 Jul 2006 11:33:49 -0000
> >Received: (qmail 39990 invoked by uid 99); 31 Jul 2006 11:33:49 -0000
> >Received: from [209.237.227.194] (HELO [127.0.0.1]) (209.237.227.194)    by
> >apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 04:33:49 -0700
> >X-Message-Info: LsUYwwHHNt1tVplJvUOmFk/UVEnmHIctKTkyJo5uTFU=
> >Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm
> >Precedence: bulk
> >list-help: <ma...@ws.apache.org>
> >list-unsubscribe: <ma...@ws.apache.org>
> >List-Post: <ma...@ws.apache.org>
> >List-Id: <axis-user.ws.apache.org>
> >Delivered-To: mailing list axis-user@ws.apache.org
> >X-ASF-Spam-Status: No, hits=-0.0 required=10.0tests=SPF_HELO_PASS,SPF_PASS
> >X-Spam-Check-By: apache.org
> >User-Agent: Thunderbird 1.5.0.5 (Windows/20060719)
> >References: <44...@apache.org>
> ><f4...@mail.gmail.com>
> >X-Enigmail-Version: 0.94.0.0
> >X-Virus-Checked: Checked by ClamAV on apache.org
> >Return-Path: axis-user-return-48421-mgainty=hotmail.com@ws.apache.org
> >X-OriginalArrivalTime: 31 Jul 2006 11:33:58.0192 (UTC)
> >FILETIME=[365E6300:01C6B495]
> >
> >Ajith Ranabahu schrieb:
> > > Hi,
> > > Have you tried with -d xmlbeans ?
> > >
> >I tried it with "-d none".
> >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
> >
> >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-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Problems with wsdl2java

Posted by Martin Gainty <mg...@hotmail.com>.
Carsten-

http://www.filigris.com/products/docflex_xml/xsddoc/examples/html/XMLSchema/schemas/XMLSchema_xsd/complexTypes/wildcard.html

xsd:wildcard
valid values for attribute processContents are either "skip", "lax", 
"strict"  ONLY
"none" is not a valid in this context

Viel Gluck,
Martin Gainty

______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.






>From: Carsten Ziegeler <cz...@apache.org>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: [Axis2] Problems with wsdl2java
>Date: Mon, 31 Jul 2006 13:34:47 +0200
>MIME-Version: 1.0
>Received: from mail.apache.org ([209.237.227.199]) by 
>bay0-mc4-f7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Mon, 31 
>Jul 2006 04:33:58 -0700
>Received: (qmail 40002 invoked by uid 500); 31 Jul 2006 11:33:49 -0000
>Received: (qmail 39990 invoked by uid 99); 31 Jul 2006 11:33:49 -0000
>Received: from [209.237.227.194] (HELO [127.0.0.1]) (209.237.227.194)    by 
>apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 04:33:49 -0700
>X-Message-Info: LsUYwwHHNt1tVplJvUOmFk/UVEnmHIctKTkyJo5uTFU=
>Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm
>Precedence: bulk
>list-help: <ma...@ws.apache.org>
>list-unsubscribe: <ma...@ws.apache.org>
>List-Post: <ma...@ws.apache.org>
>List-Id: <axis-user.ws.apache.org>
>Delivered-To: mailing list axis-user@ws.apache.org
>X-ASF-Spam-Status: No, hits=-0.0 required=10.0tests=SPF_HELO_PASS,SPF_PASS
>X-Spam-Check-By: apache.org
>User-Agent: Thunderbird 1.5.0.5 (Windows/20060719)
>References: <44...@apache.org> 
><f4...@mail.gmail.com>
>X-Enigmail-Version: 0.94.0.0
>X-Virus-Checked: Checked by ClamAV on apache.org
>Return-Path: axis-user-return-48421-mgainty=hotmail.com@ws.apache.org
>X-OriginalArrivalTime: 31 Jul 2006 11:33:58.0192 (UTC) 
>FILETIME=[365E6300:01C6B495]
>
>Ajith Ranabahu schrieb:
> > Hi,
> > Have you tried with -d xmlbeans ?
> >
>I tried it with "-d none".
>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
>
>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-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Problems with wsdl2java

Posted by Carsten Ziegeler <cz...@apache.org>.
Ajith Ranabahu schrieb:
> Hi,
> Have you tried with -d xmlbeans ?
> 
I tried it with "-d none".
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

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-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] Problems with wsdl2java

Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
Have you tried with -d xmlbeans ?

Ajith

On 7/31/06, Carsten Ziegeler <cz...@apache.org> wrote:
> Hi,
>
> I'm trying to generate a java service using wsdl2java from latest axis2
> svn, but I'm getting always the following exception.
>
> As far as I understand all this, the element RequestSecurityToken has a
> type. I tried to generate client code with axis 1.3 and that worked though.
>
> Any help appreciated.
>
> Thanks
> Carsten
>
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : org.apache.axis2.wsdl.codegen.CodeGenerationException:
> org.apache.axis2.wsdl.d
> atabinding.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(CodeGener
> ationEngine.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.axi
> s2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the
> name Reque
> stSecurityToken with namespace http://schemas.xmlsoap.org/ws/2005/02/trust
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
> itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:796)
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:217)
>         ... 2 more
> Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No
> type was
>  mapped to the name RequestSecurityToken with namespace
> http://schemas.xmlsoap.o
> rg/ws/2005/02/trust
>         at
> org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingNa
> me(TypeMappingAdapter.java:73)
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
> itter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:1855)
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
> itter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:1713)
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
> itter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1454)
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
> itter.createDOMDocumentForSkeletonInterface(AxisServiceBasedMultiLanguageEmitter
> .java:1384)
>
>
> --
> 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-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>


-- 
Ajith Ranabahu

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org