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.

 View Only
  • 1.  Audio filetypes

    Posted Sun January 04, 2004 12:08 PM

    Hello everybody

    This is a question regarding nonXML.

    I have both pictures and sound stored as nonXML. I can retrieve the pictures, but
    I can’t retrieve the soundfiles!

    The soundfiles are of filetype: .wav (windows media audio)

    Doesn’t Tamino support this filetype?

    When I try to retrieve them, Tamino returns the following error:

    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


    --------------------------------------------------------------------------------

    Invalid at the top level of the document. Error processing resource ‘http://xml.id.cbs.dk/tamino/bitten/intCol/soundFile/@1’. Line 1, Position 1

    C

    I hope someone will kindly answer this question!


    Thank you in advance

    Bitten


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: Audio filetypes

    Posted Mon January 05, 2004 08:30 AM

    Hi Bitten,
    Yes Tamino as such support any filetype as nonXML.
    Which tool are you trying to use to display (or rather hear;-) the .wav from ?
    - and does this tool know that the @1 is of type wav ?
    Perhaps you should try to store the wav file in tamino by (full) name.
    Finn


    #API-Management
    #Tamino
    #webMethods


  • 3.  RE: Audio filetypes

    Posted Mon January 05, 2004 02:40 PM

    Hi Finn

    I tried to load the file in Tamino Interactive Interface with succes.

    The problem is that the insertion goes wrong. Perhaps you can help me rewrite my file?

    It goes like this:



    Gem lyd





    Gem en lyd



    V


    #webMethods
    #API-Management
    #Tamino


  • 4.  RE: Audio filetypes

    Posted Mon January 05, 2004 03:37 PM

    Hi Bitten,
    The trick is to use the HTTP PUT instead of POST.
    You’ll then have to specify the document name in the url (in this case “test.wav”)
    and then change the method to PUT
    Finn
    PS this is not so elegant, but I’m sure you can easily change your script to add the filename from the “browse” window to the URL.
    ----


    Gem lyd





    Gem en lyd



    V


    #API-Management
    #webMethods
    #Tamino


  • 5.  RE: Audio filetypes

    Posted Mon January 05, 2004 03:56 PM

    OOPS I was a bit too fast here.
    This doesn’t solve the issue.
    The data stored doesn’t contain the correct info.
    Perhaps somebody else might help here.
    I’m no html guru.
    Finn


    #Tamino
    #webMethods
    #API-Management


  • 6.  RE: Audio filetypes

    Posted Mon January 05, 2004 04:22 PM

    Hi Bitten,
    Just found a workaround for loading nonxml!
    If you use the Interactive Interface “Load function” tab.
    The specify the dbname/collection/doctype
    in my case:
    http://localhost/tamino/exv4/nonxml/pictures
    in “collection”-field you then specify the name that you want the file to have in Tamino
    test.wav
    and just browse your way to the file you want to load.
    - and press “load”
    Finn


    #webMethods
    #API-Management
    #Tamino


  • 7.  RE: Audio filetypes

    Posted Mon January 05, 2004 06:47 PM

    Hi Finn

    I thank you very much for a very quick answer.

    I’m making a homepage, where people should be able to update without having to know anything about XML or Tamino, that’s why I can’t use the interactive interface for this project.

    Actually, I wan’t to do the same in my script as the load function in Interactive interface.
    The most programming on my homepage is ASP.

    Maybe I can do something like this in ASP instead?

    For example:

    sti=“C:\Inetpub\wwwroot\billeder\skaerm.wav”

    Set objXMLHTTP = Server.CreateObject(“Microsoft.XMLHTTP”)
    objXMLHTTP.open “PUT”, “http://xml.id.cbs.dk/tamino/bitten/intCol/soundFile”, false
    objXMLHTTP.setRequestHeader “Content-Type”,“multipart/form-data;”
    objXMLHTTP.send( “_process=” & sti)

    But this is no good!

    Can you help me?

    Bitten


    #API-Management
    #Tamino
    #webMethods


  • 8.  RE: Audio filetypes

    Posted Tue January 06, 2004 09:16 AM

    Hi Bitten,
    This on works !!!
    I had some of my html-competent colleges modify it a bit and now it works (also with POST!)
    You will still need to do some tricks regarding the URL addition of the filename.
    Finn
    PS We discovered that for some strange IE-reason we had to use a new browserwindow to retrieve the document by name afterwards.
    ----


    Gem lyd




    Gem en lyd



    V


    #Tamino
    #webMethods
    #API-Management