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.

Dan


On Wednesday 16 March 2011 12:03:04 PM slocum wrote:
> 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(CMPSWebSe
> rvice.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:
> 
> 
>       &lt;wsdl:service name="CMPSWebService"&gt;
> 
>               &lt;wsdl:port name="CMPSWebServiceHttpPort"
> binding="tns:CMPSWebServiceHttpBinding"&gt;
> 
>                       &lt;soap:address
> location="http://localhost:8080/cmps-1.0/services/CMPSWebService"; /&gt;
> 
>               &lt;/wsdl:port&gt;
> 
>       &lt;/wsdl:service&gt;
> 
> 
> 
> 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-tp37
> 86341p3786341.html Sent from the cxf-user mailing list archive at
> Nabble.com.

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

Reply via email to