I am having some trouble deploying a service I have made. I have used Java2WSDL and WSDL2Java to create the stubs and skeletons. However, when I try and use them I get a java.rmi.RemoteException error:
(302)Moved Temporarily
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (302)Moved Temporarily
faultActor:
faultNode:
faultDetail:
{}string: return code: 302
(302)Moved Temporarily
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at deltadown.DeltaSoapBindingStub.authenticateUser(DeltaSoapBindingStub.java:98)
at Login.doLogin(Login.java:58)
at Login.main(Login.java:80)
Tracing this through I have found the problem is on the server side in my *SoapBindingStub when it tries to execute the function authenticateUser. The function is here:
public java.lang.String authenticateUser(java.lang.String in0, java.lang.String in1) 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("");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("urn:deltadown", "authenticateUser"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {in0, in1}); //FAILS CALLING THIS!!!
Why is this?
On the server I have axis setup in /opt/tomcat/webapps/axis/ and my classes in a package (deltadown) at /opt/tomcat/webapps/axis/delta/deltadown/ These all compile and I have put them in a .jar file and put that in /opt/tomcat/webapps/axis/WEB-INF/lib
I am running the client from a different directory and have put the *Service , *ServiceLocator and *SoapBindingStub in there too. The code the client calls is this:
ProcessLoginServiceLocator service = new ProcessLoginServiceLocator(); // Now use the service to get a stub which implements the SDI. deltadown.ProcessLogin port = service.getdelta(); //service.getdelta(); //do it!!! String result = port.authenticateUser(userName, password);
TIA
~Paul P
