See here for an example:
https://github.com/apache/cxf/blob/master/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/AddNumbersServiceWithAnnotation.java

Colm.

On Tue, Jan 30, 2018 at 11:47 AM, Al Grant <[email protected]> wrote:

> So I can either save the WSDL or point my service to the copy which is not
> protected with security.
>
> I presume the wsdlLocation parameter that is passed in is either the file
> or
> a location without security/http? And then further down:
> url = new URL("https://sales.test.com.au/RSIService.svc?singleWsdl";);
> Is the one with https?
>
>
> @WebServiceClient(name = "ISRService", targetNamespace =
> "urn:sales.test.com.au/schema/common", wsdlLocation =
> "http://sales.test.com.nosecurity.au/RSIService.svc?singleWsdl";)
> public class ISRService
>     extends Service
> {
>
>     private final static URL ISRSERVICE_WSDL_LOCATION;
>     private final static WebServiceException ISRSERVICE_EXCEPTION;
>     private final static QName ISRSERVICE_QNAME = new
> QName("urn:sales.test.com.au/schema/common", "RSIService");
>
>     static {
>         URL url = null;
>         WebServiceException e = null;
>         try {
>             url = new
> URL("https://sales.test.com.au/RSIService.svc?singleWsdl";);
>         } catch (MalformedURLException ex) {
>             e = new WebServiceException(ex);
>         }
>         ISRSERVICE_WSDL_LOCATION = url;
>         ISRSERVICE_EXCEPTION = e;
>     }
>
> Cheers
>
> AG
>
>
>
>
> --
> Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to