0

WCF サービスを作成するために必要なクライアントから提供された WSDl があります。

次の構成を使用してWCFに実装しようとしたsoap 1.2の下にあるため、soapアクションは提供されません

SOAP UI を使用してアプリを送信しようとすると、以下のエラーが表示されます

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
   <s:Body>
      <s:Fault>
         <s:Code>
            <s:Value>s:Sender</s:Value>
            <s:Subcode>
               <s:Value xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</s:Value>
            </s:Subcode>
         </s:Code>
         <s:Reason>
            <s:Text xml:lang="en-US">The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</s:Text>
         </s:Reason>
         <s:Detail>
            <z:anyType i:nil="true" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
         </s:Detail>
      </s:Fault>
   </s:Body>
</s:Envelope>

<services>
  <service name="Myservice" behaviorConfiguration="MyServiceTypeBehaviors">
    <endpoint name="MyserviceEndpoint" address="soap12" 
              binding="customBinding" bindingNamespace="http://Myservice.namespace"
              bindingConfiguration="httpSoap12" contract="IMyService"/>

  </service>
</services>
<behaviors>
  <serviceBehaviors>
    <behavior name="MyServiceTypeBehaviors" >
      <serviceMetadata httpGetEnabled="true" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />

4

1 に答える 1