Hi Bretticus
Hope you're keeping well.
Having eventually realised I needed to instal the php SOAP libraries I made a little progress!😕
So I set the following:
use_soap_error_handler (true);
$client = new SoapClient("http://84.92.127.185/WhyPCServer/WhyPCWebService.asmx?wsdl");
$result=($client->GetWhyPCAdminSummaryData());
print_r($result);
which displays
stdClass Object ( [GetWhyPCAdminSummaryDataResult] => stdClass Object ( [any] => GoodOKPoor£128LikelyUnlikelyPossiblePossible ) )
But what I do from here I have no idea. I was assuming I could load the result into the joomla xml parser and then retrieve results assigned to variables and display them on my page etc. But when I try to load $result as a string into the parser the parser contains nothing as far as I can tell.
I thought maybe it's giving me an array so I also tried foreach {} but nothing.
I guess I must be missing something.
Any guidance greatly appreciated.
Best wishes
John
this is the xml sent to me by the guy on the other side:
<?xml version="1.0" encoding="utf-8" ?>
- <DataTable xmlns="http://whyismypc.com/">
- <xs:schema id="NewDataSet" xmlns=""
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xs:element name="NewDataSet" msdata:IsDataSet="true"
msdata:MainDataTable="Results" msdata:UseCurrentLocale="true">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="Results">
- <xs:complexType>
- <xs:sequence>
<xs:element name="Application_Rating" type="xs:string" minOccurs="0" />
<xs:element name="Logon_Rating" type="xs:string" minOccurs="0" />
<xs:element name="User_Rating" type="xs:string" minOccurs="0" />
<xs:element name="Hidden_Cost" type="xs:string" minOccurs="0" />
<xs:element name="Processor_Bottleneck" type="xs:string" minOccurs="0" />
<xs:element name="Memory_Bottleneck" type="xs:string" minOccurs="0" />
<xs:element name="Disk_Bottleneck" type="xs:string" minOccurs="0" />
<xs:element name="Other_Bottleneck" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
- <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
- <DocumentElement xmlns="">
- <Results diffgr:id="Results1" msdata:rowOrder="0"
diffgr:hasChanges="inserted">
<Application_Rating>Good</Application_Rating>
<Logon_Rating>OK</Logon_Rating>
<User_Rating>Poor</User_Rating>
<Hidden_Cost>£128</Hidden_Cost>
<Processor_Bottleneck>Likely</Processor_Bottleneck>
<Memory_Bottleneck>Unlikely</Memory_Bottleneck>
<Disk_Bottleneck>Possible</Disk_Bottleneck>
<Other_Bottleneck>Possible</Other_Bottleneck>
</Results>
</DocumentElement>
</diffgr:diffgram>
</DataTable>