The handler of the client doesn't work

the client is a java application, and I have add the handler to de handlerchain of the client's registry, but it just doesn't work. What's the matter?
This is my code:
String url = "http://127.0.0.1:8080/HelloWorld/HelloWorld?wsdl";
String namespace = "urn:HelloWorld/wsdl";
String portName = "HelloWorldSEIPort";
String serviceName = "HelloWorld";
QName serviceQN = new QName(namespace, serviceName);
ServiceFactory serviceFactory = ServiceFactory.newInstance();
Service service = serviceFactory.createService(new URL(url), serviceQN);
QName servicePort = new QName(namespace, portName);
HandlerRegistry registry = service.getHandlerRegistry();
List handlerChain = new ArrayList();
HandlerInfo handlerInfo = new HandlerInfo(ClientHandler.class, null, null);
handlerChain.add(handlerInfo);
registry.setHandlerChain(servicePort, handlerChain);
Stub stub = createProxy();
stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, url);
hello.HelloWorldSEI hello = (hello.HelloWorldSEI)stub;
System.out.println(hello.sayHello(args[0]));
I use the static stub method and generate the web service client with wscompile of the jwsdp. My web service's name is HelloWorld, but it generates several class such as HelloWorld, HelloWorld_Impl, HelloWorldSEIPort, HelloWorldSEI. What's the differences between them. And I want to know what's the type QName is, it's one of the parameters of the registry.setHandlerChain method. Why I have to use QName? And what my service's portName should be. Anyone who can help me? Thanks!
I use the NetBeans 4.1 beta IDE.

the client is a java application, and I have add the
handler to de handlerchain of the client's registry,
but it just doesn't work. What's the matter? For anyone following the forum who doesn't receive [email protected] email:
The question was also sent to the users@jwsdp email list and I responded there. Basically, I think the port qnames don't match, so maybe the one passed to the handler registry isn't correct. Without all the code and the wsdl, it's hard to tell. (One note: in jaxrpc 2.0, getting/setting a handler chain for a port that doesn't exist will result in an exception, which may help cut down on problems like this).
My suggestion was to add the handler to the config.xml file since it is a static stub. This is just a simpler way to do it.
Cheers,
Bobby

Similar Messages

Maybe you are looking for

  • Help required in Development of Dynamic forms

    Hi all, I want to design dynamic form (using forms 6i), in which the end user will display the screen according to his own requirement i.e on the run-time screen user want to display particular field or not. In this we have to re-arrange the position

  • Help with Stills and Motion

    I just came over to Mac and took advantage of the promotion on FCE. I am a still photographer and have found that putting my pictures into a video is much more impressive than handing someone a pile of photos. What I need seems to be relatively simpl

  • Webkit2 process.exe stop working

    I recently updated my iphone with the iOS5 software.  Now, I'm getting a message reading "webkit2 process.exe has stoped working" whenever I use Safari.  It shuts everything down.  Any ideas what the probelm is, or how I can fix it?  Thanks-

  • Type Casting? When to use this concept?

    There is one question bothering me very very much. When should I use type casting? For example ClassNameQ c = (ClassNameQ) ......displayable How do I know which 'cast type' to use? Is there a suitable pattern we need to follow so that we can know 'Ah

  • Will we be able to trade?

    I'm not usually an advocate for buying something with the intention of returning however I am wondering if the white iphone 4 will look nicer. If it is released in the next 30 days, do you think Apple will let us trade the phones out? If they do, I'm