On Wednesday 16 March 2011 1:58:51 PM slocum wrote:
> Daniel  Kulp wrote:
> > My gut feeling says it's not finding the WSDL properly.
> > 
> > My suggestion is to change:
> > CMPSWebService service =  new CMPSWebService();
> > 
> > to use the constructor that takes the WSDL url and service QName.   Grab
> > the
> > WSDL via getClass().getResource(....) or similar to make sure the WSDL is
> > resolvable.
> 
> What is the name of the resource for the WSDL to supply to getResource()?

It would depend on where you stick the WSDL.   A common place is in WEB-
INF/wsdl in which case it would be something like:

URL wsdlURL = service.getClass().getResource("/WEB-INF/wsdl/myWsdl.wsdl");
QName serviceName = new QName(http://ws.cmps.digitalriver.com"";, 
"CMPSWebService");
service = new CMPSWebService(wsdlURL, serviceName);


The wsdl URL could be something like that or even an http URL or file URL, 
etc..


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to