troubleshooting Question

Help required with SOAP call, getting error "ContractFilter mismatch at the EndpointDispatcher"

Avatar of Neil Thompson
Neil ThompsonFlag for United Kingdom of Great Britain and Northern Ireland asked on
PHPXMLSOAP Protocol* Curl
18 Comments1 Solution822 ViewsLast Modified:
Hi all, hoping one of you Gurus can assist please.

I have been using a payment system for many years but they have now changed one of their SOAP calls to an external URL. For the life of me I'm unable to connect without the following error:

"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). "

these are the binding info from their App.config file if it helps
<bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IPortalService">
          <!-- Transport security is only required when the portal service is running under https, for http this should be set to None -->
          <security mode="Transport" />
        </binding>
      </basicHttpBinding>
    </bindings>

I'm using PHP7 and have free run on the server to implement any of your suggestions. Previously I used cURL to simply create the SOAP XML, post if off and grab the response but having no luck here.

I cant post all the login details etc as it's payment and site specific but I'm after being initially able to at least connect to the SOAP URL below, and get a more valid error (for example, invalid user logon) etc.

Ok, here's the details:

https://pay360sc.e-paycapita.com/LivePayments242/PortalService.svc?wsdl

Action required is "Invoke" for which I believe the following should be the right XML to be sent:

<invokeRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <credentials>
    <subject>
      <subjectType>SecureBureauServiceSite</subjectType>
      <identifier>242</identifier>
      <systemCode>APN</systemCode>
    </subject>
    <requestIdentification>
      <uniqueReference>3rdPartyRef48550</uniqueReference>
      <timeStamp>20181204085422</timeStamp>
    </requestIdentification>
    <signature>
      <algorithm>Original</algorithm>
      <hmacKeyID>1</hmacKeyID>
      <digest>6EpZzXc7JD1aq525LXySuybkTi+CdhUJuF023o3C+wM=</digest>
    </signature>
  </credentials>
  <login>
    <loginName>itsme</loginName>
    <password>anypassword</password>
    <consortiumCode>6Q</consortiumCode>
    <siteId>242</siteId>
  </login>
  <requestType>PayOnly</requestType>
  <requestId>036380e1-ed43-4cb0-af91-9d4fc81ced26</requestId>
  <sale>
    <items>
      <item>
        <itemDetails>
          <fundCode>02</fundCode>
          <reference>10948055</reference>
          <amountInMinorUnits>250</amountInMinorUnits>
        </itemDetails>
        <lineId>001</lineId>
      </item>
    </items>
  </sale>
</invokeRequest>

Happy to use SOAPClient or cURL, whatever you guys decide is best.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 18 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros