Hi Bayu, I suspect at least part of your problem may be the need for a WSDL document with policy information to properly configure the client. The JaxWsProxyFactoryBean class has a wsdlURL property - have you tried using that to pass the URL of the WSDL (or you can try wsdlLocation, which might be a file path - since the documentation doesn't say)?
- Dennis Dennis M. Sosnoski XML and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 On 10/21/2010 10:45 PM, siuyab wrote: > Hi Dennis, > > I am very new to web service and thus the ws-securitypolicy. I have a task > in a project where I have to implement authentication in an ongoing work > which is based on web service. I tried to re-create a project based on your > example codes (username & password tokens) and everything works fine. But > when I tried to implement the same thing in my project, the callback-handler > class which I created was never called although I have used the same > libraries, do all procedure to modify the wsdl file and cxf-servlet.xml at > server side, adding username and password in client side, and create > callback-handler class at server side. The only difference is that I use > "JaxWsProxyFactoryBean" at the client side to create stub.. > > Do you or any body has else any clue what I might miss in this case? Any > help is really appreciated. Thank you in advance. > > /bayu >
