NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
soapclient. need to extract information in php from a webser


Joined: 10 Jun 2007
Posts: 1
Reply with quote
soapclient. need to extract information in php from a webservice that was built in C# asp.net 2.0


I am new to php. Can someone help me with the code below.
I would like to learn how to manipulate the information so if the user would like to display
the contents of start_date on his/her web page. How would I go parsing this.

<?xml version="1.0" encoding="utf-8" ?>
- <Program xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri_org/">
<ClassName>Program</ClassName>
<intern_sql_code>I</intern_sql_code>
<intern_timestamp>2007-06-08T09:27:03.640625-04:00</intern_timestamp>
<intern_creation_date>0001-01-01T00:00:00</intern_creation_date>
<program_id>108</program_id>
<start_date>2007-05-24T00:00:00</start_date>
<end_date>2008-05-24T00:00:00</end_date>
<program_name>CIBC Frequent Flyer</program_name>
<source_description>Ceci est un test pour le fun</source_description>
<comm_id>0</comm_id>
</Program>


How can I see the variables of the above in the below in php below.

<html>
<head>
<title>PHP test page </title>
</head>
<body>
<?php
require_once('lib/nusoap.php');
$client = new soapclient('http://192.168.0.65/aircanada/WebSrvPrg/WebSrvPrg.asmx?wsdl','wsdl');
$client->debug_flag = true;
// Help here.
//$param = array('Program->ClassName');
//$result = $client->call('ProgramService', array('parameters'=>$param));
//echo "The message is: " . $result['Program'];

?>
View user's profileFind all posts by macuprykSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
if you have a soap service, you may want to use PhpED's nusoap wizard to build up client code.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
soapclient. need to extract information in php from a webser
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic