Re: relative path to WSDL in CXF

2018-02-07 Thread Al Grant
Finally worked with: @WebServiceClient(name = "SalesService", targetNamespace = "urn:sales.test.au/schema/common", wsdlLocation = "classpath:SalesService.wsdl") public class SalesService extends Service { private final static URL SalesSERVICE_WSDL_LOCATION; private final static

Re: relative path to WSDL in CXF

2018-02-07 Thread Al Grant
Hi, This is getting very frustrating trying to get the project to find relative paths to the WDSL. Environment: Java 7 Build Tool: gradle IDE: Intellij The WSDL file runs fine in the IDE with : @WebServiceClient(name = "SalesService", targetNamespace = "urn:Sales.test.au/schema/common",

Re: relative path to WSDL in CXF

2018-02-05 Thread Colm O hEigeartaigh
Yes, for example: https://github.com/apache/cxf/blob/master/systests/ws-security/src/test/resources/alice.properties Colm. On Sat, Feb 3, 2018 at 6:50 AM, Al Grant wrote: > Can the crypto properties file use relative paths. Instead of: > >

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:

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
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
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

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 > --

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
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:

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

Re: relative path to WSDL in CXF

2018-02-01 Thread Al Grant
Similar to last post : ((BindingProvider)iisrService).getRequestContext().put(SecurityConstants.ENCRYPT_PROPERTIES, "client_sign.properties"); ((BindingProvider)iisrService).getRequestContext().put(SecurityConstants.SIGNATURE_PROPERTIES,