The namespace for the parameter would be the targetNamespace for your schema that defines the parameter element.
Anne
Found some information on this. In the org.apache.axis.client.Call.invoke method, the first parameter is operationName.getNamespaceURI(). Looking at the object, my namespaceURI is null. I've a feeling that this is the problem, but after looking at the WSDL, it's not apparent to me where it needs to be set. Can someone help?
Thanks.
Jerry Jalenak
Software Engineer
Netopia, Inc.
From: Jalenak, Jerry [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 09, 2005 1:44 PM
To: [email protected]
Subject: InvocationTargetException in org.apache.axis.client.Call
Hi all,
I've got a webservice developed using Axis 1.3 with a Document Literal Wrapped WSDL. I'm getting an InvocationTargetException in my SoapBindingStub when Axis is being called. Here's the code –
public webservice.client.CpeProperties[] listCPE(webservice.client.ListCPE parameters) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[29]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("");
_call.setEncodingStyle(null);
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("", "listCPE"));
setRequestHeaders(_call);
setAttachments(_call);
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {parameters});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (webservice.client.CpeProperties[]) _resp;
} catch (java.lang.Exception _exception) {
return (webservice.client.CpeProperties[]) org.apache.axis.utils.JavaUtils.convert(_resp, webservice.client.CpeProperties[].class);
}
}
} catch (org.apache.axis.AxisFault axisFaultException) {
throw axisFaultException;
}
}
The exception is being thrown in the _call.invoke. Obviously there is something wrong when Axis is reflecting to the method, but I can't seem to identify it. Can anyone point me in the right direction to track this one down?
Thanks.
Jerry Jalenak
Software Engineer
Netopia, Inc.
