axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell Butek" <bu...@us.ibm.com>
Subject RE: WSDL2Java error!
Date Thu, 16 May 2002 13:00:39 GMT
Both.  JAX-RPC only defines a subset of XML->Java mappings.  AXIS has
defined a considerably larger set, but still not all of them.  So we COULD
do this one as well, IF we could come up with a reasonable mapping.

Russell Butek
butek@us.ibm.com


"Gold, Laurence (MLIM)" <Goldlar@exchange.ML.com> on 05/16/2002 07:45:34 AM

Please respond to axis-user@xml.apache.org

To:    "'axis-user@xml.apache.org'" <axis-user@xml.apache.org>
cc:
Subject:    RE: WSDL2Java error!



Russell:

Is this a jax-rpc issue design issue or code issue?

Larry

-----Original Message-----
From: Russell Butek [mailto:butek@us.ibm.com]
Sent: Thursday, May 16, 2002 8:32 AM
To: axis-user@xml.apache.org
Subject: Re: WSDL2Java error!

Cedric is right.  It is ref="s:schema" that is causing your problems.
WSDL2Java does not handle that.  WSDL2Java is based on JAX-RPC.  JAX-RPC
defines mappings from WSDL/XML to Java and it doesn't define a mapping for
s:schema.  I don't know how that should be mapped.

Russell Butek
butek@us.ibm.com


dev <devcedric@chez.com> on 05/16/2002 02:46:10 AM

Please respond to axis-user@xml.apache.org

To:    axis-user@xml.apache.org
cc:
Subject:    Re: WSDL2Java error!



Hi Sudhir,
i am a newbie to wsdl and to schema too.
But i can say you the error come from the following :
<s:element ref="s:schema" />

If you remove all the <s:element ref="s:schema" /> the wsdl2java seems to
work (i didn't deploy then test the service)

But why do you want to import the schema:
      <s:import namespace="http://www.w3.org/2001/XMLSchema" />
as it is defined in your <definitions> I don't see the raison...
Other thing, I don't see the why you need <sequence> with <s:element
ref="s:schema" /> that is <s:element
ref="http://www.w3.org/2001/XMLSchema:schema" /> ?

hope it will help




At 13:40 15/05/02 -0700, you wrote:
>I am attaching two WSDL Files. I am trying to generate the client for both
>of them.
>WSDL2Java doesnt give any error for the addresslookup.wsdl. But it gives
>that error for the cweather.wsdl. Both of them have the
>"http://www.w3.org/2001/XMLSchema" defined as the namespace. And both of
>them refer to this namespace while defining the type for example s:string.
>
>Thanks
>Sudhir
>----- Original Message -----
>From: "Shinde, Uma" <Uma.Shinde@divine.com>
>To: <axis-user@xml.apache.org>
>Sent: Wednesday, May 15, 2002 1:17 PM
>Subject: RE: WSDL2Java error!
>
>
> > I suppose you should include your WSDL file and then get opinions on
how
>to fix your problem.
> >
> > -----Original Message-----
> > From: Sudhir [mailto:sudhir@infolead.com]
> > Sent: Wed 5/15/2002 2:23 PM
> > To: axis-user@xml.apache.org
> > Cc:
> > Subject: Re: WSDL2Java error!
> >
> >
> >
> > Jim,
> > I knew the link to the schema. Probably I phrased my question wrong. I
> > wanted to know how can I define that schema to the WSDL2Java?
> > Thanks
> > Sudhir
> > ----- Original Message -----
> > From: "Stickley, Jim" <JStickley@birch.com>
> > To: <axis-user@xml.apache.org>
> > Sent: Wednesday, May 15, 2002 11:56 AM
> > Subject: RE: WSDL2Java error!
> >
> >
> > > If you do a little research, you could find it yourself, part of the
URL
> > in
> > > your error message is the following: http://www.w3.org/  Within 1
minute
> > of
> > > visiting that site I was able to find the following url:
> > >
> > > http://www.w3.org/XML/Schema
> > >
> > > You might start by looking at that.
> > >
> > > Jim Stickley
> > > Birch Telecom
> > > (816) 300-6743
> > > jstickley@birch.com
> > >
> > >
> > > -----Original Message-----
> > > From: Sudhir [mailto:sudhir@infolead.com]
> > > Sent: Wednesday, May 15, 2002 1:37 PM
> > > To: axis-user@xml.apache.org
> > > Subject: Re: WSDL2Java error!
> > >
> > > Thanks for the reply Russel. How can I define that schema? Can you
give
>me
> > a
> > > pointer to a place where I can learn about it.
> > > Thanks again
> > > sudhir
> > >
> > > ----- Original Message -----
> > > From: "Russell Butek" <butek@us.ibm.com>
> > > To: <axis-user@xml.apache.org>
> > > Sent: Wednesday, May 15, 2002 11:17 AM
> > > Subject: Re: WSDL2Java error!
> > >
> > >
> > > > AXIS doesn't support type http://www.w3.org/2001/XMLSchema:schema.
> > Since
> > > > it doesn't know about it, it assumes you've defined it.  Since, of
> > course,
> > > > you haven't defined it, you see the message that you see.
> > > >
> > > > Russell Butek
> > > > butek@us.ibm.com
> > > >
> > > >
> > > > "Sudhir" <sudhir@infolead.com> on 05/15/2002 12:49:48 PM
> > > >
> > > > Please respond to axis-user@xml.apache.org
> > > >
> > > > To:    <axis-user@xml.apache.org>
> > > > cc:
> > > > Subject:    WSDL2Java error!
> > > >
> > > >
> > > >
> > > > can any1 answer my following qn please
> > > >
> > > > hi,
> > > >  I am using axis beta2. While using the WSDL2Java to generate the
>client
> > > > side aritfacts, I am getting the following exception.
> > > > java.io.IOException: Type http://www.w3.org/2001/XMLSchema:schema
is
> > > >  referenced but not defined.
> > > >         at
org.apache.axis.wsdl.toJava.SymbolTable.checkForUndefined
> > > > (SymbolTable.java:405)
> > > >         at
org.apache.axis.wsdl.toJava.SymbolTable.add(SymbolTable.j
> > > > ava:331)
> > > >         at
org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:188
> > > > )
> > > >         at
org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:155
> > > > )
> > > >         at
org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(WSDL2Java
> > > > .java:725)
> > > >         at java.lang.Thread.run(Thread.java:484)
> > > > Of course the wsdl defines this namespace. How do I resolve this
> > problem?
> > > >
> > > > sudhir
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >
>







Mime
View raw message