Iam trying to send a request with attachment in web service and getting SUCCESS response but not receiving attachment.
Here is my code :
myHTTP.SetRequestHeader "Content-Type", "application/octet-stream"
'myHTTP.SetRequestHeader "Content-Type", "content/unknown"
myHTTP.SetRequestHeader "content-disposition","attachment;filename=C:\filexxx.uue"
myHTTP.SetRequestHeader "Content-Transfer-Encoding", "bin.base64"
myHTTP.SetRequestHeader "Content-Length", Len(myDom.XML)
myHTTP.setRequestHeader "SOAPaction","urn:" & Trim(txtSoapHeader)
myHTTP.Send myDom.XML
RESPONSE:SUCCEEDED
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>
SOAP-ENV:Server</faultcode>
<faultstring>
RUNTIME0037: Wrong document type</faultstring>
<detail>
<![CDATA[
Properties
--------------------------
Content-Type: text/html;charset=utf-8
Document
--------------------------
Here is my code :
myHTTP.SetRequestHeader "Content-Type", "application/octet-stream"
'myHTTP.SetRequestHeader "Content-Type", "content/unknown"
myHTTP.SetRequestHeader "content-disposition","attachment;filename=C:\filexxx.uue"
myHTTP.SetRequestHeader "Content-Transfer-Encoding", "bin.base64"
myHTTP.SetRequestHeader "Content-Length", Len(myDom.XML)
myHTTP.setRequestHeader "SOAPaction","urn:" & Trim(txtSoapHeader)
myHTTP.Send myDom.XML
RESPONSE:SUCCEEDED
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>
SOAP-ENV:Server</faultcode>
<faultstring>
RUNTIME0037: Wrong document type</faultstring>
<detail>
<![CDATA[
Properties
--------------------------
Content-Type: text/html;charset=utf-8
Document
--------------------------