Hi
It looks like the Service Name is not a right one from the exception's
message.
Please check the Service QName with the wsdl which you get from the

http://192.168.98.46:8080/pfc/services/PfC?wsdl


Willem.

doug wrote:
> Hi, 
> I think I have my server set up ok because if I visit this page:
> http://192.168.98.46:8080/pfc/services/
> I get a list of the services I implemented:
>
> {http://impl.chat.serbices.servlet.pfc.mmsn.net.au/}ChatServiceImplPort 
> {http://impl.rfio.serbices.servlet.pfc.mmsn.net.au/}RemoteFileImplPort 
> {http://impl.imageshare.serbices.servlet.pfc.mmsn.net.au/}ImShServiceImplPort 
> {http://impl.rfio.serbices.servlet.pfc.mmsn.net.au/}RemoteFileSystemImplPort 
> {http://impl.rfio.serbices.servlet.pfc.mmsn.net.au/}RemoteFileIOImplPort 
> {http://impl.serbices.servlet.pfc.mmsn.net.au/}PfCServicesImplPort
>
> The last one is a link to http://192.168.98.46:8080/pfc/services/PfC?wsdl
> and serves up the appropriate wsdl description of the PfC interface.
>
> The problem is that when I try to get a handle on the PfC interface from
> within my client applet, I end up with the error:
>
>   org.apache.cxf.service.factory.ServiceConstructionException: 
>   Could not find definition for service {urn:srv}PfCService.
>
> I used the following client side code (both the client and server side 
> service 
> code were generated from wsdl2java):
>
>       serviceAddress = "http://"; + (String)configOpts.get("hostName") + ":" + 
>                               (String)configOpts.get("port") + serviceURI 
> +"?wsdl";
>       // i.e. http://192.168.98.46:8080/pfc/services/PfC?wsdl
>       URL url = new URL(serviceAddress);                      
>       QName SERVICE = new QName("urn:srv", "PfCService");
>       PfCService service = new PfCService(url, SERVICE );
>       PfC pfc = service.getPfC();
>
> Sorry, I am new to all this, so likely I am doing something foolish.
> Hope this is enough to work from. 
> Thanks for any insights
> Doug
>
>   

Reply via email to