Call XMDS methods over Postman or curl?


I need to make a SOAP call over curl. Currently, I am trying on Postman (then generate code for curl on postman), however i failed. Is that even possible?

My curl command look like this:
curl --request POST \
  --url 'http://localhost:80/xmds.php?v=4&wsdl=' \
  --header 'cache-control: no-cache' \
  --header 'content-type: text/xml' \
  --header 'postman-token: 8df91f38-f851-d300-624c-d2b048418be4' \
  --data '<soapenv:Envelope xmlns:soapenv="" xmlns:xmds="urn:xmds">\n   <soapenv:Header/>\n   <soapenv:Body>\n       <xmds:RegisterDisplay>\n           <xmds:serverKey>7HM5rB</xmds:serverKey>\n           <xmds:hardwareKey>12345</xmds:hardwareKey>\n       </xmds:RegisterDisplay>\n  </soapenv:Body>\n</soapenv:Envelope>'

It is possible to use xmds calls via postman

for example schedule xmds call is:

POST {{url}}/xmds.php?v=5

In headers:
Content-Type text/xml

in body:

<soap:Envelope xmlns:soap="" xmlns:soapenc="" xmlns:tns="urn:xmds" xmlns:types="urn:xmds/encodedTypes" xmlns:xsi="" xmlns:xsd="">
  <soap:Body soap:encodingStyle="">
      <serverKey xsi:type="xsd:string">{{serverKey}}</serverKey>
      <hardwareKey xsi:type="xsd:string">{{hardwareKey}}</hardwareKey>

Obviously assuming that environment is configured and {{url}}, {{serverKey}}, {{HardwareKey}} are set in it.

All other xmds calls are constructed with the same logic, but of course require different parameters etc.

1 Like