Hi community!
i have to create and pass a multipart/form-data mimestream through the pub.client:http service.
I am able to produce following mime string.
[i]
Message-ID: 1183093294.126.1520957381494.JavaMail.DEDCW28EAI201$@DEDCW28EAI201
MIME-Version: 1.0
Content-Type: multipart/form-data;
boundary=“----=_Part_125_1965686719.1520957381494”
------=_Part_125_1965686719.1520957381494
Content-Type: application/json
{
“id” : “00d75c67-21d8-43d8-a675-505173a9a170”,
“fields” : {
“DokumentartRgWare” : “GS”,
“Barcode” : “”,
“Lieferscheinnummer” : “”,
“RechnungsNr” : “”,
“Rechnungsdatum” : “06.10.2017”,
“Lieferantenname” : “”
}
}
------=_Part_125_1965686719.1520957381494–
[/i]
This contains the correct Content-Type header which is needed by the application server that is going to deal with the request.
Then i pass this string to the pub.client:http service.
Now the remote service fails with: “Unable to get boundary for multipart”
When i checked the HTTP Trace, i can see that IS is setting the Content-Type to “application/x-www-form-urlencoded”,
which explains the error message. It looks like pub.client:http does not take care of the mimestring headers and passes the complete mimestring (including headers) as body.
What do i have to do, to get
Content-Type: multipart/form-data;
boundary=“----=_Part_125_1965686719.1520957381494”
as a http request header?
Kind regards,
Martin
IS Version: 9.7
mime.txt (594 Bytes)
#Integration-Server-and-ESB#webMethods