Hi Paul, Are you using any proxy server?
I found that this Axis fault - (302)Moved permanently - appeared is your HTTP server is behind proxy. OR Just to verify, deploy the same service locally and see if you can invoke the service. Hope this helps. Best regards, Shrikant Wagh QA Architect and Lead, HPP/Eprofile, HP For those who are interested in Web Services testing: ----------------------------------------------------- I found that WebServiceTester from Optimyz software is a very good tool for testing any types of web services, and I'm great fan of this tool. It supports all types of web services, and all simple and complex types and it very usable than any other tool in the market I ever used/evaluated. It automatically generates the SOAP requests and invokes the intended web services. It can perform functional, regression and load testing of web services. Result analysis and status reporting is just wonderful. I'll highly recommend this tool for testing web services, saves lots of time and efforts in testing web services. For more information visit http://www.optimyz.com. DISCLAIMER ================================================================ THESE ARE MY PERSONAL VIEWS/OPINIONS AND DOES NOT REPRESENT HP, AND THE INFORMATION PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE I/HP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS INFORMATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ================================================================= -----Original Message----- From: Paul Phillips [mailto:[EMAIL PROTECTED] Sent: Saturday, March 13, 2004 7:28 AM To: [EMAIL PROTECTED] Subject: (302)Moved Temporarily Hello, 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.j ava: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.jav a: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
