Hi Cereal,
Thanks once again for taking the time to help. I can use that array of course ids to loop the GetIndividualCourseDetail request, I just need to get the below code working, and returning the data in xml format.
$wsdl = "http://service.fetchcourses.ie/service/FetchCourse.svc?wsdl";
$client = new SoapClient($wsdl, ['trace' => TRUE]);
$search = new stdClass;
$search->criteria = new stdClass;
$search->criteria->CourseId = 12262;
$values = $client->GetIndividualCourseDetail($search);
# get response message
print $values->GetIndividualCourseDetailResult->ResponseInfo->ResponseMessage;
This is the request in SoapUI
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header></soapenv:Header>
<soapenv:Body>
<tem:GetIndividualCourseDetail>
<!--Optional:-->
<tem:CourseId>12262</tem:CourseId>
</tem:GetIndividualCourseDetail>
</soapenv:Body>
</soapenv:Envelope>
and it should return teh following
s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetIndividualCourseDetailResponse xmlns="http://tempuri.org/">
<GetIndividualCourseDetailResult xmlns:a="http://schemas.datacontract.org/2004/07/Solas.FetchCourses.DataContract" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:AccessTransferAndProgression>Progress to working within industry or continue on to
complete major award in Security 4M1976</a:AccessTransferAndProgression>
<a:CategoryDescription>Evening Training</a:CategoryDescription>
<a:CentreName>ccccccccccccccccccccc</a:CentreName>
<a:CertificationRequirements>Door
Guarding Skills 4N1118
Communications 4N0689</a:CertificationRequirements>
<a:CourseCapacity>20</a:CourseCapacity>
<a:CourseCode>q8651</a:CourseCode>
<a:CourseContactEmail>xxxx</a:CourseContactEmail>
<a:CourseContactFirstName>Carol</a:CourseContactFirstName>
<a:CourseContactLastName>xxxx</a:CourseContactLastName>
<a:CourseContactPhone>xxxxx</a:CourseContactPhone>
<a:CourseDescription>Description
On successful completion of the programme, learners may progress to further education and training.</a:CourseDescription>
<a:CourseFee>200.0000</a:CourseFee>
<a:CourseId>12262</a:CourseId>
<a:CourseTitle>Door Security </a:CourseTitle>
<a:DateActualFinish>2016-11-20T00:00:00</a:DateActualFinish>
<a:DateActualStart>2016-09-06T00:00:00</a:DateActualStart>
<a:DateClosing i:nil="true"></a:DateClosing>
<a:DeliveryMode>Classroom</a:DeliveryMode>
<a:DeliveryTime>Evening</a:DeliveryTime>
<a:DeliveryType>Parttime</a:DeliveryType>
<a:DurationDays>0</a:DurationDays>
<a:DurationWeeks>11</a:DurationWeeks>
<a:HoursPerWeek>08 Hrs 00 Mins</a:HoursPerWeek>
<a:ISCEDDescription>Services</a:ISCEDDescription>
<a:LearnerAge>Statutory School Leaving Age</a:LearnerAge>
<a:LearnerAptitude>Good numerical skills and verbal and written command of the English language along with good communication skills are essential.</a:LearnerAptitude>
<a:LearnerEducation>Applicants must have achieved a FETAC Level 3 Major Award or its equivalent.</a:LearnerEducation>
<a:LearnerPreviousExperience>None required</a:LearnerPreviousExperience>
<a:LearningOutcomes>DOutline the training location's safety guidelines, rules/regulations, and the course objectives and certification.
Demonstrate the skills and related knowledge required to perform door security duties.
Demonstrate the skills and related knowledge required to perform security guarding duties.
Plan and achieve realistic work goals.</a:LearningOutcomes>
<a:Notes></a:Notes>
<a:OnlineApplicationURL></a:OnlineApplicationURL>
<a:RegistrationFee>0.0000</a:RegistrationFee>
<a:TargetAwardAchievable>Yes</a:TargetAwardAchievable> …