-----Original Message-----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.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 2:45 PM
To: [EMAIL PROTECTED]
Subject: RE: WSDL2Java Exception When Return Type is in Another Package.
Russell Butek
[EMAIL PROTECTED]
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 1:57 PM
To: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: RE: WSDL2Java Exception When Return Type is in Another Package.
here it is.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 12:22 PM
To: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
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}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.
src.zip
Description: Binary data