Re: Getting an EndPoint to Add Interceptor

2018-02-07 Thread Colm O hEigeartaigh
Using the Dispatch API can be tricky. I haven't tried it with SOAPMessage, so I'm not sure if WS-Security works there or not. I've added two examples though to show how to use the Dispatch API with Signature using payload:

Re: Getting an EndPoint to Add Interceptor

2018-02-06 Thread George S.
Would you mind giving me a few pointers? I'm trying things out. I'm told (I can't run it myself) that the message is not getting signed. I'm probably doing something really dumb, but if you could help I would appreciate it. Here's my code: try { MessageFactory mf =

Re: Getting an EndPoint to Add Interceptor

2018-02-02 Thread Colm O hEigeartaigh
If you want to add an interceptor on the client side, you can do something like: Service service = Service.create(wsdlLocation, serviceQName); PortType port = service.getPort(portQName, PortType.class); Client cxfClient = ClientProxy.getClient(port); cxfClient.getOutInterceptors().add(...)

Getting an EndPoint to Add Interceptor

2018-02-01 Thread George S.
I apologize for the really basic level of my question. I've looked at the docs and I'm really not figuring out how to do this. I'm adapting some code: import javax.xml.ws.Service; URL wsdlLocation =new URL(WS_URL); QName serviceQName =new QName(namespace, serviceName); QName portQName =new