Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SOAP .UUE attachment - Need Help

Status
Not open for further replies.

HydKhan

Technical User
Jun 10, 2010
1
US
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
--------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top