Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

WSDL -> Java problem

843834Oct 13 2003 — edited Oct 22 2003
Hi all,

I have been trying to generate a web service from a WSDL file (which, in my opinion, is the best way to create a web service when you don't already have a program). But there's some problems I run across which I can't seem to find the solution for.

My traject should be: WSDL -> Java Files -> Compiling -> Deployment, where my primary WSDL should not be changed (or just endpoint address)

I use JWSDP 1.2.

1)
When I try to replicate the helloservice, static stub example with my own WSDL file, I receive the following error:
---------------------------
wscompile.bat -gen:server -d build -classpath build config-wsdl.xml
error: generator error: no encoder for type "{http://www.w3.org/2001/XMLSchema}date" and Java type "java.util.Calendar"
---------------------------
can anyone explain what this is?


2)
I tried -import and -keep instead of -gen:server, to get my Java files. This worked and created a lot of java files and even an implementation file, where I could create my webservice. So far it looked good, but after compiling and deploying, the service does not work. The problem is that the generated classes all have changed names (first letter lowercase, instead of uppercase), resulting in a non-working application.

---------------------------
SEVERE: Exception sending context initialized event to listener instance of class com.sun.xml.rpc.server.http.JAXRPCContextListener
java.lang.NoClassDefFoundError: MyService/MyProtocol_myOperation_ResponseStruct
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:217)
at com.sun.xml.rpc.server.http.JAXRPCRuntimeInfoParser.loadClass(JAXRPCRuntimeInfoParser.java:150)
----------------------------

Where myOperation in my WSDL file is called 'MyOperation'

So now I'm stuck, can anybody help me or give me a step-by-step how to create a service


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 19 2003
Added on Oct 13 2003
11 comments
681 views