0
我用MTOM編碼獲得了一個正在運行的WCF服務。我自己的c#客戶端可以使用此服務而不會出現問題。WCF:使用SoapUI Content-Id的MTOM找不到
當我嘗試發送通過SOAP UI請求我得到的消息:
<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="de-DE">MIME part with Content-ID 'cid:123456' not found.</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 i:nil="true"/>
<Message>MIME part with Content-ID 'cid:123456' not found.</Message>
<StackTrace>at System.Xml.XmlMtomReader.ReadMimePart(String uri)
at System.Xml.XmlMtomReader.Read()
at System.Xml.XmlDictionaryWriter.WriteNode(XmlDictionaryReader reader, Boolean defattr)
at System.ServiceModel.Channels.ReceivedMessage.OnWriteBodyContents(XmlDictionaryWriter writer)
at System.ServiceModel.Channels.Message.OnWriteMessage(XmlDictionaryWriter writer)
at System.ServiceModel.Channels.Message.OnCreateBufferedCopy(Int32 maxBufferSize, XmlDictionaryReaderQuotas quotas)
at System.ServiceModel.Channels.Message.CreateBufferedCopy(Int32 maxBufferSize)
at VAMS.Web.FE.Inspector.ValidXmlMessageInspector.AfterReceiveRequest(Message& request, IClientChannel channel, InstanceContext instanceContext) in ValidXmlMessageInspector.cs:line 63
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.AfterReceiveRequestCore(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</StackTrace>
<Type>System.Xml.XmlException</Type>
</ExceptionDetail>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
有什麼建議?
謝謝!我不知道如何鏈接它們 – yngrdyn 2016-10-05 20:03:45