You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ji...@apache.org on 2004/04/03 11:47:53 UTC

[jira] Closed: (AXIS-1282) Trim whitespace when reading wsdl file location from wsdd

Message:

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Sat, 3 Apr 2004 1:46 AM

Fixed.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1282

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1282
    Summary: Trim whitespace when reading wsdl file location from wsdd
       Type: Bug

     Status: Closed
   Priority: Minor
 Resolution: FIXED

    Project: Axis
 Components: 
             Deployment / Registries
   Versions:
             current (nightly)

   Assignee: 
   Reporter: Sam Meder

    Created: Fri, 2 Apr 2004 3:24 PM
    Updated: Sat, 3 Apr 2004 1:46 AM

Description:
I ran into this the other day. I deployed a new service and added the wsdlFile element in the following way:

  <wsdlFile>
         share/schema/tests/interop/notification_consumer_service.wsdl
  </wsdlFile>

which caused the SOAPService handler to throw a axis fault, which my client, the operation just having a input never saw before existing. Took me while to figure out that you can't have whitespace in there. I think it would be a good idea to add a trim() when readin this value. Ie change 

         Element wsdlElem = getChildElement(e, ELEM_WSDD_WSDLFILE);
        if (wsdlElem != null) {
            String fileName = XMLUtils.getChildCharacterData(wsdlElem);
            desc.setWSDLFile(fileName);
        }

to

        Element wsdlElem = getChildElement(e, ELEM_WSDD_WSDLFILE);
        if (wsdlElem != null) {
            String fileName = XMLUtils.getChildCharacterData(wsdlElem);
            fileName = fileName.trim();
            desc.setWSDLFile(fileName);
        }

in WSDDService.java. 

/Sam


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira