You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Phani Balaji Madgula (JIRA)" <de...@geronimo.apache.org> on 2006/02/07 05:52:57 UTC

[jira] Created: (GERONIMO-1597) Extra '/'s in webservices URL

Extra '/'s in webservices URL
-----------------------------

         Key: GERONIMO-1597
         URL: http://issues.apache.org/jira/browse/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("http://hello.phani.org/", "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: 
java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/TestEJB/Hello/?wsdl
        at org.apache.axis.client.Service.initService (Service.java:250)
        at org.apache.axis.client.Service.<init(Service.java:165)
        at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198)
        at HelloClient.main(HelloClient.java :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="http://hello.phani.org/" xmlns:tns="http://hello.phani.org/" xmlns=" http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/"
  <types/
  <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="http://schemas.xmlsoap.org/soap/http" style="rpc"/
    <operation name="hello"
      <soap:operation soapAction=""/ 
      <input
        <soap:body use="literal" namespace="http://hello.phani.org/"/</input
      <output
        <soap:body use="literal" namespace="http://hello.phani.org/"/</output</operation</binding 
  <service name="HelloService"
    <port name="HelloPort" binding="tns:HelloBinding"
      <soap:address location=" http://localhost:8080/TestEJB/Hello"/</port</service</definitions


Thanks 
phani

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira