MIME part with Content-ID 'cid:xxxxx' not found. What does that mean? Any help appreciated. Thanks
Below is my soap request <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header> <tem:documentName>hello</tem:documentName> <tem:UserName>test</tem:UserName> <tem:Password>test123</tem:Password> </soapenv:Header> <soapenv:Body> <tem:DocumentUpload> <tem:data>cid:859375762160</tem:data> </tem:DocumentUpload> </soapenv:Body> </soapenv:Envelope> And I am getting an error in the response. The error occurs at the place where stream is read. <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <s:Fault> <faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode> <faultstring xml:lang="en-US">An exception has been thrown when reading the stream.</faultstring> <detail> <ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <HelpLink i:nil="true"/> <InnerException> <HelpLink i:nil="true"/> <InnerException i:nil="true"/> <Message>MIME part with Content-ID 'cid:859375762160' not found.</Message> <StackTrace>at System.Xml.XmlMtomReader.ReadMimePart(String uri) at System.Xml.XmlMtomReader.Read() at System.Xml.XmlReader.ReadStartElement(String localname, String ns) at System.ServiceModel.Dispatcher.StreamFormatter.MessageBodyStream.Read(Byte[] buffer, Int32 offset, Int32 count)</StackTrace> <Type>System.Xml.XmlException</Type> </InnerException> <Message>An exception has been thrown when reading the stream.</Message> <StackTrace>at System.ServiceModel.Dispatcher.StreamFormatter.MessageBodyStream.Read(Byte[] buffer, Int32 offset, Int32 count) at WcfService1.Service1.UploadFile(DocumentUpload request) in \\hcldc\users$\rekasambath\documents\visual studio 2015\Projects\WcfService1\WcfService1\Service1.svc.cs:line 25 at SyncInvokeUploadFile(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</StackTrace> <Type>System.IO.IOException</Type> </ExceptionDetail> </detail> </s:Fault> </s:Body> </s:Envelope> What does this error mean? Am I missing something? Any Help appreciated. Thanks3.5KViews0likes2CommentsResponse is MTOM with Attachment - What format is the Dump File in (and how do I decode it) ?
I have a WebService (Oracle Fusion to be exact) which is meant to download a file as an MTOM Attachment; In the Request on SOAP-UI I left all properties as default, except "Enable MTOM"= true, and "Dump File" I specify the path of a file. After I execute the request, the Response comes back ok (Just a normal soap / xml response, including the following fragment:: <ns2:File name="" href="Some-File-name-etc-which-is-a-Microsoft-Excel-File-whatever.xlsx"> <ns2:Contents> <xop:Include href="cid:c1cb91f1-e389-41ce-a941-4347afe74036" xmlns:xop="http://www.w3.org/2004/08/xop/include" /> </ns2:Contents> </ns2:File> In the SOAP-UI attachments section of the Response, the Content-Type= application/octet-stream and Type=XOP The Dump File gets written to disk - But what exactly are the contents of the Dump file ? And what format is it ? And how do I decode it ? Does the dump file include the request soapenv, the response soapenv, both request/response soap, just the attachment ? Is this documented anywhere on the SoapUI site ?Solved1.9KViews0likes1Commentdon't get attachment while sending mtom message with wcf in soapUI
I'm implementing a service which receives some string as request and should return back a pdf file in mtom attachment format. When I test it on my own machine with the client forms I can read the data from the content of message but when I checked the output in SOAPUI I found that the message is not sending in mtom format and is sending message in inline format . The raw view of the out put is as follows: HTTP/1.1 200 OK Cache-Control: private Content-Length: 1252359 Content-Type: text/xml; charset=utf-8 Server: Microsoft-IIS/7.5 Set-Cookie: ASP.NET_SessionId=itqdxvdxyovixbj1iglyy5n0; path=/; HttpOnly X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Wed, 20 Jan 2016 13:13:58 GMT <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><GetMaintenanceProtocolPdfAttachmentResponse xmlns="http://xmlns.scania.com/maintenance/schema/technicalinformationmsgs/v1"><GetMaintenanceProtocolPdfAttachmentResult>JVBERi0xLjQNCiXi48/TDQo How can I activate mtom to get the attachment in the output? ( I changed the messageEncoding to Mtom but doesn't work I think)944Views0likes1CommentTesting DocumentRetrieval service with MTOM from SOAP-UI.(MTOM enabled by value)
Hi Team, I need to test OSB Document retrieve service from SOAP -UI which is MTOM enabled by data. I am passing an Doc ref in id in requestand in response I am receiving below content response. <documentData> <inc:Include href="cid:432f8540-4677-41f2-ac7d-d68b32d92503@example.jaxws.sun.com" xmlns:inc="http://www.w3.org/2004/08/xop/include"/> </documentData> But in attachement section I am not receving proper attachment what was uploaded against the given doc ref Id. after clicking on any tab name,content-id etc I can just see the binary data which is not same as text present in uploded file. How can i get a correct attachment in the attachment section of response? SOAP-UI version-- 5.3.0 Many Thanks.923Views0likes0CommentsFile not uploading properly when use MTOM in SoapUI
I am using SoapUI 5.1.3 version. I am sending below request to the we service. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:upl="http://upload.application.carbon.wso2.org" xmlns:xsd="http://upload.application.carbon.wso2.org/xsd"> <soapenv:Header/> <soapenv:Body> <upl:uploadApp> <!--Zero or more repetitions:--> <upl:fileItems> <!--Optional:--> <xsd:dataHandler>UEsDBBLjAuMC52MjAxMTA1MjcxNTIxMDAvYXJ0aWZhY3QueG1sUEsFBgAAAAAJAAkAMAMAAC4IAAAAAA==</xsd:dataHandler> <!--Optional:--> <xsd:fileName>ESBproject1-1.0.0.car</xsd:fileName> <!--Optional:--> <xsd:fileType>jar</xsd:fileType> </upl:fileItems> </upl:uploadApp> </soapenv:Body> </soapenv:Envelope> at the web service end, when I check the dataHandler value seems like it is truncated at the end of the string. I inserted file using Insert file as Base64 context menu option. I changed Enable MTOM property to true. what could be the reason for missing a part of data that sends to web service?680Views0likes0Comments