https for Flatfile

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

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.

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

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

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

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

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

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

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.

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

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).

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

“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?

HI Rob ,

Thanks for your reply .