geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phani Balaji Madgula (JIRA)" <>
Subject [jira] Created: (GERONIMO-1597) Extra '/'s in webservices URL
Date Tue, 07 Feb 2006 04:52:57 GMT
Extra '/'s in webservices URL

         Key: GERONIMO-1597
     Project: Geronimo
        Type: Bug
  Components: webservices  
    Versions: 1.0    
 Environment: All supported Platforms
    Reporter: Phani Balaji Madgula

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: http://localhost:8080/TestEJB/Hello/?wsdl
        at org.apache.axis.client.Service.initService (
        at org.apache.axis.client.Service.<init(
        at org.apache.axis.client.ServiceFactory.createService(
        at HelloClient.main( :27)

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="" style="rpc"/
    <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=" http://localhost:8080/TestEJB/Hello"/</port</service</definitions


This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message