# send flatfile was not received  via http

**URL:** <https://techcommunity.softwareag.com/t/send-flatfile-was-not-received-via-http/124831>\
**Category:** Feedback & ideas\
**Tags:** Discussions-on-this-Forum-System, New-User-Welcome-and-Introductions\
**Created:** [July 17, 2007, 3:36pm UTC](https://techcommunity.softwareag.com/t/send-flatfile-was-not-received-via-http/124831 "2007-07-17T15:36:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lakhsaaron](https://avatars.discourse-cdn.com/v4/letter/l/35a633/32.png) [@lakhsaaron](https://techcommunity.softwareag.com/u/lakhsaaron)\
**Post date:** [July 17, 2007, 3:36pm UTC](https://techcommunity.softwareag.com/t/send-flatfile-was-not-received-via-http/124831/1 "2007-07-17T15:36:57Z")

</div>

Hi,

```
    In first step i get he flat file using getfile method. Then post the flatfile to another service by client.http.

```

[URL=“[http://lochalhost:5100/invoke/flatfile/importdata](http://lochalhost:5100/invoke/flatfile/importdata)”]url: [http://lochalhost:5100/invoke/flatfile/importdata[/URL]](http://lochalhost:5100/invoke/flatfile/importdata%5B/URL%5D)

mehod: post  
loadAs: bytes  
for authentication i gave username and passworld.

content type i set as application/x–wmflatfile

```
              But in the invoked service the name have a flatfile data and value was null. i want to map the flatfile bytes to one vairable in the invoked service. please help. thank you.

```

---

<div class="post-metadata">

**Author:** ![arulchristhuraj\_alphonse](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@arulchristhuraj\_alphonse](https://techcommunity.softwareag.com/u/arulchristhuraj_alphonse)\
**Post date:** [July 17, 2007, 5:06pm UTC](https://techcommunity.softwareag.com/t/send-flatfile-was-not-received-via-http/124831/2 "2007-07-17T17:06:40Z")

</div>

Hi,  
  
1) create new variable under data/args/ (pub.client:http - Service In)  
2) map your flatfile string content to this variable.  
3) It will work.  
  
Thanks & Regards,  
ArulChristhuRaj. A

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [July 17, 2007, 9:40pm UTC](https://techcommunity.softwareag.com/t/send-flatfile-was-not-received-via-http/124831/3 "2007-07-17T21:40:23Z")

</div>

What is your invoked service input?? make sure it has node or ffdata(object) input.

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![lakhsaaron](https://avatars.discourse-cdn.com/v4/letter/l/35a633/32.png) [@lakhsaaron](https://techcommunity.softwareag.com/u/lakhsaaron)\
**Post date:** [July 18, 2007, 10:15am UTC](https://techcommunity.softwareag.com/t/send-flatfile-was-not-received-via-http/124831/4 "2007-07-18T10:15:23Z")

</div>

invoked service input in ffdata(object) .

so is it possible? to send the byte or stream object as input to other service using http?

---

<div class="post-metadata">

**Author:** ![lakhsaaron](https://avatars.discourse-cdn.com/v4/letter/l/35a633/32.png) [@lakhsaaron](https://techcommunity.softwareag.com/u/lakhsaaron)\
**Post date:** [July 18, 2007, 3:38pm UTC](https://techcommunity.softwareag.com/t/send-flatfile-was-not-received-via-http/124831/5 "2007-07-18T15:38:35Z")

</div>

Thanks arul.  
after converting bytes to string i mapped to the http. now it the variable comes in the invoked service.

> [@arulchristhuraj](#):
>
> Hi,
> 
> 1) create new variable under data/args/ (pub.client:http - Service In)  
> 2) map your flatfile string content to this variable.  
> 3) It will work.
> 
> Thanks & Regards,  
> ArulChristhuRaj. A
