users@glassfish.java.net

Re: Creating a webservice from existing wsdl and java

From: <glassfish_at_javadesktop.org>
Date: Thu, 12 Mar 2009 05:58:47 PDT

Ok, so I need to give parameters to the @WebService annotation. So looking at your code (in AdminEndpointDecorator.java) you annotate:
@WebService(endpointInterface = "net.java.dev.cejug_classifieds.admin.CejugClassifiedsAdmin", serviceName = "CejugClassifiedsServiceAdmin", portName = "CejugClassifiedsAdmin", targetNamespace = "http://cejug-classifieds.dev.java.net/admin")

Are the values taken from the wsdl-file? If so, what is the endpointInterface referring to?

I'm trying to follow your example and annotate like this:
@WebService(endpointInterface="com.my_app.interaction.impl.ListingInteractionServiceBean", portName="ListingInteractionServiceBeanPort", serviceName="ListingInteractionServiceBeanService", targetNamespace="http://impl.interaction.my_app.com/")
public class ListingInteractionServiceBean implements ListingInteractionService {
...


my wsdl (listingservice.wsdl):
...
<service name="ListingInteractionServiceBeanService">
                <port name="ListingInteractionServiceBeanPort" binding="tns:ListingInteractionServiceBeanPortBinding">
...

This results in an undeployable ejb module:
[#|2009-03-12T13:39:38.676+0100|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=51;_ThreadName=Thread-3219;_RequestID=7371a668-725e-48b6-bd0d-ad49bf3909d4;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: WSGEN FAILED
        at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2256)
        at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:360)
...
[Message sent by forum member 'onemanbucket' (onemanbucket)]

http://forums.java.net/jive/thread.jspa?messageID=336627