axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Irazabal, Alex" <Alex.Iraza...@aig.com>
Subject RE: newbie question
Date Mon, 21 Jul 2003 12:15:43 GMT
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" <Alex.Irazabal@aig.com>
To: <axis-user@ws.apache.org>
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:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <wsdl:definitions
> 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/">
>
> <wsdl:message name="addResponse">
>
> <wsdl:part name="addReturn" type="xsd:double"/>
>
> </wsdl:message>
>
> <wsdl:message name="addRequest">
>
> <wsdl:part name="in0" type="xsd:double"/>
>
> <wsdl:part name="in1" type="xsd:double"/>
>
> </wsdl:message>
>
> <wsdl:portType name="MathService">
>
> <wsdl:operation name="add" parameterOrder="in0 in1">
>
> <wsdl:input name="addRequest" message="impl:addRequest"/>
>
> <wsdl:output name="addResponse" message="impl:addResponse"/>
>
> </wsdl:operation>
>
> </wsdl:portType>
>
> <wsdl:binding name="MathServiceSoapBinding" type="impl:MathService">
>
> <wsdlsoap:binding style="rpc"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
> <wsdl:operation name="add">
>
> <wsdlsoap:operation soapAction=""/>
>
> <wsdl:input name="addRequest">
>
> <wsdlsoap:body use="encoded"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://localhost:8080/axis/services/MathService"/>
>
> </wsdl:input>
>
> <wsdl:output name="addResponse">
>
> <wsdlsoap:body use="encoded"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://localhost:8080/axis/services/MathService"/>
>
> </wsdl:output>
>
> </wsdl:operation>
>
> </wsdl:binding>
>
> <wsdl:service name="MathServiceService">
>
> <wsdl:port name="MathService" binding="impl:MathServiceSoapBinding">
>
> <wsdlsoap:address
> location="http://localhost:8080/axis/services/MathService"/>
>
> </wsdl:port>
>
> </wsdl:service>
>
> </wsdl:definitions>
>
> and the deploy file is:
>
> !-- Use this file to deploy some handlers/chains and services -->
>
> <!-- Two ways to do this: -->
>
> <!-- java org.apache.axis.client.AdminClient deploy.wsdd -->
>
> <!-- after the axis server is running -->
>
> <!-- or -->
>
> <!-- java org.apache.axis.utils.Admin client|server deploy.wsdd -->
>
> <!-- from the same directory that the Axis engine runs -->
>
> <deployment
>
> xmlns="http://xml.apache.org/axis/wsdd/"
>
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>
> <!-- Services from MathServiceService WSDL service -->
>
> <service name="MathService" provider="java:RPC" style="rpc" use="encoded">
>
> <parameter name="wsdlTargetNamespace"
> value="http://localhost:8080/axis/services/MathService"/>
>
> <parameter name="wsdlServiceElement" value="MathServiceService"/>
>
> <parameter name="wsdlServicePort" value="MathService"/>
>
> <parameter name="className"
> value="com.ai.services.MathServiceSoapBindingSkeleton"/>
>
> <parameter name="wsdlPortType" value="MathService"/>
>
> <parameter name="allowedMethods" value="*"/>
>
> <parameter name="scope" value="Session"/>
>
> </service>
>
> </deployment>
>
>
>
> Any help would be GREATLY appreciated...
>
> Thanks,
>
> Alex
>
>
>

Mime
View raw message