XML example for core_course_get_courses help

XML example for core_course_get_courses help

by Seth Chevalier -
Number of replies: 0

I am having issues created an xml file that gets course details for specific courses. The API documentation is wanting for SOAP.

Here is what I have. It must be an array and I keep receiving the error about unexpected keys.

 

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:ns1="https://XXXXXX/webservice/soap/server.php?wstoken=XXXXXXXXXXXXXXXXXXXXXX"
xmlns:ns2="http://xml.apache.org/xml-soap"
xmlns:enc="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<env:Body>
<ns1:core_course_get_courses env:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
<courseid enc:itemType="ns2:Map" enc:arraySize="1" xsi:type="enc:Array">
<item><key xsi:type="xsd:string">courseid</key>
<value xsi:type="xsd:int">17590</value></item>
</courseid>
</ns1:core_course_get_courses>
</env:Body>
</env:Envelope>

Average of ratings: -