webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

TNS prefix in docTypes generated by the Web Service Descriptor wizard

  • 1.  TNS prefix in docTypes generated by the Web Service Descriptor wizard

    Posted Thu May 22, 2014 02:29 PM

    The docTypes generated by the Web Service Descriptor wizard of Designer/Developer for a consumer webservice includes the “tns” prefix (this namespace) in the fieldnames.

    
    //Example of docType generated in IS:
    docTypeRef_tns_MyDoc
    tns:Key
    tns:no
    tns:description
    tns:status

    A) If I try to reuse this special docType in other provider webservices consumed by CAF it doesn’t work…
    B) Does not work either as part of another publishable docType at Broker: no fields generated in Broker:

    
    // the doc reference to docTypeRef_tns_MyDoc has no fields in Broker
    anotherDocType {
    struct { 
    } mydoc; 
    }

    No way to avoid this prefix by the Wizard?

    Thanks.


    #soa
    #API-Management
    #webMethods


  • 2.  RE: TNS prefix in docTypes generated by the Web Service Descriptor wizard

    Posted Thu May 22, 2014 06:21 PM

    Instead of putting complex structure into WS interface, I think it’s better practice to hide any business XML structure from it. So, just use a String type parameter in the WS interface.
    you define whatever xml structure separately in your IS and avoid any NS issue with WS.
    Just my two cents. HTH,


    #soa
    #API-Management
    #webMethods


  • 3.  RE: TNS prefix in docTypes generated by the Web Service Descriptor wizard

    Posted Fri May 23, 2014 03:06 AM

    @Alejandro.

    You can remove the tns namespace from your WSDL file by re-writing the WSDL file and then you can create a WS Consumer.

    If possible share your WSDL file.


    #API-Management
    #soa
    #webMethods