sonofsam Posted November 5, 2007 Share Posted November 5, 2007 Hello New on PHP and I have a problem, I'm making __call to a web .Net Web service and I have responde but is structure like that stdClass Object ( [schema] => [any] => "The Information that web service responce" ) ; But I dont know how separte the data from to read a specific field. help Adolfo Foliaco Link to comment https://forums.phpfreaks.com/topic/76097-solved-net-web-services/ Share on other sites More sharing options...
MadTechie Posted November 5, 2007 Share Posted November 5, 2007 really need to see the code that displays that data.. i would guess your do this echo stdClass->any; //or echo stdClass['any']; Link to comment https://forums.phpfreaks.com/topic/76097-solved-net-web-services/#findComment-385259 Share on other sites More sharing options...
sonofsam Posted November 6, 2007 Author Share Posted November 6, 2007 thank for the response but this is how it goes this is the Soap on the web service POST /mywebservice.asmx HTTP/1.1 Host: localhost Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <getmy xmlns="namespace"> <intGUID>int</intGUID> </getmy> </soap12:Body> </soap12:Envelope> HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <getmyResponse xmlns="namespace"> <getmyResult> <xsd:schema>schema</xsd:schema>xml </getmyResult> </getmyResponse> </soap12:Body> </soap12:Envelope> so as you can see the soap call return a xml schema. so how I read each field of the xml schema thanks Link to comment https://forums.phpfreaks.com/topic/76097-solved-net-web-services/#findComment-385287 Share on other sites More sharing options...
trq Posted November 6, 2007 Share Posted November 6, 2007 so how I read each field of the xml schema simplexml. Link to comment https://forums.phpfreaks.com/topic/76097-solved-net-web-services/#findComment-385306 Share on other sites More sharing options...
sonofsam Posted November 6, 2007 Author Share Posted November 6, 2007 Thank It work. Link to comment https://forums.phpfreaks.com/topic/76097-solved-net-web-services/#findComment-385818 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.