Originally posted by rekasambath on July 24, 2017
Below is my soap request
<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:tem=“http://tempuri.org/”>
soapenv:Header
tem:documentNamehello</tem:documentName>
tem:UserNametest</tem:UserName>
tem:Passwordtest123</tem:Password>
</soapenv:Header>
soapenv:Body
tem:DocumentUpload
tem:datacid: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>
a:InternalServiceFault
An exception has been thrown when reading the stream.
MIME part with Content-ID ‘cid:859375762160’ not found.
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)
System.Xml.XmlException
An exception has been thrown when reading the stream.
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)
System.IO.IOException
</s:Fault>
</s:Body>
</s:Envelope>
What does this error mean? Am I missing something? Any Help appreciated. Thanks