Hi, Thanks for your reply. I am trying to send the document data(file binary data) with webservice request. from your response i am assuming that first we need to store the file data in the server at one location then we need to call the require service... am i understood right?
I tested the webservice using the SOAP UI tool. In the Raw xml file showing the SOAP request as SOAP UI Raw Request:: POST http://13.61.28.92/webservices/PrinterService/print/SendDocument'+'\r\n'+ '------=_Part_72_6095202.1383916239837'+'\r\n'+ 'Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"'+'\r\n'+ 'Content-Transfer-Encoding: 8bit'+'\r\n'+ 'Content-ID: <rootp...@soapui.org>'+'\r\n'+ '\r\n'+ '<?xml version="1.0" encoding="utf-16"?>\r\n'+ '<soap:Envelope xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:soap="http://www.w3.org/2003/05/soap-envelope" \r\n'+ 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" \r\n'+ 'xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" \r\n'+ 'xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" \r\n'+ 'xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">\r\n'+ ' <env:Header xmlns:env="http://www.w3.org/2003/05/soap-envelope">\r\n'+ ' <wsa:Action>http://schemas.microsoft.com/windows/2006/08/wdp/print/SendDocument</wsa:Action>\r\n'+ ' <wsa:MessageID>urn:uuid:d2b6fed1-039f-4720-965e-52efc8d6f759</wsa:MessageID>\r\n'+ ' <wsa:ReplyTo>\r\n'+ ' <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>\r\n'+ ' </wsa:ReplyTo>\r\n'+ ' <wsa:To>http://13.61.28.92/webservices/PrinterService/print/SendDocument</wsa:To>\r\n'+ ' </env:Header>\r\n'+ ' <soap:Body>\r\n'+ ' <SendDocumentRequest xmlns="http://schemas.microsoft.com/windows/2006/08/wdp/print">\r\n'+ ' <JobId>95</JobId>\r\n'+ ' <DocumentDescription>\r\n'+ ' <DocumentId>1</DocumentId>\r\n'+ ' <Compression>None</Compression>\r\n'+ ' <Format>application/octet-stream</Format>\r\n'+ ' <DocumentName>TestTextDoc.txt</DocumentName>\r\n'+ ' </DocumentDescription>\r\n'+ ' <LastDocument>true</LastDocument>\r\n'+ ' <DocumentData>' + ' <xop:include href="cid:http://www.soapui.org/_Part_72_6095202.1383916239837"</xop:include>'+ '</DocumentData>\r\n'+ ' </SendDocumentRequest>\r\n'+ ' </soap:Body>\r\n'+ '</soap:Envelope>'+'\r\n'+ '------=_Part_72_6095202.1383916239837'+'\r\n'+ 'Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"'+'\r\n'+ 'Content-Transfer-Encoding: 8bit'+'\r\n'+ 'Content-ID: <rootp...@soapui.org/6095202.1383916239837>'+'\r\n'+ loadfile+'\r\n'+ '------=_Part_72_6095202.1383916239837--'; the "loadfile" is the Binary encoded data whichsoap UI is using to call the same service. i implemented as it is in Flex in flex like below.. Flex side Request:: 'POST http://13.61.9.147/webservices/wsd/PrinterService/01 HTTP/1.1'+'\n'+ 'Accept: application/*'+'\n'+ 'Content-Type: multipart/form-data;' +'\n'+ 'boundary=----------0.Ij5ae0ae0KM7GI3KM7ei4cH2ei4gL6'+'\n'+ 'User-Agent: Shockwave Flash'+'\n'+ 'Host: 13.61.9.147'+'\n'+ 'Content-Length: 266859'+'\n'+ 'Connection: Keep-Alive'+'\n'+ 'Cache-Control: no-cache'+'\n'+ '------------0.Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7'+'\n'+ 'Content-Disposition: form-data; name="tulips"'+'\n'+ '<soapenv:Envelope xmlns:add="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:dev="http://schemas.xmlsoap.org/ws/2006/02/devprof" xmlns:prin="http://schemas.microsoft.com/windows/2006/08/wdp/print" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xop=xmlns:xop="http://www.w3.org/2004/08/xop/include">'+'\n'+ '<soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"/>'+'\n'+ '<add:MessageID>urn:uuid:Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7</add:MessageID>'+'\n'+ ' <add:Action>http://schemas.microsoft.com/windows/2006/08/wdp/print/CreatePrintJob</add:Action>'+'\n'+ '<dev:ServiceId>Print</dev:ServiceId>'+'\n'+ '<add:To>http://13.61.9.147/webservices/wsd/PrinterService/01</add:To>'+'\n'+ '</soapenv:Header>'+'\n'+ '<soapenv:Body>'+'\n'+ '<prin:SendDocumentRequest>'+'\n'+ '<prin:JobId>'+jobid+'</prin:JobId>'+'\n'+ '<prin:DocumentDescription>'+'\n'+ '<prin:DocumentId>1</prin:DocumentId>'+'\n'+ '<prin:Compression prin:MustHonor="false">None</prin:Compression>'+'\n'+ '<prin:Format prin:MustHonor="false">application/octet-stream</prin:Format>'+'\n'+ ''+'\n'+ '<prin:DocumentName>TestTextDoc.txt</prin:DocumentName>'+'\n'+ ''+'\n'+ '<prin:DocumentUrl>D:\TestFiles\TestTextDoc.txt</prin:DocumentUrl>'+'\n'+ ''+'\n'+ '</prin:DocumentDescription>'+'\n'+ ''+'\n'+ '<prin:DocumentProcessing>'+'\n'+ ''+'\n'+ '<prin:MediaSizeName prin:MustHonor="false">na_letter_8.5x11in</prin:MediaSizeName>'+'\n'+ ''+'\n'+ '<prin:MediaType prin:MustHonor="false">stationery</prin:MediaType>'+'\n'+ ''+'\n'+ '<prin:MediaColor prin:MustHonor="false">white</prin:MediaColor>'+'\n'+ ''+'\n'+ '<prin:NumberUp>'+'\n'+ '<prin:PagesPerSheet prin:MustHonor="false">1</prin:PagesPerSheet>'+'\n'+ '<prin:Direction prin:MustHonor="false">RightDown</prin:Direction>'+'\n'+ ''+'\n'+ '</prin:NumberUp>'+'\n'+ ''+'\n'+ '<prin:Orientation prin:MustHonor="false">Portrait</prin:Orientation>'+'\n'+ ''+'\n'+ '<prin:Resolution prin:MustHonor="false">'+'\n'+ '<prin:Width>600</prin:Width>'+'\n'+ ''+'\n'+ '<prin:Height>600</prin:Height>'+'\n'+ '</prin:Resolution>'+'\n'+ ''+'\n'+ '<prin:PrintQuality prin:MustHonor="false">Normal</prin:PrintQuality>'+'\n'+ ''+'\n'+ '<prin:Sides prin:MustHonor="false">OneSided</prin:Sides>'+'\n'+ ''+'\n'+ '</prin:DocumentProcessing>'+'\n'+ '<prin:LastDocument>true</prin:LastDocument>'+'\n'+ '<prinDocumentData>\r\n'+ '<xop:Include href="cid:1.Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7@example.org" />\r\n'+ '</prinDocumentData>\r\n'+ '</prin:SendDocumentRequest>'+'\n'+ '</soapenv:Body>'+'\n'+ '</soapenv:Envelope>'+'\n'+ '------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7'+'\n'+ 'Content-Disposition: form-data; name="tulips"; filename="tulips.jpg"'+'\n'+ 'content-id: <1.ij5gi3gi3ei4gi3ei4km7gi3km7...@example.org>'+"\n"+ 'Content-Type: application/octet-stream'+'\n'+ myFileStream + '------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7'+'\n'+ 'Content-Disposition: form-data; name="Upload"'+'\n'+ '------------Ij5GI3GI3ei4GI3ei4KM7GI3KM7KM7--'; Can you suggest is there any wrong implementation from the Flex side? -- View this message in context: http://apache-flex-development.2333347.n4.nabble.com/Is-flex-SDK-supports-MIME-attachments-for-invoking-webservices-tp35155p35235.html Sent from the Apache Flex Development mailing list archive at Nabble.com.