2014-11-03 3 views
0

ive가 MTOM 인코딩을 사용하여 실행중인 WCF 서비스를 받았습니다. 내 자신의 C# 클라이언트가 문제없이이 서비스를 사용할 수 있습니다.WCF : SoapUI Content-Id가있는 MTOM이 없습니다.

<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&amp; request, IClientChannel channel, InstanceContext instanceContext) in ValidXmlMessageInspector.cs:line 63 
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.AfterReceiveRequestCore(MessageRpc&amp; rpc) 
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc&amp; rpc) 
    at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</StackTrace> 
      <Type>System.Xml.XmlException</Type> 
     </ExceptionDetail> 
     </detail> 
    </s:Fault> 
    </s:Body> 
</s:Envelope> 

제안 :

내가 SOAP의 UI를 통해 요청을 보내려고

는 내가 메시지를 얻을?

답변

0

해당 없음 WCF 문제 :

SOAPUI가 자동으로 첨부 파일의 ContentID를 생성합니다. 하지만 당신은 이것을 필요로하지 않습니다. 그냥 콘텐츠 ID를 삭제하고 모든 식별자 : 당신의 첨부 파일 목록에서 요소의 콘텐츠 ID와 동일합니다 (미세

Greetz Skary

2

요청에 사용 된 콘텐츠 ID를 확인 작동합니다.

SoapUI 요청 샘플 : SoapUI request sample

+0

감사합니다! 나는 그들을 연결하는 방법을 몰랐다. – yngrdyn