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
Expand all | Collapse all

https for Flatfile

  • 1.  https for Flatfile

    Posted Mon August 27, 2007 06:45 PM

    Hi ,

    Is it possible to send a text file to remote server via HTTP? If yes , Is we need to setup TN profiles for that.

    Please let me know process to do this. I apprecuate your reply.

    Thanks,
    Raj


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


  • 2.  RE: https for Flatfile

    Posted Mon August 27, 2007 09:19 PM

    Yes, it is possible. No, you do not need to use TN.

    Refer to the information for pub.client:http in the Integration Server Built-In Services Reference document.


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


  • 3.  RE: https for Flatfile

    Posted Tue August 28, 2007 04:08 PM

    Hi Rob ,

    Thank you for your reply . There I can understand that we can process the text file but I scenario is pass the File name to http service which is in Local server . Here my quetion how to pass the File name to Http service .

    I think I need to use http with post method? correct me if I am wrong.

    Thanks,
    Raj


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


  • 4.  RE: https for Flatfile

    Posted Tue August 28, 2007 04:55 PM

    Yes, you can use an http post to pass a filename to an IS service.


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


  • 5.  RE: https for Flatfile

    Posted Tue August 28, 2007 05:10 PM

    Hi Rob ,

    I am getting forbidden Status message.

    Here you go with Inputs.

    url : https://yyyy.com
    method : post
    data / Sting : filename
    auth / user : username
    auth/ pass : password

    Out parameters :

    Date : Tue, 28 Aug 2007 15:29:01 GMT
    Server : Secureftp/4.5.1
    connectiontype: text/html;charset = UTF-8
    Status : 403
    Statusmessage : forbidden.

    I appreciate your reply .

    I tried manually with the user name and password , It’s working fine.

    Thanks ,

    Raj


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


  • 6.  RE: https for Flatfile

    Posted Tue August 28, 2007 05:28 PM

    Hi Rob ,

    I am getting now status is ok ., but getting

    SET-COOKIE: FDX=;PATH=/
    EXPIRES : Thu, 01 Jan 1970 00:00:00 GMT
    STATUS : 200
    STATUSMESSAGE : OK

    I appreciate your reply.

    Thanks ,

    Raj


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


  • 7.  RE: https for Flatfile

    Posted Tue August 28, 2007 06:29 PM

    Sounds like the post worked. Are you expecting something else as a reponses?


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


  • 8.  RE: https for Flatfile

    Posted Tue August 28, 2007 07:50 PM

    No , we are not expecting any responce … But It’s not posted to https://yyyy.com


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


  • 9.  RE: https for Flatfile

    Posted Tue August 28, 2007 09:07 PM

    Please provide the full details of your process, what you expect it to be doing and what is actually happening. Be as detailed and specific as possible. Doing this exchange a little bit at a time is time consuming.


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


  • 10.  RE: https for Flatfile

    Posted Tue August 28, 2007 09:22 PM

    Hi Rob ,

    Here my process…

    As I am using http service with method post and passing following values .

    url : https://yyyy.com
    method : post
    data / Sting : filename (this file name already using for ftp service )
    auth / user : username
    auth/ pass : password

    Out parameters :

    Date : Tue, 28 Aug 2007 15:29:01 GMT
    Server : Secureftp/4.5.1
    connectiontype: text/html;charset = UTF-8
    Status : 403
    Statusmessage : forbidden.

    Here My Questios.

    1. As https://yyyy.com having two dir on their server one is INCOMING And other is OUTGOING

    here http service should put the file into INCOMING dir ., for this we need to pass url as [URL=“https://yyyy.com/INCOMING”]https://yyyy.com/INCOMING[/URL] ?

    1. Where I need to pass the Filename ? is it to String ?

    I already tested credentials on server with USERNAME And PASSWORD , which working fine
    I appreciate your reply


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


  • 11.  RE: https for Flatfile

    Posted Tue August 28, 2007 11:01 PM

    You’re describing the specifics of your interaction with the HTTP service, which is good–but you haven’t explicitly described the overall goal you’re trying to achieve. From what I can tell, it looks like you’re trying to send the contents of a file that is on the same machine as your IS to an HTTP server.

    1. Whether you need to specify a complete URL would be a question for the system you are connecting to. My guess would be, yes, you need to specify the complete URL.

    2. If you’re trying to post the contents of a file, you’ll need to do a couple of steps to get that file from disk and pass it (the stream or the bytes) to the http service. The http service won’t do that for you.

    Read the docs for getFile. That may help. You’ll also want to read the docs for setting the content-type header in the http service call (use text/plain).


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


  • 12.  RE: https for Flatfile

    Posted Wed August 29, 2007 09:34 PM

    Hi Rob ,
    Sorry for late reply …
    Here my process goes
    In my process we are converting the flat files to edi then generate the .pgp file .
    I have two scenarios

    1)After generating .edi files process generates the .pgp files and then ftp’ing this file to remote server.(working fine)
    Even we have service to back up these files(.txt , .edi , .pgp files) to our local server .(working fine)
    2) Afetr generating the .edi files then HTTP The files to remote server(HAVIING PROBLEM)
    Even for this we have backup service (Working fine).
    My Considaration are …

    1. How to pass the File name to HTTP Service (we already using this filename in back up service).
    2. How to pass URL …, Should we need to pass https://yyyy.com OR [URL=“https://yyyy.com/incoming”]https://yyyy.com/incoming[/URL] (As we have two directories at re
      mote server)
      3)You suggest me to use getfile service which gives body as output (here I need to pass file name).If getfile service use for
      out of box data then how to pass the filename here.?
      I appreciate your reply.
      Thanks ,
      Raj

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


  • 13.  RE: https for Flatfile

    Posted Wed August 29, 2007 11:08 PM

    “2) Afetr generating the .edi files then HTTP The files to remote server(HAVIING PROBLEM)”

    If you need to pass the content AND a filename, then you’ll need coordinate with the receiving side on how to do that. There are a couple of ways that come to mind. If you only need to pass the content, then that is a bit easier.

    I assume the folks working with the receiving HTTP server have provided some guidance for how to send the file?


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


  • 14.  RE: https for Flatfile

    Posted Thu August 30, 2007 04:03 PM