Jump to content

Cosuming a web service.


macupryk

Recommended Posts

I want to display the values from.

 

I am new to php. Can someone help me with the code below.

 

 

<?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.

 

<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'];

 

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.