IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Problems with Namespaces using TSaxObjectModel

  • 1.  Problems with Namespaces using TSaxObjectModel

    Posted Wed October 15, 2003 03:58 PM

    Hi,
    I’ve got an simple Document like

    <jl:ausgabe xmlns:jl=“http://corporate.de/jl”>
    jl:bezeichnungheute</jl:bezeichnung>
    jl:newsletterkeiner</jl:newsletter>
    </jl:ausgabe>

    and inserted this Document in an Tamino Database.
    After an query the Result was the following document:

    jl:ausgabe
    jl:bezeichnungheute</jl:bezeichnung>
    jl:newsletterkeiner</jl:newsletter>
    </jl:ausgabe>

    The tagnames are mentioned in full qualified manner. But the namespace declaration is ommitted. Could anybody tell me how to fix this? :frowning:

    Thx and Bye
    Dirk Kaspar


    #webMethods-Tamino-XML-Server-APIs
    #API-Management
    #webMethods


  • 2.  RE: Problems with Namespaces using TSaxObjectModel

    Posted Mon October 20, 2003 12:36 PM

    Hi Dirk,

    I tried this with Tamino v414 and I do not have this problem. The retrieved instance (using TII or internet explorer) always returns the document with the namespace declaration. In the a java program that uses TSAXObjectModel, I have a handler that implements/overrides the startPrefixMapping() method. This is invoked when retrieving the jl:ausgabe document and correctly has the namespace declaration for the jl: prefix.

    Could you provide more information on exactly where the problem occurs in your environment? E.g, which version of Tamino / API being used; how are you retrieving the document etc.

    Stuart Fyffe-Collins
    Software AG (UK) Ltd.


    #API-Management
    #webMethods-Tamino-XML-Server-APIs
    #webMethods


  • 3.  RE: Problems with Namespaces using TSaxObjectModel

    Posted Tue October 21, 2003 03:36 PM

    By any chance, were you using the Mozilla browser to display the results? Mozilla doesn’t show namespace declarations when displaying unstyled XML, but if you “view source” you’ll see that they’re there.


    #webMethods
    #webMethods-Tamino-XML-Server-APIs
    #API-Management