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 140495 - Web Service using Provider interface not correctly included in a service assembly
Summary: Web Service using Provider interface not correctly included in a service asse...
Status: NEW
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 3 votes (vote)
Assignee: _ gmpatil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-17 12:04 UTC by balsmn
Modified: 2008-09-22 20:37 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Sample Provider, Composite Assembly - Netbeans projects (34.86 KB, application/x-compressed)
2008-07-31 11:52 UTC, balsmn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description balsmn 2008-07-17 12:04:50 UTC
Used the javax.xml.ws.Provider<SOAPMessage> interface in MESSAGE mode to implement a Web Service. When I include service
this in a service assembly (of a composite application), the casa editor of Netbeans shows the service as a "Consumer"
of the wsdl port but it is actually a "Provider".
Comment 1 Tientien Li 2008-07-30 21:38:02 UTC
balsmn,

Can you attach your projects? We need to take a look at the jbi.xml generated by the EJB project.

Thanks,

--
Tientien Li
Comment 2 balsmn 2008-07-31 11:52:36 UTC
Created attachment 66157 [details]
Sample Provider, Composite Assembly - Netbeans projects
Comment 3 balsmn 2008-07-31 11:56:03 UTC
I have attachted the Netbeans projects including the Webservice and its corresponding composite application containing
it. The WSDL was first designed and the java artifcats implementing using provider was generated from the wsdl.

--
balsmn
Comment 4 Tientien Li 2008-07-31 18:04:12 UTC
Girish,

Can you take a look at this problem? The jbi.xml generated for the servlet-based web service, HelloProvider, SU has 
only a consume endpoint:

<consumes endpoint-name="javaee_SimpleProviderPort"
          interface-name="ns0:SimpleProviderPortType"
          service-name="ns0:SimpleProviderService"/>

However, the java code, SimpleProvider.java, implements the javax.xml.ws.Provider interface:

@WebServiceProvider(serviceName = "SimpleProviderService", 
                    portName = "SimpleProviderPort", 
                    targetNamespace = "http://j2ee.netbeans.org/wsdl/SimpleProvider", 
                    wsdlLocation = "WEB-INF/wsdl/SimpleProvider/SimpleProvider.wsdl")
public class SimpleProvider implements javax.xml.ws.Provider<javax.xml.soap.SOAPMessage> {

Thanks,
Comment 5 _ gmpatil 2008-07-31 19:13:36 UTC
Composite application project does not yet auto generates the endpoints for Web services using JAX-WS provider interface.
(i.e using annotation @WebServiceProvider).

We need to fix/enhance this.

Comment 6 _ gmpatil 2008-09-22 20:37:19 UTC
Changing the issue type to enhancement.