Hi all ,
I have issue with HTTP POST , we are trying to post our file to a patner website.
Here my process is …
Patner website having two Directories namely /incoming , /outgoing here my process need to place files into
/incoming directory…
They Having the source for their page as follow …
function PrintUploadForm(uri)
{
if (!stParamActiveX || !isIE || typeof(stATX)!=“object” || stATX.object==null)
{
document.write(“<FORM ENCTYPE="multipart/form-data" ACTION="”, uri, “" METHOD=POST>”);
}
else
{
document.write(“<FORM ENCTYPE="multipart/form-data"”);
document.write(" onsubmit=‘ActiveXUpload(this,"", uri, "")’>");
}
function ActiveXUpload(uploadFrom, targetdir)
{
if (uploadFrom.File.value.length != 0)
{
status=ActiveXTransfer(true, uploadFrom.File.value, targetdir)
}
else
{
status=true
}
if (status)
{
document.location=pathName + "?T"
}
return true
Here webMethods Process:
getfile --service
createMimedata — wmservice
addBodyPart — wmservice
content ---- getfile output stream mapped to this.
contentType —text/html; charset=UTF-8
encoding ----bit-8
multipart —no
isEnvStream — yes
getEnvolopeStream ----wmservice
mimedata—mimedata
Then
HTTP —wmservice
url ----https://yyyy.com
method—post
data/args/file ----- filename
data/mimestream ----envStream
auth/user --username
auth/pass —password
headers/Content-type—multipart/form;
headers/boundary ---- “–=Part–123456789”
I am getting Status is 200 and Status message is OK ,but on patner website file is not posting … Is I am doing
correct way ?
I appreciate your replys.