I am gone crosseyed from trying to figure this out. I dont ususally post on this site I am half scared of getting told off for being out of my league!!!
I am creating a website for a training company and I need to get the course info from their Client Services System using SOAP request and response. For client confidentiality I can not put the wsdl file up. I have been testing how to do this by following this tutorial and using this as an example http://www.webservicex.net/stockquote.asmx?WSDL
I can not create the same results as in that tut my results are coming back as a string rather than an array? Any help or advice would be amazing. This is my code:
<?php $wsdl = "http://www.webservicex.net/stockquote.asmx?WSDL"; $client = new SoapClient($wsdl); $stock = "bmi"; $parameters= array("symbol"=>$stock); $values = $client->GetQuote($parameters); $xml = $values->GetQuoteResult; print "<pre>\n"; print_r($xml); print "</pre>"; ?>
and this is the output I am getting
BMI58.402/27/20154:01pm+0.0958.4058.8358.1134145836.2M58.31+0.15%46.47 - 61.352.0628.31Badger Meter
I think if I can manage this basic task I can work it around my clients request.
Hope I have given enough info, and thanks in advance I do appreciate any time given to help :)