Hi,
I have written a new Web Service, that I have no trouble connecting to with C#. Im running this on a CS10.5 U 201506 and I've tried using both Java 8 and Java 7 and get the same exception trace in both:
Starting test...
Service URL = http://localhost/ffevservice/GenericDocService.svc?wsdl
javax.xml.ws.WebServiceException: {urn:FFEVservice.service.livelink.opentext.com}GenericDocService is not a valid service. Valid services are: {urn:FFEVService.service.livelink.opentext.com}GenericDocService
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:231)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:176)
at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
at javax.xml.ws.Service.<init>(Unknown Source)
at com.opentext.livelink.service.ffevservice.GenericDocService_Service.<init>(GenericDocService_Service.java:58)
Notice that the Valid services list includes the item I just tried to create. Here is the block of code that is doing this.
public static GenericDocService GetGenericDoc(String baseURL) throws Exception {
GenericDocService endpoint = null;
GenericDocService_Service service;
URL location = WSUtils.getServiceURL(baseURL, "GenericDocService");
Log("Service URL = " + location.toString()); // I have verified that this URL is valid
// This line always stack traces
service = new GenericDocService_Service(
location,
new QName(
"urn:FFEVservice.service.livelink.opentext.com",
"GenericDocService" ) );
Log("Got service");
endpoint = service.getBasicHttpBindingGenericDocService();
Log("Got endpoint");
// force the service to use the specified URL, instead of the one defined in the WSDL
( (BindingProvider) endpoint ).getRequestContext().put( BindingProvider.ENDPOINT_ADDRESS_PROPERTY, location.toExternalForm() );
( (BindingProvider) endpoint ).getBinding().setHandlerChain(WSUtils.getHandlers());
Log("Endpoint set up");
return endpoint;
}
THe WSUtils class is taken from the LLTreeView example. Has anyone got an error like this, and how did you get around it?
-Hugh Ferguson