I found that the best way to get a problem fixed is to:

1) search the archives for prior discussion/fix/workaround
2) search bugzilla for a duplicate bug
3) submit a bugzilla for your problem including a small test case the
reproduces the problem (your WSDL, for example.)

Good luck!

alan

-----Original Message-----
From: Peter Klotz [mailto:pklotz@;iconet.wn.bawue.de]
Sent: Wednesday, October 30, 2002 1:29 PM
To: [EMAIL PROTECTED]
Subject: REPOST5 PLEASE HELP! WSDL2Java generates uncompilable code


Hi,

this is the fifth repost of a problem that I'm having since one month
without anybody ever replying to my mail.

I mean I have a, to my best knowledge, valid WSDL file that others
obviously use but WSDL2Java from the 1.0 Axis release does not work for
it. This is not only a problem for me but for everybody that has a
document-style WSDL file and I think it should be of interest to the
Axis community to at least provide some tips!

So please, please, someone that has done something like this or knows of
a well-known problem please have a look at the WSDL file and tell me
what's wrong with either the WSDL file or Axis.


Here comes the problem description:

The attached WSDL file (OMI.wsdl) is document-oriented and has messages
for the call and receive XML documents with names like
"getNotifications" etc. I hope that doesn't disturb Axis.
Now what I see is that wsdl2java never generates a class for such a
message-type like "getNotifications". That is fine as it generates in
the OMIPortType a method call getNotifications(). But for some reason
wsdl2java does not generate a class "GetNotifications" although it
creates a reference to that parameter class in OMIPortType?
Is it because the message type and a type used as argument have the same
name?

Second there is type ObjectName that is used everywhere in the WSDL and
wsdl2java generates plenty of references to this class but for unknown
reason it does not generate a class for it! Although the class for
ObjectName should look exactly the same as "DisplayName" that is generated?
But even more strange, wsdl2java generates additionally references to
ObjectName_ElemType and ObjectName_Type but these names never appear in
the WSDL file and also no classes are generated for this?

So to summarize the following classes are referenced in the generated
source code but no class is generated:

- GetNotifications
- ObjectName
- NotificationSet

And yes I am using Axis 1.0 but that behaviour was the same with b3 and rc1.


Thanks very much for any help,

Peter

Reply via email to