axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cohan, Sean" <SCo...@goSPS.com>
Subject RE: WSDL2Java Exception When Return Type is in Another Package.
Date Wed, 24 Jul 2002 20:29:43 GMT
I have decided for other reasons to place the src files in the same
namespace, but here you go in case you still want to verify what I've
experienced.  I am using the 7/8 nightly build with tomcat 4.0.4 and jdk
1.4.0_1 on Win2K.  Thanks.
 
 

-----Original Message-----
From: butek@us.ibm.com [mailto:butek@us.ibm.com]
Sent: Wednesday, July 24, 2002 2:45 PM
To: axis-user@xml.apache.org
Subject: RE: WSDL2Java Exception When Return Type is in Another Package.


If the WSDL you showed me came, untouched, from Java2WSDL, then I agree we
have a problem. Might it be possible for you to give us your original Java
from which you created the WSDL? I'd like to try recreating the problem.

Russell Butek
butek@us.ibm.com



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


To: "'axis-user@xml.apache.org'" <axis-user@xml.apache.org>
cc: 
Subject: RE: WSDL2Java Exception When Return Type is in Another Package.




Thank you.  I failed to mention that I used Java2WSDL to gen the wsdl so
there may be a problem there.
-----Original Message-----
From: butek@us.ibm.com [ mailto:butek@us.ibm.com <mailto:butek@us.ibm.com> ]
Sent: Wednesday, July 24, 2002 1:57 PM
To: axis-user@xml.apache.org
Subject: RE: WSDL2Java Exception When Return Type is in Another Package.


I see the problem. In the schema, you've defined:

<element name="ServiceResponse" nillable="true" type="xsd:anyType"/>

In the messages, you've defined the part:

<wsdl:part name="return" type="tns2:ServiceResponse"/>

Note that the ServiceResponse is an ELEMENT. The part, however, has the
statement: type="tns2:ServiceResponse", which means it's looking for a type
named "ServiceResponse", not an element. If you change the part definition,
it works:

<wsdl:part name="return" element="tns2:ServiceResponse"/>


Russell Butek
butek@us.ibm.com

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

To: "'axis-user@xml.apache.org'" <axis-user@xml.apache.org>
cc: 
Subject: RE: WSDL2Java Exception When Return Type is in Another Package.




here it is.
-----Original Message-----
From: butek@us.ibm.com [  <mailto:butek@us.ibm.com> mailto:butek@us.ibm.com]
Sent: Wednesday, July 24, 2002 12:22 PM
To: axis-user@xml.apache.org
Subject: Re: WSDL2Java Exception When Return Type is in Another Package.


WSDL2Java supports multiple namespaces. Each namespace would get mapped to
its own package unless you use the -p option (which you have) in which case
everything goes into the package you've defined. There's probably something
wrong with the namespaces in your WSDL. Could you show it to us?

Russell Butek
butek@us.ibm.com

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

To: "'axis-user@xml.apache.org'" <axis-user@xml.apache.org>
cc: 
Subject: WSDL2Java Exception When Return Type is in Another Package.



I'm trying  to return a java class  (ServiceResponseImpl) defined in
another
package than my web service, but I   get the following exception when
running
WSDL2Java.


C:\bis-axis\snap>java  org.apache.axis.wsdl.WSDL2Java -o  c:\bis-axis\snap
-p
gov.doc.bis.ecass2k.soap.snap --server-side
--skeletonDeploy true  Ecass2k.wsdl
java.io.IOException: Type {  <http://util.cbd.gosps.com>
http://util.cbd.gosps.com}ServiceResponseImpl  is
referenced but not  defined.
at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.j
ava:461)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:377)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:364)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:350) 


	at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:244)
at   java.lang.Thread.run(Thread.java:536)



Does anyone  know if returning a class defined in another package  is
possible
with   Axis?

Thanks.






Mime
View raw message