[jboss-dev-forums] [JBoss ESB Development] - Client side SOAPHandlers
Rajnish Kumar
do-not-reply at jboss.com
Mon Apr 2 08:05:44 EDT 2012
Rajnish Kumar [https://community.jboss.org/people/rajnish.kumar.76] created the discussion
"Client side SOAPHandlers"
To view the discussion, visit: https://community.jboss.org/message/727723#727723
--------------------------------------------------------------
Hi,
My environment details :-
EnterprisePlatform-4.3.0.GA_CP10
jdk1.6.0_30
jbossesb-4.10
I am trying a simple client side SOAP handler. It's not getting called.
*Client Side Service (generated using wsconsume). I have added @HandlerChain annotation.*
...
...
@WebServiceClient(name = "WSSecurityService", targetNamespace = " http://com.fnb.ws.test/pojo/wssecurity http://com.fnb.ws.test/pojo/wssecurity", wsdlLocation = "file:/C:/Users/rkumar/workspace/JBOSSWSandESB\\WebContent\\WEB-INF\\wsdl/WSSecurityService.wsdl")
@HandlerChain(file = "WEB-INF/clienthandler.xml")
public class WSSecurityService
extends Service
{
...
...
*clienthandler.xml :-*
<?xml version="1.0" encoding="UTF-8"?>
<handler-chains xmlns=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee">
<handler-chain runAt="client">
<handler>
<handler-class>com.fnb.ws.test.myClientSOAPHandler</handler-class>
</handler>
</handler-chain>
</handler-chains>
*WS client jso code fragment :-*
<%
try {
WSSecurityService service = new WSSecurityService();
WSSecurity proxy = (WSSecurity)service.getWSSecurityPort();
((StubExt)proxy).setConfigName("Standard WSSecurity Client");
// invoke methods
System.out.println(proxy.testOperation1("Called from jsp Client"));
} catch (Exception e) {
out.println("Caught Exception: " + e);
}
%>
Call succeeds, I can see the logs from service but client side SOAPHandler is not invoked.
Can anyone tell me what needs to be changed. any help on reading material about setting up handler on server and client side would be appreciated.
Cheers,
-Rajnish
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/727723#727723]
Start a new discussion in JBoss ESB Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120402/20bb4943/attachment.html
More information about the jboss-dev-forums
mailing list