This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 68466 - Error while generating WS client
Summary: Error while generating WS client
Status: VERIFIED WONTFIX
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-10 13:47 UTC by mbachorik
Modified: 2006-06-03 17:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
copy of messages.log (36.61 KB, text/plain)
2005-11-10 13:48 UTC, mbachorik
Details
wsdl with referenced schemas, that caused the error (9.36 KB, application/x-compressed)
2005-11-14 14:55 UTC, mbachorik
Details
Errors from wscompile (16.20 KB, text/xml)
2005-11-14 17:46 UTC, Milan Kuchtiak
Details
Corrected WSDL and XML Schemas (9.55 KB, application/x-compressed)
2005-11-15 15:13 UTC, Milan Kuchtiak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mbachorik 2005-11-10 13:47:37 UTC
I tried to generate WS client using NB5beta - WSDL file used some referenced
schemas, so I wanted to know if NB5beta can handle this. The generation failed,
see details in attached file.
Comment 1 mbachorik 2005-11-10 13:48:57 UTC
Created attachment 26827 [details]
copy of messages.log
Comment 2 Lukas Jungmann 2005-11-10 16:05:17 UTC
Could you also provide link to wsdl you used or at least attach wsdl to this
report, please?
Comment 3 mbachorik 2005-11-14 14:55:58 UTC
Created attachment 26919 [details]
wsdl with referenced schemas, that caused the error
Comment 4 Milan Kuchtiak 2005-11-14 17:34:25 UTC
Use xsd:schema import instead of wsdl:import :

<wsdl:types>
    <xsd:schema>
        <xsd:import schemaLocation="cmbmessages_modified.xsd"         
namespace="http://www.ibm.com/xmlns/db2/cm/beans/1.0/schema"/>
    </xsd:schema>
</wsdl:types>

I don't know if wsdl:import is correct for importing schema files.
Comment 5 Milan Kuchtiak 2005-11-14 17:45:50 UTC
When I changed the import part I got the error from wscompile.
(See the attached errors)
Are the namespaces correctly specified ?
Comment 6 Milan Kuchtiak 2005-11-14 17:46:32 UTC
Created attachment 26933 [details]
Errors from wscompile
Comment 7 Milan Kuchtiak 2005-11-15 14:12:01 UTC
I am marking the issue as WONFIX as we won't support importing schemas by
<wsdl:import ...> that is not WSI-BP compliant - see the error message from
wscompile. 
Comment 8 Milan Kuchtiak 2005-11-15 15:10:10 UTC
When I fixed errors in XML schemas I got the client.

See attached files.
Comment 9 Milan Kuchtiak 2005-11-15 15:13:48 UTC
Created attachment 26969 [details]
Corrected WSDL and XML Schemas
Comment 10 Lukas Jungmann 2006-01-16 11:07:05 UTC
v.