Re: [axis2 v0.95] code generation exception: follow-up question

2006-03-24 Thread Michael Meire




Hi,

I've tried the suggestions you made, but they don't seem to work.

Therefore, as suggested, I filed a bug report with title "wsdl2java,
MTOM and user-defined types"
Thanks very much for all the efforts...

best,
Michael...


On 03/24/06 12:28, Anne Thomas Manes wrote:
Actually, I don't think my previous posting directly
answers Michael's question. My post indicated how to extend the
xsd:base64Binary type to indicate content type. In this case, Michael
is trying to extend a user-defined type and add an element that
contains an xsd:base64Binary type element.
  
  
Michael, you might try defining your loFileZipped element as
type="xmime:base64Binary". If that doesn't work, then I suggest you
file a bug report.
  
Anne
  
  On 3/24/06, Ajith Ranabahu <[EMAIL PROTECTED]>
wrote:
  Hi,
I was actually going to write a long explanation for this but I see
Anne has done it (quite completely I should say) some time back.
Thanks Robert for pulling it out from the archives.
in the Axis2 setting, If you use XMLBeans, it'll actually correctly

mark the OM elements for optimization. So if you've codegned for the
optimized schema you should automatically get the optimized wire
message.

Ajith


On 3/23/06, Michael Meire <
[EMAIL PROTECTED]> wrote:
>  Dear,
>
>  I guess my question is related.
>
>  The problem I'm facing is the following: I am creating a
webservice,
> starting from a WSDL file. I need file attachments, and therefore
I want to

> use MTOM.
>  I also need some kind of "inheritance" and therefore I'm creating
complex
> types that are extensions of other types. Concretely I include
something
> like the following:
>
>  
>  
>  
>  
>  
> type="xsd:base64Binary"/>
>  
>  
>  
>  

>
>
>  My experiences so far with Axis2 v0.94 are the following:
>
>
> when using wsdl2java using ADB, the abc-type is not taken into
account ==>
> no java class corresponding to this type is generated

> when using wsdl2java using xmlbeans, an abc-javaclass is generated,
> including a variable byte[] getLoFileZipped()
>  So this option seems to do the trick for me. However, in this
case, I can't
> get MTOM working. The byte array is sent as inline xml within the
SOAP

> message.
>  I have (as far as I know) followed the instructions for using
MTOM. I also
> successfully tested the MTOM sample that is included in the Axis2
> distribution.
>  I think basically my question comes down to:

>  how can I use extension-complextypes in my wsdl, and still be
able to use
> MTOM...
>
>  Any hints or suggestions on this are of course welcome...
>
>  thanks very much in advance,
>  best,
>  Michael...
>
--
Ajith Ranabahu
  
  
  


-- 
Michael Meire
Katholieke Universiteit Leuven
Dept. Computer Science
Celestijnenlaan 200A, A03.33
B-3001 Leuven, Belgium
Tel: +32 16 327660
Fax: +32 16 327996





Re: [axis2 v0.95] code generation exception: follow-up question

2006-03-24 Thread Anne Thomas Manes
Actually, I don't think my previous posting directly answers Michael's question. My post indicated how to extend the xsd:base64Binary type to indicate content type. In this case, Michael is trying to extend a user-defined type and add an element that contains an xsd:base64Binary type element.
Michael, you might try defining your loFileZipped element as type="xmime:base64Binary". If that doesn't work, then I suggest you file a bug report.AnneOn 3/24/06, 
Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
Hi,I was actually going to write a long explanation for this but I seeAnne has done it (quite completely I should say) some time back.Thanks Robert for pulling it out from the archives.in the Axis2 setting, If you use XMLBeans, it'll actually correctly
mark the OM elements for optimization. So if you've codegned for theoptimized schema you should automatically get the optimized wiremessage.AjithOn 3/23/06, Michael Meire <
[EMAIL PROTECTED]> wrote:>  Dear,>>  I guess my question is related.>>  The problem I'm facing is the following: I am creating a webservice,> starting from a WSDL file. I need file attachments, and therefore I want to
> use MTOM.>  I also need some kind of "inheritance" and therefore I'm creating complex> types that are extensions of other types. Concretely I include something> like the following:
>>  >  >  >  >  > type="xsd:base64Binary"/>>  >  >  >  
>>>  My experiences so far with Axis2 v0.94 are the following:>>> when using wsdl2java using ADB, the abc-type is not taken into account ==>> no java class corresponding to this type is generated
> when using wsdl2java using xmlbeans, an abc-javaclass is generated,> including a variable byte[] getLoFileZipped()>  So this option seems to do the trick for me. However, in this case, I can't> get MTOM working. The byte array is sent as inline xml within the SOAP
> message.>  I have (as far as I know) followed the instructions for using MTOM. I also> successfully tested the MTOM sample that is included in the Axis2> distribution.>  I think basically my question comes down to:
>  how can I use extension-complextypes in my wsdl, and still be able to use> MTOM...>>  Any hints or suggestions on this are of course welcome...>>  thanks very much in advance,
>  best,>  Michael...>--Ajith Ranabahu


Re: [axis2 v0.95] code generation exception: follow-up question

2006-03-23 Thread Ajith Ranabahu
Hi,
I was actually going to write a long explanation for this but I see
Anne has done it (quite completely I should say) some time back.
Thanks Robert for pulling it out from the archives.
in the Axis2 setting, If you use XMLBeans, it'll actually correctly
mark the OM elements for optimization. So if you've codegned for the
optimized schema you should automatically get the optimized wire
message.

Ajith


On 3/23/06, Michael Meire <[EMAIL PROTECTED]> wrote:
>  Dear,
>
>  I guess my question is related.
>
>  The problem I'm facing is the following: I am creating a webservice,
> starting from a WSDL file. I need file attachments, and therefore I want to
> use MTOM.
>  I also need some kind of "inheritance" and therefore I'm creating complex
> types that are extensions of other types. Concretely I include something
> like the following:
>
>  
>  
>  
>  
>   type="xsd:base64Binary"/>
>  
>  
>  
>  
>
>
>  My experiences so far with Axis2 v0.94 are the following:
>
>
> when using wsdl2java using ADB, the abc-type is not taken into account ==>
> no java class corresponding to this type is generated
> when using wsdl2java using xmlbeans, an abc-javaclass is generated,
> including a variable byte[] getLoFileZipped()
>  So this option seems to do the trick for me. However, in this case, I can't
> get MTOM working. The byte array is sent as inline xml within the SOAP
> message.
>  I have (as far as I know) followed the instructions for using MTOM. I also
> successfully tested the MTOM sample that is included in the Axis2
> distribution.
>  I think basically my question comes down to:
>  how can I use extension-complextypes in my wsdl, and still be able to use
> MTOM...
>
>  Any hints or suggestions on this are of course welcome...
>
>  thanks very much in advance,
>  best,
>  Michael...
>
--
Ajith Ranabahu


Re: [axis2 v0.95] code generation exception: follow-up question

2006-03-23 Thread robert lazarski
Maybe this will help - anne wrote this a while back and gives an example that uses mtom and extension base:   

http://marc.theaimsgroup.com/?l=axis-user&m=114123711724485&w=2HTH,Robert
http://www.braziloutsource.com
On 3/23/06, Michael Meire <[EMAIL PROTECTED]> wrote:



  
  


Dear,

I guess my question is related.

The problem I'm facing is the following: I am creating a webservice,
starting from a WSDL file. I need file attachments, and therefore I
want to use MTOM.
I also need some kind of "inheritance" and therefore I'm creating
complex types that are extensions of other types. Concretely I include
something like the following:

    
    
    
    
   

    
    
    
    


My experiences so far with Axis2 v0.94 are the following:

  when using wsdl2java using ADB, the abc-type is not taken into
account ==> no java class corresponding to this type is generated
  when using wsdl2java using xmlbeans, an abc-javaclass is
generated, including a variable byte[] getLoFileZipped()
So this option seems to do the trick for me. However, in this case, I
can't get MTOM working. The byte array is sent as inline xml within the
SOAP message.
I have (as far as I know) followed the instructions for using MTOM. I
also successfully tested the MTOM sample that is included in the Axis2
distribution.


I think basically my question comes
down to:
how can I use extension-complextypes
in my wsdl, and still be able to use MTOM...

Any hints or suggestions on this are of course welcome...

thanks very much in advance,
best,
Michael...





On 03/15/06 16:28, robert lazarski wrote:
You need to use xmlbeans with this schema. While adb is
the default,
its not expected to cover all the cases that xmlbeans can. Try adding
these options to your ant target: 
  


  
Using those options I was able to run wsdl2java on your wsdl using the
latest checkout. Without those I received the same error you did. 
  
HTH,
Robert
  http://www.braziloutsource.com/
  
  On 3/14/06, Diego <[EMAIL PROTECTED]
  > wrote:
  Hi
Robert,

thanks a lot for your help!

That's the ant task that I've executed:




  
 classpathref="axis2.classpath">
   

   
   
   
   
   
  



and that's the wsdl:




http://astrodas.org/ws/peer"
xmlns:tns="http://astrodas.org/ws/peer"
xmlns:tns1="http://astrodas.org/ws/model"
xmlns:tns2="
http://www.ivoa.net/xml/VOTable/v1.1"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  
   
targetNamespace="
http://astrodas.org/ws/model">
http://www.w3.org/2001/XMLSchema"
/>
http://www.ivoa.net/xml/VOTable/v1.1"
schemaLocation="http://www.ivoa.net/xml/VOTable/v1.1"
/>


 
  
type="xsd:integer" />
  
type="xsd:integer" />
  
type="xsd:string" />
  
type="xsd:boolean" />
 



 
  
type="xsd:integer" />
  
type="xsd:string" />
  
type="xsd:string" />
  
type="xsd:string" />
 



 
  
   


name="external-object" type="tns1:external-object" />

 type="xsd:string" />

name="reliability" type="xsd:float" />

 type="xsd:double" />

type="xsd:double" />
   
  
 



 
  
   
name="mapping-annotation" type="tns1:mapping-annotation" />

  
 


 
  

   
type="xsd:int" />
  
 




 
  
   
type="xsd:string" />
  
 


 

  
   
  
 


   
  

  
  
   

  
  
   
  

  
  
   

  
  
   
element="tns1:executeGlobalMappingTableQueryResponse" />

  

  
   
Stores an array of annotations in the
annotation

backend database



   
   
Executes a query on the global mapping
table of
the p2p network of annotation



message="tns:executeGlobalMappingTableQueryResponseMessage" />
   

  

  
   http://schemas.xmlsoap.org/soap/http
"
style="document" />
   



 


 

   
   



 


 

   
  

  
   


location="http://localhost:8080/axis2/services/astrodas-peer"
/>
   
  





Thanks!

Diego


robert lazarski wrote:
> Hi Diego,
>
> Post your wsdl and command line options and perhaps we can help.
>
> Robert

> http://www.braziloutsource.com/
>
> On 3/14/06, *Diego* <[EMAIL PROTECTED]

[EMAIL PROTECTED]>>
> wrote:
>
> Hi!
>
> I have to generate code using org.apache.axis2.wsdl.WSDL2Code
having in
> input a wsdl where some web service return a votable.  The
votable

> schema is 

Re: [axis2 v0.95] code generation exception: follow-up question

2006-03-23 Thread Michael Meire




Dear,

I guess my question is related.

The problem I'm facing is the following: I am creating a webservice,
starting from a WSDL file. I need file attachments, and therefore I
want to use MTOM.
I also need some kind of "inheritance" and therefore I'm creating
complex types that are extensions of other types. Concretely I include
something like the following:

    
    
    
    
   

    
    
    
    


My experiences so far with Axis2 v0.94 are the following:

  when using wsdl2java using ADB, the abc-type is not taken into
account ==> no java class corresponding to this type is generated
  when using wsdl2java using xmlbeans, an abc-javaclass is
generated, including a variable byte[] getLoFileZipped()
So this option seems to do the trick for me. However, in this case, I
can't get MTOM working. The byte array is sent as inline xml within the
SOAP message.
I have (as far as I know) followed the instructions for using MTOM. I
also successfully tested the MTOM sample that is included in the Axis2
distribution.


I think basically my question comes
down to:
how can I use extension-complextypes
in my wsdl, and still be able to use MTOM...

Any hints or suggestions on this are of course welcome...

thanks very much in advance,
best,
Michael...





On 03/15/06 16:28, robert lazarski wrote:
You need to use xmlbeans with this schema. While adb is
the default,
its not expected to cover all the cases that xmlbeans can. Try adding
these options to your ant target: 
  


  
Using those options I was able to run wsdl2java on your wsdl using the
latest checkout. Without those I received the same error you did. 
  
HTH,
Robert
  http://www.braziloutsource.com/
  
  On 3/14/06, Diego <[EMAIL PROTECTED]
  > wrote:
  Hi
Robert,

thanks a lot for your help!

That's the ant task that I've executed:




  
 classpathref="axis2.classpath">
   

   
   
   
   
   
  



and that's the wsdl:




http://astrodas.org/ws/peer"

xmlns:tns="http://astrodas.org/ws/peer"
xmlns:tns1="http://astrodas.org/ws/model"
xmlns:tns2="
http://www.ivoa.net/xml/VOTable/v1.1"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  
   
targetNamespace="
http://astrodas.org/ws/model">
http://www.w3.org/2001/XMLSchema"
/>
http://www.ivoa.net/xml/VOTable/v1.1"
schemaLocation="http://www.ivoa.net/xml/VOTable/v1.1"
/>


 
  
type="xsd:integer" />
  
type="xsd:integer" />
  
type="xsd:string" />
  
type="xsd:boolean" />
 



 
  
type="xsd:integer" />
  
type="xsd:string" />
  
type="xsd:string" />
  
type="xsd:string" />
 



 
  
   


name="external-object" type="tns1:external-object" />

 type="xsd:string" />

name="reliability" type="xsd:float" />

 type="xsd:double" />

type="xsd:double" />
   
  
 



 
  
   
name="mapping-annotation" type="tns1:mapping-annotation" />

  
 


 
  

   
type="xsd:int" />
  
 




 
  
   
type="xsd:string" />
  
 


 

  
   
  
 


   
  

  
  
   

  
  
   
  

  
  
   

  
  
   
element="tns1:executeGlobalMappingTableQueryResponse" />

  

  
   
Stores an array of annotations in the
annotation

backend database



   
   
Executes a query on the global mapping
table of
the p2p network of annotation



message="tns:executeGlobalMappingTableQueryResponseMessage" />
   

  

  
   http://schemas.xmlsoap.org/soap/http
"
style="document" />
   



 


 

   
   



 


 

   
  

  
   


location="http://localhost:8080/axis2/services/astrodas-peer"
/>
   
  





Thanks!

Diego


robert lazarski wrote:
> Hi Diego,
>
> Post your wsdl and command line options and perhaps we can help.
>
> Robert

> http://www.braziloutsource.com/
>
> On 3/14/06, *Diego* <[EMAIL PROTECTED]

[EMAIL PROTECTED]>>
> wrote:
>
> Hi!
>
> I have to generate code using org.apache.axis2.wsdl.WSDL2Code
having in
> input a wsdl where some web service return a votable.  The
votable

> schema is specified at the following address:
>
> http://www.ivoa.net/xml/VOTable/v1.1
>
> I've successfully executed wsdl2code with axis2 up to version
0.93.  Now
> I'm using axis2 v0.94 and I have also checked out and build
v0.95.  With
> both these versions I get the

Re: [axis2 v0.95] code generation exception

2006-03-15 Thread robert lazarski
You need to use xmlbeans with this schema. While adb is the default,
its not expected to cover all the cases that xmlbeans can. Try adding
these options to your ant target: 




Using those options I was able to run wsdl2java on your wsdl using the
latest checkout. Without those I received the same error you did. 

HTH,
Robert
http://www.braziloutsource.com/On 3/14/06, Diego <[EMAIL PROTECTED]
> wrote:Hi Robert,thanks a lot for your help!That's the ant task that I've executed:
   classpathref="axis2.classpath">   
                 and that's the wsdl:
http://astrodas.org/ws/peer"
xmlns:tns="http://astrodas.org/ws/peer"xmlns:tns1="http://astrodas.org/ws/model"xmlns:tns2="
http://www.ivoa.net/xml/VOTable/v1.1"xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> targetNamespace="
http://astrodas.org/ws/model">http://www.w3.org/2001/XMLSchema" />http://www.ivoa.net/xml/VOTable/v1.1"schemaLocation="http://www.ivoa.net/xml/VOTable/v1.1" />
   type="xsd:integer" />  type="xsd:integer" />  type="xsd:string" />  type="xsd:boolean" /> 
   type="xsd:integer" />
  type="xsd:string" />  type="xsd:string" />  type="xsd:string" /> 
  
name="external-object" type="tns1:external-object" /> type="xsd:string" />name="reliability" type="xsd:float" /> type="xsd:double" />type="xsd:double" />      
  name="mapping-annotation" type="tns1:mapping-annotation" />
      
   type="xsd:int" />   
  type="xsd:string" />    
    
    
     
   
   element="tns1:executeGlobalMappingTableQueryResponse" />
   Stores an array of annotations in the annotation
backend database
      Executes a query on the global mapping table ofthe p2p network of annotation
message="tns:executeGlobalMappingTableQueryResponseMessage" />   
   http://schemas.xmlsoap.org/soap/http
"style="document" />   
        
 
       
location="http://localhost:8080/axis2/services/astrodas-peer" />     
Thanks!Diegorobert lazarski wrote:> Hi Diego,>> Post your wsdl and command line options and perhaps we can help.>> Robert
> http://www.braziloutsource.com/>> On 3/14/06, *Diego* <[EMAIL PROTECTED] 
[EMAIL PROTECTED]>>> wrote:>> Hi!>> I have to generate code using org.apache.axis2.wsdl.WSDL2Code having in> input a wsdl where some web service return a votable.  The votable
> schema is specified at the following address:>> http://www.ivoa.net/xml/VOTable/v1.1>> I've successfully executed wsdl2code with axis2 up to version 
0.93.  Now> I'm using axis2 v0.94 and I have also checked out and build v0.95.  With> both these versions I get the following exception:>> org.apache.axis2.wsdl.codegen.CodeGenerationException
 :> java.lang.RuntimeException: java.lang.RuntimeException: Schema for> namespace 'http://www.ivoa.net/xml/VOTable/v1.1' already contains type> 'token
>  at> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)>  at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)>  at org.apache.tools.ant.taskdefs.Java.executeJava
(Java.java:178)>  at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)>  at> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)>  at org.apache.tools.ant.Task.perform
(Task.java:364)>  at org.apache.tools.ant.Target.execute (Target.java:341)>  at org.apache.tools.ant.Target.performTasks(Target.java:369)>  at> org.apache.tools.ant.Project.executeSortedTargets
(Project.java:1216)>  at> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets> (SingleCheckExecutor.java:37)>  at org.apache.tools.ant.Project.executeTargets(
Project.java:1068)>  at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)>  at> org.apache.tools.ant.taskdefs.CallTarget.execute (CallTarget.java:107)>  at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)>  at org.apache.tools.ant.Task.perform(Task.java:364)>  at org.apache.tools.ant.Target.execute(Target.java:341)
>  at org.apache.tools.ant.Target.performTasks(Target.java:369)>  at> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)>  at org.apache.tools.ant.Project.executeTarget
(Project.java:1185)>  at> org.apache.tools.ant.helper.DefaultExecutor.ex

Re: [axis2 v0.95] code generation exception

2006-03-14 Thread Diego

Hi Robert,

thanks a lot for your help!

That's the ant task that I've executed:



 
  
  
  
  
  
  
 



and that's the wsdl:



http://astrodas.org/ws/peer";
xmlns:tns="http://astrodas.org/ws/peer";
   xmlns:tns1="http://astrodas.org/ws/model";
   xmlns:tns2="http://www.ivoa.net/xml/VOTable/v1.1";
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

 
  targetNamespace="http://astrodas.org/ws/model";>

   http://www.w3.org/2001/XMLSchema"; />
   http://www.ivoa.net/xml/VOTable/v1.1"; 
schemaLocation="http://www.ivoa.net/xml/VOTable/v1.1"; />

   
   

 type="xsd:integer" />
 type="xsd:integer" />
 type="xsd:string" />
 type="xsd:boolean" />


   
   

 type="xsd:integer" />
 type="xsd:string" />
 type="xsd:string" />
 type="xsd:string" />


   
   

 
  
   name="external-object" type="tns1:external-object" />
   type="xsd:string" />
   name="reliability" type="xsd:float" />
   type="xsd:double" />
  type="xsd:double" />

  
 

   
   

 
  name="mapping-annotation" type="tns1:mapping-annotation" />

 

   
   

 
  type="xsd:int" />

 

   
   
   

 
  type="xsd:string" />

 

   
   

 
  
 

   
  
 

 
 
  
 
 
  
 
 
 
  
 
 
  element="tns1:executeGlobalMappingTableQueryResponse" />

 

 
  
   Stores an array of annotations in the annotation 
backend database

   
   
  
  
   Executes a query on the global mapping table of 
the p2p network of annotation

   
   message="tns:executeGlobalMappingTableQueryResponseMessage" />

  
 

 
  http://schemas.xmlsoap.org/soap/http"; 
style="document" />

  
   
   

   
   

   
  
  
   
   

   
   

   
  
 

 
  
   location="http://localhost:8080/axis2/services/astrodas-peer"; />

  
 




Thanks!

Diego


robert lazarski wrote:

Hi Diego,

Post your wsdl and command line options and perhaps we can help.

Robert
http://www.braziloutsource.com/

On 3/14/06, *Diego* <[EMAIL PROTECTED] > 
wrote:


Hi!

I have to generate code using org.apache.axis2.wsdl.WSDL2Code having in
input a wsdl where some web service return a votable.  The votable
schema is specified at the following address:

http://www.ivoa.net/xml/VOTable/v1.1

I've successfully executed wsdl2code with axis2 up to version 0.93.  Now
I'm using axis2 v0.94 and I have also checked out and build v0.95.  With
both these versions I get the following exception:

org.apache.axis2.wsdl.codegen.CodeGenerationException :
java.lang.RuntimeException: java.lang.RuntimeException: Schema for
namespace 'http://www.ivoa.net/xml/VOTable/v1.1' already contains type
'token
 at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
 at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
 at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
 at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
 at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.Target.execute (Target.java:341)
 at org.apache.tools.ant.Target.performTasks(Target.java:369)
 at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
 at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets
(SingleCheckExecutor.java:37)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
 at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
 at
org.apache.tools.ant.taskdefs.CallTarget.execute (CallTarget.java:107)
 at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.Target.execute(Target.java:341)
 at org.apache.tools.ant.Target.performTasks(Target.java:369)
 at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
 at

org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
 at org.apache.tools.ant.Main.runBuild(Main.java :668)
 at org.apache.tools.ant.Main.startAnt(Main.java:187)
 at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
 at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Thanks for any help!

Diego






Re: [axis2 v0.95] code generation exception

2006-03-14 Thread robert lazarski
Hi Diego, 


Post your wsdl and command line options and perhaps we can help.

Robert
http://www.braziloutsource.com/On 3/14/06, Diego <[EMAIL PROTECTED]
> wrote:Hi!I have to generate code using org.apache.axis2.wsdl.WSDL2Code
 having ininput a wsdl where some web service return a votable.  The votableschema is specified at the following address:http://www.ivoa.net/xml/VOTable/v1.1
I've successfully executed wsdl2code with axis2 up to version 0.93.  NowI'm using axis2 v0.94 and I have also checked out and build v0.95.  Withboth these versions I get the following exception:org.apache.axis2.wsdl.codegen.CodeGenerationException
:java.lang.RuntimeException: java.lang.RuntimeException: Schema fornamespace 'http://www.ivoa.net/xml/VOTable/v1.1' already contains type'token at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180) at org.apache.tools.ant.taskdefs.Java.run(Java.java:710) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178) at 
org.apache.tools.ant.taskdefs.Java.execute(Java.java:84) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute
(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) atorg.apache.tools.ant.helper.SingleCheckExecutor.executeTargets
(SingleCheckExecutor.java:37) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382) atorg.apache.tools.ant.taskdefs.CallTarget.execute
(CallTarget.java:107) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341)
 at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
 atorg.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.Main.runBuild(Main.java
:668) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)Thanks for any help!
Diego


[axis2 v0.95] code generation exception

2006-03-14 Thread Diego

Hi!

I have to generate code using org.apache.axis2.wsdl.WSDL2Code having in 
input a wsdl where some web service return a votable.  The votable 
schema is specified at the following address:


http://www.ivoa.net/xml/VOTable/v1.1

I've successfully executed wsdl2code with axis2 up to version 0.93.  Now 
I'm using axis2 v0.94 and I have also checked out and build v0.95.  With 
both these versions I get the following exception:


org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: java.lang.RuntimeException: Schema for 
namespace 'http://www.ivoa.net/xml/VOTable/v1.1' already contains type 
'token
at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)

at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at 
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Thanks for any help!

Diego