This content has been marked as final.
Show 2 replies
-
1. Re: Can I point a wsconsume-generated client to a local WSDL
ropalka Nov 6, 2007 3:19 AM (in response to bradmarshall)"Brad Marshall" wrote:
Can I easily override the Service class?s retrieval of the WSDL from the Web service and point it instead at a local copy of the WSDL file? In out environment, every caller of the Web service also implements their own Web service with the identical interface, so we can enforce a rule that they have a copy local of the valid WSDL file.URL wsdlURL = new File("resources/YourService.wsdl").toURL(); QName serviceName = new QName("yourWsdlNs", "ServiceQName"); Service service = Service.create(wsdlURL, serviceName);
Richard -
2. Re: Can I point a wsconsume-generated client to a local WSDL
bradmarshall Nov 6, 2007 10:41 AM (in response to bradmarshall)Brilliant. That works. Thanks Richard.