I built a JSP page to call my web service. When I run the JSP I get the
following root cause:
javax.xml.ws.WebServiceException: Port
{http://ws.cmps.digitalriver.com}CMPSWebServiceHttpPort not found.
org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:326)
org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:317)
javax.xml.ws.Service.getPort(Service.java:92)
com.digitalriver.cmps.ws.CMPSWebService.getCMPSWebServiceHttpPort(CMPSWebService.java:63)
...
The JSP code is here:
<%
CMPSWebService service = new CMPSWebService();
CMPSWebServicePortType port = service.getCMPSWebServiceHttpPort();
LookupProductRequestType prdReq = new LookupProductRequestType();
prdReq.setDivisionID(division);
prdReq.setDivisionProductID(divOrderID);
prdReq.setLanguage(lang);
LookupProductResponseType resp = port.lookupProduct(prdReq);
%>
The relevant section of the WSDL is:
<wsdl:service name="CMPSWebService">
<wsdl:port name="CMPSWebServiceHttpPort"
binding="tns:CMPSWebServiceHttpBinding">
<soap:address
location="http://localhost:8080/cmps-1.0/services/CMPSWebService" />
</wsdl:port>
</wsdl:service>
Any ideas what I'm doing wrong?
--
View this message in context:
http://cxf.547215.n5.nabble.com/Calling-cxf-web-service-from-JSP-page-tp3786341p3786341.html
Sent from the cxf-user mailing list archive at Nabble.com.