Ok so, I finally got an example of the request that needs to be made and response that I get back. I am not completely sure how coldfusion talks to itself (as in using it to request from an API)
REQUEST:
[php]
<soapenv:Envelope xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:wor=“http://workorder.services.RSP.Dishnetwork.pub”>
soapenv:Header/
soapenv:Body
<wor:WorkOrderDetailsByWorkOrderNumber soapenv:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/”>
USER
PASS
XXXXXXXXXXXXXXXX
</wor:WorkOrderDetailsByWorkOrderNumber>
</soapenv:Body>
</soapenv:Envelope>
[/php]
RESPONSE
[php]
<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
soapenv:Body
<ns1:WorkOrderDetailsByWorkOrderNumberResponse soapenv:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:ns1=“http://workorder.services.RSP.Dishnetwork.pub”>
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<xmlResponse>
<xmlWorkOrders>
<workOrder>
<Number>88011805100015005</Number>
</workOrder>
</xmlWorkOrders>
</xmlResponse>
]]>
</WorkOrderDetailsByWorkOrderNumberReturn>
</ns1:WorkOrderDetailsByWorkOrderNumberResponse>
</soapenv:Body>
</soapenv:Envelope>
[/php]
So how in the heck do I request something like that?
Would something like this create the same effect?
[php]
$content = xxx // the xml stuff like the request
$url = xxx // URL to ColdFusion API
$request = stream_context_create($content);
$response = file_get_contents($url, false, $request);
[/php]
Or am I off?