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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.