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 110628 - new ws operation is being added twice to the WSDL
Summary: new ws operation is being added twice to the WSDL
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Designer (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Roderico Cruz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-23 17:53 UTC by Lukas Jungmann
Modified: 2007-07-25 11:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2007-07-23 17:53:08 UTC
-create new ws from wsdl in an ejb module
-add new operation to it (newOperation(int): int)
-clean & build the project

=> fails on wsimport with:

[ERROR] binding operation "newOperation" must specify a name for its input message
  line 109 of file:/home/lukas/NetBeansProjects/EJBModule3/src/conf/xml-resources/web-services/Numbers/wsdl/AddNumbers.wsdl

after inspecting the WSDL file I can see there:
<portType name="AddNumbersPortType">
...
   <operation name="newOperation">
     <input name="newOperation" message="tns:newOperationMessage"/>
     <output name="newOperationResponse" message="tns:newOperationResponseMessage"/>
   </operation>
   <operation name="newOperation">
     <input message="tns:newOperation"/>
     <output message="tns:newOperationResponse"/>
   </operation>
</portType>
<binding...>
   ...
   <operation name="newOperation">
     <soap:operation soapAction=""/>
     <input xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
       <soap:body use="literal"/>
     </input>
     <output xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
       <soap:body use="literal"/>
     </output>
   </operation>
   <operation name="newOperation">
     <input/>
     <output/>
   </operation>
</binding>
Comment 1 Roderico Cruz 2007-07-25 07:56:20 UTC
The WSIT Service Listener was creating a second operation. Listener has to determine if operation exists before creating
a new one.
Comment 2 Lukas Jungmann 2007-07-25 11:42:26 UTC
v.