Forum Discussion

ocherk2's avatar
ocherk2
Occasional Contributor
16 years ago

how to test in SOAPGUI WCF hostd in application?

I've WCF service hosted in console exe, then created clients in c# - all works ok.
When I trieed to sedn soap message from SOAPGUI I've received

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
  <s:Header>
      <a:Action s:mustUnderstand="1">http://www.w3.org/2005/08/addressing/soap/fault</a:Action>
      <a:RelatesTo>uuid:c6dd95b5-288f-4ece-bfb7-36dfe909db8c</a:RelatesTo>
  </s:Header>
  <s:Body>
      <s:Fault>
        <s:Code>
            <s:Value>s:Sender</s:Value>
            <s:Subcode>
              <s:Value xmlns:a="http://schemas.xmlsoap.org/ws/2005/02/sc">a:BadContextToken</s:Value>
            </s:Subcode>
        </s:Code>
        <s:Reason>
            <s:Text xml:lang="ru-RU">The message could not be processed.
            This is most likely because the action
            'http://tempuri.org/ImyDataAccessService/Connect' is i
            ncorrect or because the message contains an invalid or
            expired security context token or because there is a mismatch between bindings.
            The security context token would be invalid if the service
            aborted the channel due to inactivity.
            To prevent the service from aborting idle sessions prematurely increase
            the Receive timeout on the service endpoint's binding.</s:Text>
        </s:Reason>
      </s:Fault>
  </s:Body>
</s:Envelope>
  • hi ocherk2,

    I am also getting similar error with WCF service hosted with wshttpbinding. could you please let me know how did you resolve this...?