| Hi, im running a webservice in cocoon and have some problems with the generated client stub. the generated bindingStub.java contains following code: if (super.cachedEndpoint == null) { throw new org.apache.axis.NoEndPointException(); } org.apache.axis.client.Call _call = createCall(); _call.setOperation(_operations[0]); _call.setUseSOAPAction(true); _call.setSOAPActionURI("authenticate"); _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); _call.setOperationName(new javax.xml.namespace.QName("http://elquerito.hti.bfh.ch/soap/wsdl/v1.0", "authenticate")); setRequestHeaders(_call); setAttachments(_call); java.lang.Object _resp = _call.invoke(new java.lang.Object[] {authContainer}); if (_resp instanceof java.rmi.RemoteException) { throw (java.rmi.RemoteException)_resp; } else { extractAttachments(_call); try { return (ch.bfh.hti.elquerito.soap.wsdl.v1_0.types.User) _resp; } catch (java.lang.Exception _exception) { return (ch.bfh.hti.elquerito.soap.wsdl.v1_0.types.User) org.apache.axis.utils.JavaUtils.convert(_resp, ch.bfh.hti.elquerito.soap.wsdl.v1_0.types.User.class); } } do i run the client with this code i receive following error from the server: AxisFault faultCode: {http://xml.apache.org/axis/}Server.NoService faultSubcode: faultString: The AXIS engine could not find a target service to invoke! targetService is null faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: AxisFault faultCode: {http://xml.apache.org/axis/}Server.NoService faultSubcode: faultString: The AXIS engine could not find a target service to invoke! targetService is null faultActor: faultNode: faultDetail: do i replace the line call.setOperationName(new javax.xml.namespace.QName("http://elquerito.hti.bfh.ch/soap/wsdl/v1.0", "authenticate")); with call.setOperationName(new javax.xml.namespace.QName("elquerito-binding", "authenticate")); it's working fine. elquerito-binding is the name of the binding. What's going wrong? Regards, Mike |
