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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  ?_process via URL

    Posted 07/25/03 07:38 PM


  • 2.  RE: ?_process via URL

    Posted 07/28/03 02:47 PM

    Hello.
    i’m using for loading non-XML documents
    Tamino Interactive Interface or TaminoNonXml.ocx
    module with TaminoLib.js library.
    My TSD:
    <?xml version='1.0' encoding='UTF-8'?>
    <xs:schema xmlns:xs=‘XML Schema
    xmlns:tsd=‘http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition’>
    xs:annotation
    xs:appinfo
    <tsd:schemaInfo name=‘DCMnonXMLSchema’>
    <tsd:collection name=‘DCMnonXML’/>
    <tsd:doctype name=‘DCMnonXML’>
    tsd:nonXML/
    </tsd:doctype>
    </tsd:schemaInfo>
    </xs:appinfo>
    </xs:annotation>
    </xs:schema>
    My function:
    function IS_LoadnonXMLObject()
    {
    //alert(“>>>function LoadnonXMLObject()”)

    LetterDateTime = new Date()
    LetterDateTimeYear = LetterDateTime.getFullYear()
    LetterDateTimemm = LetterDateTime.getMonth() + 1
    LetterDateTimedd = LetterDateTime.getDate()
    LetterDateTimehh = LetterDateTime.getHours()
    LetterDateTimeii = LetterDateTime.getMinutes()
    LetterDateTimess = LetterDateTime.getSeconds()

    if ( LetterDateTimemm < 10 ) LetterDateTimemm = “0” + LetterDateTimemm
    if ( LetterDateTimedd < 10 ) LetterDateTimedd = “0” + LetterDateTimedd
    if ( LetterDateTimehh < 10 ) LetterDateTimehh = “0” + LetterDateTimehh
    if ( LetterDateTimeii < 10 ) LetterDateTimeii = “0” + LetterDateTimeii
    if ( LetterDateTimess < 10 ) LetterDateTimess = “0” + LetterDateTimess

    LetterDateTime = LetterDateTimeYear + ‘.’
    +LetterDateTimemm + ‘.’
    +LetterDateTimedd + ‘-’
    +LetterDateTimehh + ‘:’
    +LetterDateTimeii + ‘:’
    +LetterDateTimess

    //alert(‘LetterDateTime=’+LetterDateTime)

    if (AppendURI==‘’)
    {}
    else
    {

    WorkText = nonXMLFullFileName.split(“\”)
    iw = WorkText.length - 1

    LetterFileName = WorkText[iw]

    // out = " " // replace this
    // add = “" // with this
    // temp = LetterFileName
    // alert(‘temp=’+temp)

    // while (temp.indexOf(’ ‘)>-1)
    // {
    // pos= temp.indexOf(’ ')
    // temp = “” + (temp.substring(0, pos)
    // + add
    // + temp.substring((pos + out.length), temp.length))
    // }

    // LetterFileName = temp
    // alert(‘LetterFileName=’+LetterFileName)

    LetterFileName = LoginName + '

    //// +PassWord + ‘'
    +LetterDateTimeYear
    +LetterDateTimemm
    +LetterDateTimedd + '

    +LetterDateTimehh
    +LetterDateTimeii
    +LetterDateTimess //+ ‘_’
    //// +LetterFileName

    // alert(‘LetterFileName=’+LetterFileName)
    // alert(‘CollectionName+DocTypeNamenonXML+LetterFileName=’+CollectionName
    // ++NamenonXML+’/‘
    // +DocTypeNamenonXML+’/'
    // +LetterFileName)

    nonXMLFullFileName = WorkText[0]

    for (var iw = 1; iw < WorkText.length; iw++)
    {
    nonXMLFullFileName = nonXMLFullFileName + ‘/’
    +WorkText[iw]
    // alert(‘iw+Word=’+iw+Word)
    }
    // alert(‘nonXMLFullFileName=’+nonXMLFullFileName)

    WorkText = nonXMLFullFileName.split(”.“)
    iw = WorkText.length - 1
    LetterFileExtension = WorkText[iw]
    LetterFileExtension = LetterFileExtension.toLowerCase()
    // alert(‘LetterFileExtension=’+LetterFileExtension)

    LetterFileName = LetterFileName
    +‘.’
    +LetterFileExtension
    // alert(‘LetterFileName=’+LetterFileName)
    AppendURI = LetterFileName
    // alert(‘AppendURI=’+AppendURI)

    // alert(‘>>>nonXMLObject.Initialize()’)
    lerr = nonXMLObject.Initialize()
    // alert(‘<<<nonXMLObject.Initialize()’)
    // alert(‘lerr=’+lerr)

    nonXMLObject.csDatabaseURL = BaseURL
    // alert(‘nonXMLObject.csDatabaseURL=’+nonXMLObject.csDatabaseURL)

    // application
    ContentType=‘’
    if (LetterFileExtension==application_doc ) {ContentType=‘application/msword’}
    if (LetterFileExtension==application_rtf ) {ContentType=‘application/msword’}
    if (LetterFileExtension==application_pdf ) {ContentType=‘application/pdf’ }
    if (LetterFileExtension==application_xml ) {ContentType=‘application/xml’ }
    if (LetterFileExtension==application_x_zip_compressed) {ContentType=‘application/x-zip-compressed’}
    // audio
    if (LetterFileExtension==audio_mp3 ) {ContentType=‘audio/mp3’ }
    if (LetterFileExtension==audio_wav ) {ContentType=‘audio/wav’ }
    // image
    if (LetterFileExtension==image_bmp ) {ContentType=‘image/bmp’ }
    if (LetterFileExtension==image_gif ) {ContentType=‘image/gif’ }
    if (LetterFileExtension==image_jpg ) {ContentType=‘image/jpg’ }
    if (LetterFileExtension==image_jpeg ) {ContentType=‘image/jpeg’ }
    if (LetterFileExtension==image_tif ) {ContentType=‘image/tiff’ }
    if (LetterFileExtension==image_tiff ) {ContentType=‘image/tiff’ }
    // message
    // model
    // multipart
    // text
    if (LetterFileExtension==text_htm ) {ContentType=‘text/htm’ }
    if (LetterFileExtension==text_html ) {ContentType=‘text/html’ }
    if (LetterFileExtension==text_plain ) {ContentType=‘text/plain’ }
    if (LetterFileExtension==text_xml ) {ContentType=‘text/xml’ }
    // video
    if (LetterFileExtension==video_avi ) {ContentType=‘video/avi’ }
    if (LetterFileExtension==video_mpeg ) {ContentType=‘video/mpeg’ }

    // if (ContentType==‘’ ) {ContentType=‘application/’+LetterFileExtension}
    if (ContentType==‘’ ) {ContentType=‘multipart/form-data’}
    // alert(‘ContentType=’+ContentType)

    // alert(‘>>>nonXMLObject.SetNonXmlWithFilename(’
    // +CollectionName
    // +NamenonXML+‘/’
    // +DocTypeNamenonXML+‘/’
    // +LetterFileName+‘,’
    // +nonXMLFullFileName+‘,’
    // +ContentType+‘)’
    // )

    try
    {
    // alert(‘try’)
    lDoc = nonXMLObject.SetNonXmlWithFilename(CollectionName
    +NamenonXML+‘/’
    +DocTypeNamenonXML+‘/’
    +LetterFileName,
    nonXMLFullFileName,
    ContentType)
    }
    catch(e)
    {
    alert(‘catch(e)’)
    }
    finally
    {
    // alert(‘finally’)
    }
    // alert(‘<<<nonXMLObject.SetNonXmlWithFilename(…)’)

    TaminoResult.Text = lDoc.xml
    // alert(‘TaminoResult.Text=’+TaminoResult.Text)
    }

    IS_LetterSend()

    //alert(”<<<function LoadnonXMLObject()")
    }

    The nonXMLFullFileName is global variable.


    #API-Management
    #webMethods
    #Tamino


  • 3.  RE: ?_process via URL

    Posted 08/01/03 05:15 PM

    First of all … Thank you !
    But one question:

    Where do I specify the Path of the
    non-xml Object (from the text-field)?
    The nonXMLFullFileName i guess, but this is only the filename-string.
    So, where is the nonXMLObject defined, or what
    is it?

    Thanks


    #API-Management
    #Tamino
    #webMethods