The wsm-1.0-alpha jar is not the right jar, it conforms to an old
version of the spec. You want to use the xfire-jsr181 jar.
I'm not sure why the JSR181HandlerMapping isn't firing for you. I know
people have used this before... You don't have any old xfire jars on
your classpath do you?
- Dan
Jason Tesser wrote:
Dan what is the deal here?
OK I got the condition to fire by using the wsm-1.0-alpha.jar instead
of xfire-jsr181-api-1.0-M1.jar. The problem now is in the
org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations
annotation.setPortName(webService.portName()); fails in the following
code. It is saying that webService.portName() isn't a valid method.
Of course WebService is provided by the wsm-1.0-alpha.jar
javax.jws.WebService.
WebService webService = (WebService)
clazz.getAnnotation(WebService.class);
if (webService != null)
{
WebServiceAnnotation annotation = new WebServiceAnnotation();
annotation.setEndpointInterface(webService.endpointInterface());
annotation.setName(webService.name());
annotation.setServiceName(webService.serviceName());
annotation.setTargetNamespace (webService.targetNamespace());
annotation.setPortName(webService.portName());
return annotation;
}
On 3/23/06, * Jason Tesser* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
OK in a previous post I was having problems with
JSR181HandlerMapping but as I looked more into the problem I have
come to believe it is a problem with Jsr181WebAnnotations. In the
Jsr181HandlerMapping on line 93 it has the following code
if (clazz != null &&
!Modifier.isAbstract(clazz.getModifiers()) &&
webAnnotations.hasWebServiceAnnotation(clazz))
{
the problem is webAnnotations.hasWebServiceAnnotation(clazz) is
not returning annotations on my service. While debugging the
anotations hashMap size is null. :-( Could someone point me in
the right direction here. I am confussed on how to fix this or
what I am doing wrong
Here is my class
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService(serviceName = "EdirSyncMDB")
public class EdirSyncMDBImpl {
@WebMethod()
public String echo( String echo )
{
System.out.print("Sending back " + echo);
return echo;
}
}
--
Dan Diephouse
(616) 971-2053
Envoi Solutions LLC
http://netzooid.com