• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compilation error when the source files are in multiple folders

Padmanaban Jayabalan
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a java file which i want to host as a webservice. I have written the implementation for my interface and it interacts with some data objects. I mean, it methods return type is these dataobjects. The dataobjects are placed one level below the main files. This is the pkg struture. Now, i ran java2wsdl and then wsdl to java. These generated classes are also in the pkg where my main files are. When i'm not giving any implementation, its works fine and returns null.

But, while changing the SoapBindingImpl file, i'm unable to compile because of incompatible types. i.e, return type of the method points to the main pkg with the data object but actually the dataobject is not in that folder.

My question is:
Why the generated SoapBindingImpl file shows the wrong structure there?
While running the java2wsdl, i have mapped the main pkg only to the namespace. Should i map the dataobject pkg also the namespace? Is this the reason for the wrong location shown for the dataobject?
Even if we correct the path in the implementation file, its not compiling.

Any help would be very much appreciated.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic