users@jax-rpc.java.net

Re: error: Duplicate type name with wscompile

From: Steve W. Jackson <stevewjackson_at_charter.net>
Date: Wed, 12 Jan 2005 09:19:49 -0600

On Jan 11, 2005, at 6:00 PM, 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.

My first use of JWSDP was with 1.3, and later with 1.4. So I've never
seen the 1.2 tutorial instructions to generate the model.gz. Instead,
it was created and included in my WAR file when deploying my service.
When I created a static stub client against my deployed WSDL file, no
model.gz file is created or necessary.

= Steve =
Steve W. Jackson
Montgomery, Alabama


---------------------------------------------------------------------
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