Return-Path: Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 49112 invoked by uid 500); 21 Jul 2003 12:15:42 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 49094 invoked from network); 21 Jul 2003 12:15:42 -0000 Message-ID: <9C40AC97FC5CD7119C940003476BBCD08D3932@xwilmbx03.aig.com> From: "Irazabal, Alex" To: "'axis-user@ws.apache.org'" Subject: RE: newbie question Date: Mon, 21 Jul 2003 08:15:43 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks for the help Akhil. However, how did you determine that the 500 meant the service couldn't be found or wasn't deployed correctly in the server? The description in the w3.org is very ambiguous. Alex -----Original Message----- From: Akhil Gupta [mailto:agupta@eircom.net] Sent: Saturday, July 19, 2003 7:25 PM To: axis-user@ws.apache.org Subject: Re: newbie question Hi Alex HTTP 500 error code means the http link you are looking for is not present on the server. Probably your service is not deployed properly in the server. Try to access the service through the Axis admin page from Internet Browser to see if it is deployed properly or not. >From the following link you can all the standard HTTP errors and the menaing of each error. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html Akhil ----- Original Message ----- From: "Irazabal, Alex" To: Sent: Friday, July 18, 2003 8:17 PM Subject: newbie question > I am getting a (500) Internal Server Error when I try accessing my Web > Service with a client. > > My question is: is there a simple way to debug this problem and find out > what the 500 code means? I am in a tight schedule (!) and would rather not > wade through all of axis looking for the cause... So if you've been here > before, please share it :-) > > The client is using the generated skeleton code from WSDL2Java and > Java2WSDL. The client is pretty simple: > public class MathClient > > { > > public static void main(String [] args) > > { > > try { > > > > MathServiceServiceLocator msl = new MathServiceServiceLocator(); > > MathService ms = msl.getMathService(); > > if (ms != null){ > > double d = ms.add(1,1); > > System.out.println("Double returned:" + String.valueOf(d)); > > } > > } catch (Exception e) { > > System.err.println(e.toString()); > > } > > } > > } > > The service is also simple: > > public class MathService > > { > > public double add(double d1, double d2) > > { > > return d1+d2; > > } > > } > > The generated WSDL is: > > > > targetNamespace="http://localhost:8080/axis/services/MathService" > xmlns:impl="http://localhost:8080/axis/services/MathService" > xmlns:intf="http://localhost:8080/axis/services/MathService" > xmlns:apachesoap="http://xml.apache.org/xml-soap" > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns="http://schemas.xmlsoap.org/wsdl/"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > transport="http://schemas.xmlsoap.org/soap/http"/> > > > > > > > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > namespace="http://localhost:8080/axis/services/MathService"/> > > > > > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > namespace="http://localhost:8080/axis/services/MathService"/> > > > > > > > > > > > > location="http://localhost:8080/axis/services/MathService"/> > > > > > > > > and the deploy file is: > > !-- Use this file to deploy some handlers/chains and services --> > > > > > > > > > > > > > > > xmlns="http://xml.apache.org/axis/wsdd/" > > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> > > > > > > value="http://localhost:8080/axis/services/MathService"/> > > > > > > value="com.ai.services.MathServiceSoapBindingSkeleton"/> > > > > > > > > > > > > > > Any help would be GREATLY appreciated... > > Thanks, > > Alex > > >