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 103341 - Can't create Web Service from WSDL
Summary: Can't create Web Service from WSDL
Status: VERIFIED INVALID
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All Solaris
: P2 blocker (vote)
Assignee: Roderico Cruz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-04 18:35 UTC by Martin Grebac
Modified: 2009-11-09 06:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
WSDL (2.89 KB, text/xml)
2007-05-04 18:36 UTC, Martin Grebac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Grebac 2007-05-04 18:35:18 UTC
Cannot create WS from attached WSDL. Not sure where is the problem, the WSDL
seems right.
Comment 1 Martin Grebac 2007-05-04 18:36:08 UTC
Created attachment 42145 [details]
WSDL
Comment 2 Martin Grebac 2007-05-04 18:37:23 UTC
I tried 5.5.1 and 6.0, on JDK1.5. The wizard tells me there's no service in the
WSDL.
Comment 3 Lukas Jungmann 2007-05-09 02:34:34 UTC
That's because JAX-WS itself cannot find any usable service nor port in this wsdl:

lukas@pomeray:~/testing$ /space/java/jaxws-ri/bin/wsimport.sh -version -Xendorsed
JAX-WS RI 2.1.1-04/12/2007 02:26 PM(vivekp)-RC1

lukas@pomeray:~/testing$ /space/java/jaxws-ri/bin/wsimport.sh -d xxx -verbose
-Xendorsed PolicyService.wsdl 
parsing WSDL...


[ERROR] Invalid wsdl:operation "Normalize": its a document-literal operation, 
message part must refer to a schema element declaration
  line 24 of file:/home/lukas/testing/PolicyService.wsdl


lukas@pomeray:~/testing$ /space/java/jaxws-ri/bin/wsimport.sh -d xxx -verbose
-Xendorsed -extension PolicyService.wsdl 
parsing WSDL...


[WARNING] ignoring operation "Normalize": message part does not refer to a
schema element declaration
  line 24 of file:/home/lukas/testing/PolicyService.wsdl

[WARNING] ignoring operation "Intersect": message part does not refer to a
schema element declaration
  line 28 of file:/home/lukas/testing/PolicyService.wsdl

[WARNING] ignoring operation "Merge": message part does not refer to a schema
element declaration
  line 32 of file:/home/lukas/testing/PolicyService.wsdl

[WARNING] Port "PolicyPort" does not contain any usable operations
  line 71 of file:/home/lukas/testing/PolicyService.wsdl

[WARNING] Service "PolicyService" does not contain any usable ports. try running
wsimport with -extension switch.
  line 70 of file:/home/lukas/testing/PolicyService.wsdl

generating code...
com/example/ws/_2004/_09/policy/Any.java
com/example/ws/_2004/_09/policy/ObjectFactory.java
com/example/ws/_2004/_09/policy/package-info.java
lukas@pomeray:~/testing$ 
Comment 4 m_potociar 2007-05-10 14:06:40 UTC
Filed new issue against JAX-WS RI:

https://jax-ws.dev.java.net/issues/show_bug.cgi?id=319
Comment 5 Milan Kuchtiak 2007-05-25 16:35:10 UTC
Depends also on :
https://jax-ws.dev.java.net/issues/show_bug.cgi?id=100
Comment 6 Roderico Cruz 2007-07-19 07:50:09 UTC
The WSDL is not compliant with Basic Profile guidelines. The JAXWS runtime takes a hard line against such WSDLs, that
is, it rejects it. The non-compliance is due to the  use of the "type" attribute in the message/part definition of the
"Any" message. The binding then specifies a doc/literal style. The guideline says that if the binding style is
doc/literal, the attribute "element" (and thus pointing to a schema element) should be used in the message/part
definition. As explained by Vivek (the JAXWS engineer)  in https://jax-ws.dev.java.net/issues/show_bug.cgi?id=319, they
have no plans of supporting this because there is no spec that specifies how to marshal/unmarshal such WSDL.
Closing as INVALID.