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.  POST File over HTTP like Browser do it

    Posted Wed August 02, 2006 01:59 PM

    Hallo Masters,

    I’ve a Problem:
    I want to Post a File, a username and a password over HTTP to an external Partner.
    I tried to make a multipart mime message an give that to mimestream in the http service. But that doesnt work

    the html file that works:

    Untitled Document

    produces:

    -----------------------------7d6783b2088e
    Content-Disposition: form-data; name=“swpUsername”
    test
    -----------------------------7d6783b2088e
    Content-Disposition: form-data; name=“swpPassword”
    test
    -----------------------------7d6783b2088e
    Content-Disposition: form-data; name=“File”; filename=“d:\xx”
    Content-Type: text/plain
    METER_READING
    001_000000009200960208_000001219;01/22/1993;178.05;2;00:00;
    001_000000009200960208_000001219;01/22/1993;172.09;2;00:15;
    001_000000009200960208_000001219;01/22/1993;118.21;2;00:30;
    001_000000009200960208_000001219;01/22/1993;177.64;2;00:45;
    001_000000009200960208_000001219;01/22/1993;178.05;2;00:00;
    001_000000009200960208_000001219;01/22/1993;172.09;2;00:15;
    001_000000009200960208_000001219;01/22/1993;118.21;2;00:30;
    001_000000009200960208_000001219;01/22/1993;177.64;2;00:45;
    001_000000009200960208_000001219;01/22/1993;178.05;2;00:00;

    -----------------------------7d6783b2088e
    Content-Disposition: form-data; name=“submit”
    Submit Query
    -----------------------------7d6783b2088e–

    The Service produces that:

    Message-ID: 29355037.1154511314618.JavaMail.nets6h@seai002
    MIME-Version: 1.0
    Content-Type: multipart/mixed;
    boundary=“----=_Part_22_27804389.1154511314618”

    ------=_Part_22_27804389.1154511314618
    content-type: text/plain
    content-transfer-encoding: 8bit

    swpUsername=test
    ------=_Part_22_27804389.1154511314618
    content-type: text/plain
    content-transfer-encoding: 8bit

    swpPassword=test
    ------=_Part_22_27804389.1154511314618
    content-type: text/plain
    Content-Transfer-Encoding: 7bit

    METER_READING
    001_000000009200960208_000001219;01/22/1993;178.05;2;00:00;
    001_000000009200960208_000001219;01/22/1993;172.09;2;00:15;
    001_000000009200960208_000001219;01/22/1993;118.21;2;00:30;
    001_000000009200960208_000001219;01/22/1993;177.64;2;00:45;
    001_000000009200960208_000001219;01/22/1993;178.05;2;01:00;
    001_000000009200960208_000001219;01/22/1993;172.09;2;01:15;
    001_000000009200960208_000001219;01/22/1993;118.21;2;01:30;
    001_000000009200960208_000001219;01/22/1993;177.64;2;01:45;
    001_000000009200960208_000001219;01/22/1993;178.05;2;02:00;

    ------=_Part_22_27804389.1154511314618–

    I must post like the HTML Form Post
    has anyone an idea !?!?

    Please HELP !!


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


  • 2.  RE: POST File over HTTP like Browser do it

    Posted Wed August 02, 2006 02:52 PM


  • 3.  RE: POST File over HTTP like Browser do it

    Posted Thu September 28, 2006 09:48 PM

    Hi Kummer, I had the same problem than you. Check this thread, it helped me to solve the issue:

    [url]wmusers.com

    The best way to achive what you want, is creating the payload manually. Do not use MIME built-in services as they won’t do the job.

    Hope that helps.


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


  • 4.  RE: POST File over HTTP like Browser do it

    Posted Fri February 07, 2014 07:14 AM

    Hi,

    I am unable to open attached links now.
    Could you please let me know the step by step procedure how this is achieved.

    Thanks,

    KK


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


  • 5.  RE: POST File over HTTP like Browser do it

    Posted Fri February 07, 2014 10:38 AM

    That is the old wMusers forum site and could be that was not either migrated or removed in this site…

    What exact issue are you facing here…can you elaborate?

    HTH,
    RMG


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


  • 6.  RE: POST File over HTTP like Browser do it

    Posted Sat February 08, 2014 02:42 AM

    Hi RMG,

    I am also facing the similar issue while trying to post a flatfile to a web service from webMethods.
    Unable to post the data using pub.client:http service with multipart mime message as input.

    So how exactly do we need to post the file to a external web service URL.
    Do I need to send the data as a string input to pub.client:http service.??

    If yes , what is the format of the input data.

    Thanks,
    KK


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


  • 7.  RE: POST File over HTTP like Browser do it

    Posted Mon February 10, 2014 11:02 AM

    You may need send it as a stream data with proper content type application/x-wmflatfile

    HTH,
    RMG


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