macupryk Posted June 7, 2007 Share Posted June 7, 2007 <html> <head> <title>PHP test page </title> </head> <body> <?php //Define the request $request='http://192.168.0.65/aircanada/WebSrvHello/WebSrvHello.asmx/HelloService'; $xml = simplexml_load_string($request); ?> PHP Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : Start tag expected, '<' not found in C:\Inetpub\wwwroot\invoke.php on line 9 PHP Warning: simplexml_load_string() [function.simplexml-load-string]: http://192.168.0.65/aircanada/WebSrvHello/WebSrvHello.asmx/HelloService in C:\Inetpub\wwwroot\invoke.php on line 9 PHP Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in C:\Inetpub\wwwroot\invoke.php on line 9 ====================================================================== I need some examples please. Link to comment https://forums.phpfreaks.com/topic/54643-calling-a-web-service-in-php-that-was-written-in-aspnet-20-urgent/ Share on other sites More sharing options...
chigley Posted June 7, 2007 Share Posted June 7, 2007 It might just be me but when I visit that URL I get a 404. Link to comment https://forums.phpfreaks.com/topic/54643-calling-a-web-service-in-php-that-was-written-in-aspnet-20-urgent/#findComment-270213 Share on other sites More sharing options...
ToonMariner Posted June 7, 2007 Share Posted June 7, 2007 that is because its an internal address. That ip address is on your own machine/router NOT on the www. Link to comment https://forums.phpfreaks.com/topic/54643-calling-a-web-service-in-php-that-was-written-in-aspnet-20-urgent/#findComment-270219 Share on other sites More sharing options...
macupryk Posted June 7, 2007 Author Share Posted June 7, 2007 I am testing it on my machine. Link to comment https://forums.phpfreaks.com/topic/54643-calling-a-web-service-in-php-that-was-written-in-aspnet-20-urgent/#findComment-270220 Share on other sites More sharing options...
chigley Posted June 7, 2007 Share Posted June 7, 2007 Well PHP can't access the file, which is why you're getting errors. Why not upload the file and call it from there? Or... put it in your PHP directory. Link to comment https://forums.phpfreaks.com/topic/54643-calling-a-web-service-in-php-that-was-written-in-aspnet-20-urgent/#findComment-270240 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.