Hi, I'm having my first experiences in PI development using version 7.3.
The scenario I'm trying to implement is Proxy to HTTP (synchronous). The particularity is that the HTTP request must be multipart/form-data, sending three parameters as parts, one of which is a file, which filename and content are to be sent from the ERP. The request sent should end up being something like this:
POST http://address.com/service.do HTTP/1.1
Content-Type: multipart/form-data; boundary=---------------------------7dc1dc2920672
(other header fields)
-----------------------------7dc1dc2920672
Content-Disposition: form-data; name="user"
XXXXXXXXXXX
-----------------------------7dc1dc2920672
Content-Disposition: form-data; name="password"
XXXXXXXXXXX
-----------------------------7dc1dc2920672
Content-Disposition: form-data; name="file"; filename="ERP_FILENAME"
Content-Type: text/plain
ERP_CONTENT
-----------------------------7dc1dc2920672--
ERP_FILENAME and ERP_CONTENT are two strings to be received from SAP ERP when calling the proxy.
I've been searching documentation, and I came to know the older Plain HTTP adapter doesn't support multipart but the HTTP_AAE (Java) one does, so I'm trying to use it. However I find very little documentation on it. On SAP Help, the receiver configuration part is missing: http://help.sap.com/saphelp_nw73/helpdata/en/e4/a451e997364386a1f6f090c9ea17b6/frameset.htm
Besides, I have confusion in defining the message types and mappings. Since the service returns XML files, I have no problem with that part. I generated XSD files from them, and imported them in ESR, so I can map the response messages. But I'm puzzled on how to define the request message and its subsequent mapping. Is some custom Java coding needed to achieve this?
Any help will be appreciated.
Regards