]
Brian Fitzpatrick commented on JBIDE-7234:
------------------------------------------
Ok, I think I have this working. It will use the targetNamespace of the WSDL and the
service name and generates this:
package org.jboss.examples.creditagency;
import org.jboss.examples.creditagency.CreditAgencyInterface;
import javax.jws.WebService;
@WebService(serviceName = "CreditAgencyService", endpointInterface =
"org.jboss.examples.creditagency.CreditAgencyInterface", targetNamespace =
"http://www.jboss.org/examples/creditAgency")
public class CreditAgencyInterfaceImpl implements CreditAgencyInterface {
public CreditCheckType checkCredit(CreditCheckType content) {
return null;
}
}
Are you at a point where you can test a patch? Or can I send you a generated project?
JAX-WS generated portType implementation has incorrect @WebService
annotation
-----------------------------------------------------------------------------
Key: JBIDE-7234
URL:
https://jira.jboss.org/browse/JBIDE-7234
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Webservices
Affects Versions: 3.2.0.M2
Environment: JBTools 3.2.0.beta1 nightly build.
Reporter: Gary Brown
Assignee: Brian Fitzpatrick
Fix For: 3.2.0.Beta2
Attachments: PurchaseGoodsProcess-CreditAgency.zip
When generating a Java Bean skeleton web service, based on a WSDL definition, the port
type implementation class has an incorrect annotation.
The port type implementation has:
@WebService(serviceName = "CreditAgencyInterface", endpointInterface =
"org.example.purchasing.creditAgency.CreditAgencyInterface")
but the interface associated with the implementation defines:
@WebService(name = "CreditAgencyInterface", targetNamespace =
"http://www.jboss.org/examples/creditAgency")
The end result is that when accessing the WSDL for the endpoint, once deployed to the
JBossAS server, the WSDL has an incorrect target namespace and service name - service name
is 'CreditAgencyInterface' instead of 'CreditAgencyService', and the
target namespace is autogenerated based on the Java package name of the implementation
class.
When the annotation in the port type implementation's annotation was changed to be:
@WebService(name = "CreditAgencyInterface",
serviceName="CreditAgencyService",
targetNamespace="http://www.jboss.org/examples/creditAgency", endpointInterface
= "org.example.purchasing.creditAgency.CreditAgencyInterface")
This fixes the serviceName attribute, and adds a 'name' attribute to be the port
type. It also specifies explicitly the target namespace.
Note: tried using jax-ws version 2.0 and 2.1, with same result.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: