Guten Abend,
ich habe da ein Problem mit einem Webservice Client, der die
Soap message an einen Axis Server schickt, der in Apache cocoon läuft. Ich generiere die BindingStub.java mit axis wsdl2java, dabei kommt folgendes raus:
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);
}
}
Dieser generierte Code läuft nicht, der Server antwortet jeweils:
Code:
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:
ersetze ich in den generierten Klassen " _call.setOperationName(new javax.
xml.namespace.QName("
http://elquerito.hti.bfh.ch/
soap/wsdl/v1.0", "authenticate"));" durch "_call.setOperationName(new javax.
xml.namespace.QName("elquerito-port", "authenticate"));" also den port-name des Webservice funktioniert es.
Sieh jemand, was hier falsch läuft?
Danke boskop