My bad ....you are correct.I ran that,then wrote a client.it looks like something like this...
MyWSDLFileSOAPStub x= new MyWSDLFileSOAPStub();
String z=x.myFirst("ho", "srte");//garbage arguments
System.out.println(z);
But when I run this I am getting an exception.....
Exception in thread "main" AxisFault
faultCode: {http://xml.apache.org/axis/}Server.NoEndpoint
faultSubcode:
faultString: No endpoint
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}exceptionName
rg.apache.axis.NoEndPointException
{http://xml.apache.org/axis/}stackTrace:No endpoint
at org.example.www.MyFirstWSDL.MyFirstWSDLSOAPStub.myFirst(MyFirstWSDLSOAPStub.java:94)
at MyFirstClient.main(MyFirstClient.java:10)
at org.example.www.MyFirstWSDL.MyFirstWSDLFileSOAPStub.myFirst(MyFirstWSDLSOAPStub.java:94)
=========================================================================
The exception is thrown because super.cacheendpoint is null
public java.lang.String myFirst(java.lang.String time, java.lang.String loc) throws java.rmi.RemoteException {
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("http://www.example.org/MyFirstWSDLFile/MyFirst");
_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("http://www.example.org/MyFirstWSDLFile/", "MyFirst"));
setRequestHeaders(_call);
setAttachments(_call);
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {time, loc});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (java.lang.String) _resp;
} catch (java.lang.Exception _exception) {
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
}
}
} catch (org.apache.axis.AxisFault axisFaultException) {
throw axisFaultException;
}
Cheers,
Sma