HI All,
I am trying to post MIME Invoice CXML Message to Ariba through http post as MIME Stream but i am always getting the error
“The document could not be parsed: Content is not allowed in prolog. (line 1, column 1) [ANCLS-681544]”
Please find below the MIME Message i am trying to send.
----=_Part_27_32492751.1233733405413
content-type: text/xml
Content-ID: 1233733405413_747785793@10.10.62.199
Content-Disposition: form-data; name=“randomValue1”
CXML CopyRequest Message here…
----=_Part_27_32492751.1233733405413
content-type: text/xml
Content-ID: 1233733405413_747785793@10.10.62.199
Content-Disposition: form-data; name=“fileContent”; filename=“MIMEPart2”
CXML invoice message here
----=_Part_27_32492751.1233733405413–
The following are the values i am passing to http input parameters
url = [url]https://service.ariba.com/service/transaction/cxml.asp[/url]
method = post
loadas = stream
input/mimeStream = mimeStream of the above mentioned message
auth/type = Basic
headers/Content-Type = multipart/formdata;–=_Part_27_32492751.1233733405413
Please find attached the encoded MIME invoice message i am tryting to post to Ariba,The response message i am getting from Ariba and the package which contains the webMethods code.
Please let me know if any one has posted MIME Stream through http post successfully and how to resolve this.
Thanks,
Joh
AribaTest.zip (9.26 KB)
MIMEInvoiceMsg_webMethodsSentToAriba.xml (5.41 KB)
responseMessageFromAriba.xml (412 Bytes)