So I still get the same error with this. Here is the new JSP code:
CMPSWebService service = new CMPSWebService();
URL wsdlURL =
service.getClass().getResource("/WEB-INF/classes/cmps-1.0.wsdl");
QName serviceName = new QName("http://ws.cmps.digitalriver.com",
"CMPSWebService");
service = new CMPSWebService(wsdlURL, serviceName);
CMPSWebServicePortType port = service.getCMPSWebServiceHttpPort();
For reference, here is the top of the web service implementation code:
@WebService(name = "CMPSServiceImpl",
serviceName = "CMPSWebService",
portName = "CMPSWebServiceHttpPort",
wsdlLocation="classpath:cmps-1.0.wsdl",
endpointInterface =
"com.digitalriver.cmps.ws.CMPSWebServicePortType",
targetNamespace = "http://ws.cmps.digitalriver.com")
public class CMPSServiceImpl implements CMPSWebServicePortType {
public CMPSServiceImpl() {
this(Application.getInstance().getSessionFactory());
}
public CMPSServiceImpl(SessionFactory factory) {
sessionFactory = factory;
try {
Application.getInstance().loadProperties();
logger.debug("Loaded application props!!!!!!!");
}
catch(Exception e) {
e.printStackTrace();
}
}
...
}
Daniel Kulp wrote:
>
> 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);
>
>
--
View this message in context:
http://cxf.547215.n5.nabble.com/Calling-cxf-web-service-from-JSP-page-tp3786341p3791853.html
Sent from the cxf-user mailing list archive at Nabble.com.