geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phani Madgula <>
Subject WEBSERVICES problem
Date Mon, 06 Feb 2006 04:50:37 GMT

I have deployed a WEBSERVICE implemented using an EJB, and facing a problem
while accessing through Dynamic Proxy client.
The client is as follows.

        String urlstr   =  "http://localhost:8080/TestEJB/Hello?wsdl";

         String argument =  "phani";

        System.out.println("Contacting webservice at " + urlstr);

        URL url =  new URL(urlstr);

        QName qname = new QName("", "HelloService");

        ServiceFactory factory = ServiceFactory.newInstance();
        Service        service = factory.createService(url, qname);

        Hello          hello   = (Hello) service.getPort(Hello.class);

        System.out.println("hello.hello(" + argument + ")");
        System.out.println("output:" + hello.hello(argument));

The error is

Contacting webservice at http://localhost:8080/TestEJB/Hello?wsdl
Exception in thread "main" javax.xml.rpc.ServiceException: Error processing
WSDL document: Server returned HTTP response code: 500 for URL:
        at org.apache.axis.client.Service.initService(
        at org.apache.axis.client.Service.<init>(
        at org.apache.axis.client.ServiceFactory.createService(
        at HelloClient.main(

If we can observe the error trace, a '/' is getting appended for the URL "
http://localhost:8080/TestEJB/Hello" and making it "
http://localhost:8080/TestEJB/Hello/?wsdl". It is not happening for
WEBSERVICE implemented using a servlet.

The WSDL is as follows.

<?xml version="1.0" encoding="UTF-8"?>

<definitions name="HelloService" targetNamespace=""
xmlns:tns="" xmlns=""
xmlns:xsd="" xmlns:soap="">
  <message name="Hello_hello">
    <part name="String_1" type="xsd:string"/></message>
  <message name="Hello_helloResponse">
    <part name="result" type="xsd:string"/></message>
  <portType name="Hello">
    <operation name="hello" parameterOrder="String_1">
      <input message="tns:Hello_hello"/>
      <output message="tns:Hello_helloResponse"/></operation></portType>
  <binding name="HelloBinding" type="tns:Hello">
    <soap:binding transport=""
    <operation name="hello">
      <soap:operation soapAction=""/>
        <soap:body use="literal" namespace=""/></input>
        <soap:body use="literal" namespace=""/></output></operation></binding>
  <service name="HelloService">
    <port name="HelloPort" binding="tns:HelloBinding">
      <soap:address location="

Why is an extra '/' is getting added ?

Any issues?



View raw message