users@jax-rpc.java.net

Re: error: Duplicate type name with wscompile

From: Vishwajit Pantvaidya <pantvaidya_at_hotmail.com>
Date: Sat, 15 Jan 2005 23:11:24 -0800

Hello Jitendra and Steve,

Thanks for your replies.

Jitendra - I did as you said (except that I used the -gen:both option
instead of the -import option while generating the model file) and was able
to get a basic webservice working.

- Vishwajit.



>From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
>Reply-To: users_at_jax-rpc.dev.java.net
>To: users_at_jax-rpc.dev.java.net
>Subject: Re: error: Duplicate type name with wscompile
>Date: Wed, 12 Jan 2005 18:20:24 -0800
>
>Since you seem to be starting from WSDL. Do the following:
>
>1. wscompile -import -model model.gz config.xml
> This generates portable artifacts, and model
>2. Create a raw war file with portable artifacts, WSDL, model,
>jaxrpc-ri.xml, your implementation classes
>3. Do "wsdeploy" to convert raw war to cooked war file.
>
>For more info,
>
>https://jax-rpc.dev.java.net/whitepaper/1.1/index-part1.html
>https://jax-rpc.dev.java.net/whitepaper/1.1/index-part2.html
>
>Jitu
>
>Vishwajit Pantvaidya wrote:
>>Hello,
>>
>>I am trying to deploy and consume a webservice using JWSDP1.5. I have been
>>able to generate the classes from the WSDL. But looking at the 1.2
>>tutorial, it seemed that the next step is to generate the model.gz file
>>using the generated SEI. So I issued the command
>>
>>wscompile -define -model model.gz .\config-interface.xml
>>
>>but got the error
>>
>>error: Duplicate type name "{urn:Foo}ArrayOfBAPIPAREX" for Java type
>>"websvc.BAPIPAREX[]" found
>>
>>- The above wscompile command uses the classes generated by wscompile
>>itself earlier - so why does it give this error?
>>- Later when I referred to the newer docs, it seems that model.gz
>>generation may not be required - I just need to create jaxrpc-ri.xml file,
>>bundle it and other files into a war file and then use wsdeploy.
>>So do I not need to create model.gz?
>>- Even in that case, what is the reason for the errors I am getting?
>>
>>
>>Thanks,
>>
>>Vishwajit.
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net