Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » use complex type in service - Type is referenced but not defined
use complex type in service - Type is referenced but not defined [message #83015] Sat, 12 March 2005 07:35 Go to next message
Eclipse UserFriend
Originally posted by: nospam_baltov.gmail.com.bg

Hello,

Can anybody help me?

I am trying to build a web service returning list of objects. The interface
of service is:



public interface IcheckSrv extends Remote{

public ProtokoliList getData(String klientName, String catNumber, String
serNumber);

}



where



public class ProtokoliList {

private ProtokoliServiceVO[] list = null;

..........

public ProtokoliServiceVO[] getList(){

return list;

}

..........



When I try to generate the service the folowing error message is shown:



IWAB0399E Error in generating Java from WSDL java.io.IOException: Type
{http://service.sb.bg}ProtokoliServiceVO is referenced but not defined.



Where should I define it!?!?

I am using Eclipse 3.1 M5 and WTP 1.0 M3



thanks
Re: use complex type in service - Type is referenced but not defined [message #86934 is a reply to message #83015] Thu, 24 March 2005 18:11 Go to previous message
Chris Brealey is currently offline Chris BrealeyFriend
Messages: 104
Registered: July 2009
Senior Member
Java Web services get generated and deployed via two code generation passes.
First, the tools drive Java2WSDL to generate WSDL from your Java. Second, the
tools drive WSDL2Java to generate Java deployment code, descriptors, etc. from
your WSDL. First guess this is a problem either with the WSDL generated by
Java2WSDL, or with WSDL2Java's ability to handle the WSDL.

A quick test would be to run Apache Axis' WSDL2Java command directly on the
WSDL that should be lurking in your target project in your workspace. You're
also welcome to open a new Web Tools bug [1] against the jst.ws component. If
you do, please attach either your WSDL or you Java code.

[1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20To ols

Cheers - CB.

stef B wrote:

> Hello,
>
> Can anybody help me?
>
> I am trying to build a web service returning list of objects. The interface
> of service is:
>
> public interface IcheckSrv extends Remote{
>
> public ProtokoliList getData(String klientName, String catNumber, String
> serNumber);
>
> }
>
> where
>
> public class ProtokoliList {
>
> private ProtokoliServiceVO[] list = null;
>
> .........
>
> public ProtokoliServiceVO[] getList(){
>
> return list;
>
> }
>
> .........
>
> When I try to generate the service the folowing error message is shown:
>
> IWAB0399E Error in generating Java from WSDL java.io.IOException: Type
> {http://service.sb.bg}ProtokoliServiceVO is referenced but not defined.
>
> Where should I define it!?!?
>
> I am using Eclipse 3.1 M5 and WTP 1.0 M3
>
> thanks
Previous Topic:Cookie handling missing in WebServices Explorer
Next Topic:"java.lang.NullPointerException" when trying to edit the server used to deploy a web servi
Goto Forum:
  


Current Time: Thu Dec 26 22:58:44 GMT 2024

Powered by FUDForum. Page generated in 0.03339 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top