POST File over HTTP like Browser do it

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 !!

Kummer,

Pls see these old threads,hope it helps

[URL=“wmusers.com”]wmusers.com
[URL=“wmusers.com”]wmusers.com

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.

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

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

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

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

HTH,
RMG