Hi,
I'm using axis-1.1 on tomcat-4.1.27 and jdk-1.4.1_02.
I've created a java class that looks something like this:
public class TestWebService
{
public String[] processDocument(String bod, String sessionId) throws ClientException
{
System.out.println("In processDocument");
{
System.out.println("In processDocument");
try
{
System.out.println("got soap element "+bod);
}
catch(Exception e)
{
e.printStackTrace();
throw new ClientException(e);
}
return new String[]{"",""};
}
{
System.out.println("got soap element "+bod);
}
catch(Exception e)
{
e.printStackTrace();
throw new ClientException(e);
}
return new String[]{"",""};
}
private boolean putMessageOnBus(String soapMsg, String sessionId, String requestId,String url, Integer wsId) throws RemoteException, ClientException
{
return true;
}
{
return true;
}
public String getResponse( String requestId ) throws ClientException
{
System.out.println("In getResponse");
try
{
System.out.println("got requestId "+requestId);
}
catch(Exception e)
{
e.printStackTrace();
throw new ClientException(e);
}
return "soap";
}
{
System.out.println("In getResponse");
try
{
System.out.println("got requestId "+requestId);
}
catch(Exception e)
{
e.printStackTrace();
throw new ClientException(e);
}
return "soap";
}
}
and this is what the deploy.wsdd file looks like:
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="TestWebService" style="document">
<parameter name="className" value="webservice.TestWebService"/>
<parameter name="allowedMethods" value="*"/>
</service>
</deployment>
<parameter name="className" value="webservice.TestWebService"/>
<parameter name="allowedMethods" value="*"/>
</service>
</deployment>
When I deploy the class using this deploy.wsdd file, it gets deployed fine i.e. I can see it in the axis servlet page. Also, when I enter the endpoint in the address bar or the browser, it shows me that there is an axis web service deployed at that endpoint. But, when I click on the wsdl link, it gives a "HTTP 500 internal server error".
I have a few other web services deployed in axis and they are working fine. I wsdl link gives the wsdl for the other web services.
Has anybody faced this kind of error before?
Any help will be appreciated.
Thanks,
Terance.
Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands ASAP.
