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

HTTP Post Issue

  • 1.  HTTP Post Issue

    Posted Mon September 17, 2007 05:03 PM

    Hi all ,
    I have issue with HTTP POST , we are trying to post our file to a patner website.
    Here my process is …

    Patner website having two Directories namely /incoming , /outgoing here my process need to place files into
    /incoming directory…

    They Having the source for their page as follow …

    function PrintUploadForm(uri)
    {
    if (!stParamActiveX || !isIE || typeof(stATX)!=“object” || stATX.object==null)
    {
    document.write(“<FORM ENCTYPE="multipart/form-data" ACTION="”, uri, “" METHOD=POST>”);
    }
    else
    {
    document.write(“<FORM ENCTYPE="multipart/form-data"”);
    document.write(" onsubmit=‘ActiveXUpload(this,"", uri, "")’>");
    }


    function ActiveXUpload(uploadFrom, targetdir)
    {
    if (uploadFrom.File.value.length != 0)
    {
    status=ActiveXTransfer(true, uploadFrom.File.value, targetdir)
    }
    else
    {

    alert("Please enter a file to upload")
            status=true
    }
    if (status)
    {
    document.location=pathName + "?T"
    }
    return true
    

    Here webMethods Process:

    getfile --service
    createMimedata — wmservice
    addBodyPart — wmservice
    content ---- getfile output stream mapped to this.
    contentType —text/html; charset=UTF-8
    encoding ----bit-8
    multipart —no
    isEnvStream — yes
    getEnvolopeStream ----wmservice
    mimedata—mimedata

    Then
    HTTP —wmservice
    url ----https://yyyy.com
    method—post
    data/args/file ----- filename
    data/mimestream ----envStream
    auth/user --username
    auth/pass —password

    headers/Content-type—multipart/form;
    headers/boundary ---- “–=Part–123456789”
    I am getting Status is 200 and Status message is OK ,but on patner website file is not posting … Is I am doing
    correct way ?
    I appreciate your replys.


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: HTTP Post Issue

    Posted Wed September 19, 2007 07:55 PM

    no one to help this issue … Comman

    I appreciate your reply


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: HTTP Post Issue

    Posted Tue September 25, 2007 08:54 PM

    Do the people at the partner web site say that they see any traffic?


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: HTTP Post Issue

    Posted Tue September 25, 2007 09:02 PM

    traffic ? No …,

    I doubt but not sure . Do I need to by pass proxy ? If in that case why I am getting Status as OK .

    Rob , Is I am doing HTTP post parameters correct ? Because website having /incoming dir …

    I appreciate your reply.

    Raj


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: HTTP Post Issue

    Posted Tue September 25, 2007 09:51 PM

    Try the most simple case first. See if you can do any interaction with the partner site before posting the multi-part form.

    For the multi-part form, try an internal web server (maybe IS itself) to make sure you’re sending the right data. Then try to connect to the partner.


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: HTTP Post Issue

    Posted Tue September 25, 2007 10:05 PM

    Rob , Thanks for your time and suggestion .

    Raj


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 7.  RE: HTTP Post Issue

    Posted Mon October 08, 2007 11:37 PM

    Install any http tracing application and do some similar things in any application on the web. Analyse of those logs from tracing app will show You the proper use.


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 8.  RE: HTTP Post Issue

    Posted Tue October 09, 2007 05:36 PM

    Could you tell me which http tracing application should I use.

    Thanks ,

    Raj


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 9.  RE: HTTP Post Issue

    Posted Tue October 09, 2007 08:50 PM