Hello guys,
I'd like to request a consultation on a problem I am trying to solve involving JAX-WS.
I have a Server application and two Client applications that communicate through SOAP.
The server periodically will communicate with both types of client through a same WebService message to check if they are both active and the both the clients IDEALLY should have the same definition of the WebService message in their WSDL.
That is not the case though.
The operation definition is different in the WSDL of the two Clients.
For this consult's sake one client's WSDL definition is
wsdl:operation name="connectivityCheck"
and the other client's definition is
wsdl:operation name="connectionCheck"
Thus when Eclipse executes the lines of code:
QName serviceName = new QName(TARGET_NAMESPACE, "Client");
QName portQName = new QName(TARGET_NAMESPACE, getPortName(addressType));
Service myService = Service.create(wsdlLocation, serviceName);
port = myService.getPort(portQName, Client.class);
Eclipse produces the error:
06 25, 14 8:05:54 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
INFO: Creating Service {-----}Client from WSDL: http:---Client.asmx?wsdl
06 25, 14 8:05:54 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean initializeWSDLOperations
WARNING: Could not find a matching method for operation {----}
My question is, if updating the WSDL is not possible (because of company circumstances), can I adjust on the server side my code? Will this involve updating the Interface used when communicating with the clients?
(Im relatively a newbie on WebServices so I apologize in advance and am very thankful for your help)