IBM Support

PM20338: <service-interface> element not added to <service-ref> if wsdl is in nested folder

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environemnt:
    
    Rational application developer 7.5.5.1
    Portal 6.1
    JAX-RPC WebServices
    Windows
    
    Problem description and statement
    
    When creating a Web Service Reference from a wsdl that is
    located in a nested subfolder in the service provider project,
    the wsdl is not copied into the service client project and the
    ?service-interface? element is not added to ?service-ref? in the
    web.xml file.
    
    Reproduction steps:
    1. Create a new Dynamic Web project 2.5 in EAR 1.4 targeting
    Portal 6.1 Stub (ServiceProvider)
    
    2. Place a WSDL into a subfolder such as:
    
    WEB-INF\wsdl\sub1\sub2\sub3\Hello.wsdl
    
    3. Generate a Top-down Java Bean Skeleton
    
    4. Observe that the wizard has made a copy of the wsdl in
    WEB-INF\wsdl\Hello.wsdl
    
    5. Rename the original wsdl
    
    WEB-INF\wsdl\sub1\sub2\sub3\Hello.wsdl
    
    WEB-INF\wsdl\sub1\sub2\sub3\Hello.wsdl.org
    
    6. Move the copied wsdl back into the nested directory.
    
    WEB-INF\wsdl\Hello.wsdl -?
    WEB-INF\wsdl\sub1\sub2\sub3\Hello.wsdl
    
    7. Change the wsdl reference in webservices.xml so that it
    points at the original wsdl location, with relative path:
    
    
    ?wsdl-file?WEB-INF/wsdl/sub1/sub2/sub3/Hello.wsdl?/wsdl-file?
    
    8. Create a new Dynamic Web project 2.5 in EAR 1.4 targeting
    Portal 6.1 Stub (ServiceClient)
    
    9. Try to add a service reference to Hello:
    
    Results:
    
    in Web.xml the service ref is added assuming that the wsdl has
    been copied to:
    
    WEB-INF/wsdl/Hello.wsdl
    
        ?service-ref?
            ?description??/description?
    
    ?service-ref-name?service/HelloService?/service-ref-name?
            ?wsdl-file?WEB-INF/wsdl/Hello.wsdl?/wsdl-file?
            ?service-qname xmlns:prefix='http://directory1'?
                prefix:HelloService
            ?/service-qname?
        ?/service-ref?
    
    However the wsdl was not copied into the client project and the
    ?service-interface? element is
    not added to the web.xml and the following validation error
    occurs:
    
    
    
    
    The value of the ?service-interface? element is not
    
    specified web.xml ServiceClient/WebContent/WEB-INF Service
    reference:
    service/HelloService Web 2.5 Problem
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Web Service tooling was returning a wrong value from their
    API in Rational Application Developer.
    

Problem conclusion

  • WebService tooling fixed their API. Java EE tooling fixed
    the dd entry created for a wsdl file in Rational Application
    Developer v7.5.5.2.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM20338

  • Reported component name

    SW ARCHITECT WI

  • Reported component ID

    5724I7001

  • Reported release

    755

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-08-11

  • Closed date

    2010-10-13

  • Last modified date

    2010-10-13

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    SW ARCHITECT WI

  • Fixed component ID

    5724I7001

Applicable component levels

  • R755 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYKBQ","label":"Rational Software Architect Designer for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"755","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS4JCV","label":"Rational Software Architect for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"755","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}}]

Document Information

Modified date:
13 October 2010