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(...) Here's

Re: relative path to WSDL in CXF

2018-02-02 Thread Colm O hEigeartaigh
Instead of wsdlLocation = "src/main/resources/SalesService.wsdl" try either: a) wsdlLocation = "SalesService.wsdl" b) wsdlLocation = "/SalesService.wsdl" Colm. On Fri, Feb 2, 2018 at 4:58 AM, Al Grant wrote: > Hello, > > is there a way to get a relative path to the WSDL file? This code works:

Re: relative path to WSDL in CXF

2018-02-02 Thread Colm O hEigeartaigh
You can encrypt the password in the Crypto properties file, but you still need to supply a password somehow to decrypt the encrypted password. See here: http://coheigea.blogspot.ie/2014/02/apache-wss4j-200-part-iv.html Colm. On Fri, Feb 2, 2018 at 5:00 AM, Al Grant wrote: > Similar to last pos

Re: relative path to WSDL in CXF

2018-02-02 Thread Al Grant
So the crypto properties file cant be hidden in the jar file? -- Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Re: relative path to WSDL in CXF

2018-02-02 Thread Colm O hEigeartaigh
Well it can be, I think, but that's not buying you much security. Colm. On Fri, Feb 2, 2018 at 10:03 AM, Al Grant wrote: > So the crypto properties file cant be hidden in the jar file? > > > > -- > Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html > -- Colm O hEigeartaigh Ta

Re: relative path to WSDL in CXF

2018-02-02 Thread Al Grant
Better than in plain text!! On Fri, Feb 2, 2018 at 11:14 PM, Colm O hEigeartaigh wrote: > Well it can be, I think, but that's not buying you much security. > > Colm. > > On Fri, Feb 2, 2018 at 10:03 AM, Al Grant wrote: > > > So the crypto properties file cant be hidden in the jar file? > > > >

Re: relative path to WSDL in CXF

2018-02-02 Thread Al Grant
I tried : wsdlLocation = ("file:/Service.wsdl") wsdlLocation = ("file:Service.wsdl") wsdlLocation = ("/Service.wsdl") wsdlLocation = ("Service.wsdl") Always file not found? -- Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Re: relative path to WSDL in CXF

2018-02-02 Thread Al Grant
This worked: @WebServiceClient(name = "SalesService", targetNamespace = "urn:sales.com.au/schema/common", wsdlLocation = "file:src/main/resources/SalesService.wsdl") public class SalesService extends Service { -- Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Re: relative path to WSDL in CXF

2018-02-02 Thread Al Grant
Can the crypto properties file use relative paths. Instead of: org.apache.ws.security.crypto.merlin.truststore.file=C:\\Users\\Owner\\IdeaProjects\\project1\\src\\main\\resources\\truststore.jks Something like: org.apache.ws.security.crypto.merlin.truststore.file=src\\main\\resources\\truststore