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 an...@kambrium.net on 2003/03/25 12:53:43 UTC
Newbie question about WSDL2JAVA
Hi,
I try to use CASTOR for object ser/deserialization with AXIS. While searching the mailing list I found a link to the AXIS cvs, which has a few classes for this job.
I have trouble getting WSDL2JAVA generate my stub classes. I always get the following error:
http://localhost:9080/axis/services/LoginManager?wsdl
java.io.IOException: Type {urn:LoginResponse}LOGIN is referenced but not defined.
at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefin.......
I thought that wsdl2java will just refer to my already (with castor) generated custom java classes?
Any thoughts on that ?
cheers,
Andre
____________________________________________________
Kambrium.net Technologies, http://www.kambrium.net
Re: Newbie question about WSDL2JAVA
Posted by Nicholas <nw...@yahoo.com>.
We have totally given up using Java2WSDL. It just
seems so problem ridden with completely inexplicable
error messages. Rather, we just deploy a WSDD against
the Axis server and then do a GET on the appropriate
URL to get the WSDL there.
//Nicholas
--- Daniel Eschle <d....@web.de> wrote:
> Hi,
>
> I had also problems when using WSDL2Java with a
> Java2WSDL generated wsdl
> file. I got the following exception:
>
> java.io.IOException: Element
> {http://schemas.xmlsoap.org/wsdl/}in0 is
> referenced but not defined.
>
> I think there is a bug in Java2WSDL which produces a
> faulty wsdl file when
> generating document style messages (-y DOCUMENT).
>
> In the wsdl typ definition there is an empty
> targetNamespace. And in the
> part element of the message definition there is an
> unqualified element
> attribute.When inserting the correct targetNamespace
> in the Schema elements
> and fixing the corresponding element attribut
> everything worked.
>
> Daniel
>
>
> > Hi,
> >
> > I try to use CASTOR for object ser/deserialization
> with AXIS. While
> > searching the mailing list I found a link to the
> AXIS cvs, which has a few
> > classes for this job. I have trouble getting
> WSDL2JAVA generate my stub
> > classes. I always get the following error:
> >
> >
>
http://localhost:9080/axis/services/LoginManager?wsdl
> > java.io.IOException: Type {urn:LoginResponse}LOGIN
> is referenced but not
> > defined.
> > at
> >
>
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefin.......
> >
> > I thought that wsdl2java will just refer to my
> already (with castor)
> > generated custom java classes?
> >
> > Any thoughts on that ?
> >
> > cheers,
> >
> > Andre
> >
> >
> ____________________________________________________
> > Kambrium.net Technologies, http://www.kambrium.net
>
>
=====
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
nwhitehe@yahoo.com
Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/
Re: Newbie question about WSDL2JAVA
Posted by Daniel Eschle <d....@web.de>.
Hi,
I had also problems when using WSDL2Java with a Java2WSDL generated wsdl
file. I got the following exception:
java.io.IOException: Element {http://schemas.xmlsoap.org/wsdl/}in0 is
referenced but not defined.
I think there is a bug in Java2WSDL which produces a faulty wsdl file when
generating document style messages (-y DOCUMENT).
In the wsdl typ definition there is an empty targetNamespace. And in the
part element of the message definition there is an unqualified element
attribute.When inserting the correct targetNamespace in the Schema elements
and fixing the corresponding element attribut everything worked.
Daniel
> Hi,
>
> I try to use CASTOR for object ser/deserialization with AXIS. While
> searching the mailing list I found a link to the AXIS cvs, which has a few
> classes for this job. I have trouble getting WSDL2JAVA generate my stub
> classes. I always get the following error:
>
> http://localhost:9080/axis/services/LoginManager?wsdl
> java.io.IOException: Type {urn:LoginResponse}LOGIN is referenced but not
> defined.
> at
>
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefin.......
>
> I thought that wsdl2java will just refer to my already (with castor)
> generated custom java classes?
>
> Any thoughts on that ?
>
> cheers,
>
> Andre
>
> ____________________________________________________
> Kambrium.net Technologies, http://www.kambrium.net