Jump to content

[SOLVED] output of web service format


tpiazza55

Recommended Posts

i am calling a web service -- it returns the value done when finished

 

i get

 

Array ( [helloResult] => done )  -- how do i just get done

 

code below

 

<?php

 

require_once('lib/nusoap.php');

 

 

$client = new soapclient('http://localhost/phptestservice2/service.asmx?wsdl','wsdl');

$client->debug_flag = true;

 

$result = $client->call('hello');

echo "The message is:  "; print_r($result);

 

?>

Link to comment
https://forums.phpfreaks.com/topic/47782-solved-output-of-web-service-format/
Share on other sites

<?php
require_once('lib/nusoap.php');

$client = new soapclient('http://localhost/phptestservice2/service.asmx?wsdl','wsdl');
$client->debug_flag = true;

$result = $client->call('hello');
$result = $result['helloResult'];
echo "The message is:   " . $result;

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.