Call XMDS methods over Postman or curl?

Hi,

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="http://schemas.xmlsoap.org/soap/envelope/" 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="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:xmds" xmlns:types="urn:xmds/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <tns:Schedule>
      <serverKey xsi:type="xsd:string">{{serverKey}}</serverKey>
      <hardwareKey xsi:type="xsd:string">{{hardwareKey}}</hardwareKey>
    </tns:Schedule>
  </soap:Body>
</soap:Envelope>

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.

https://xibo.org.uk/manual/en/xmds.html

1 Like