在PHP中消耗Web服务服务的问题 [英] issue consuming web service service in php

查看:69
本文介绍了在PHP中消耗Web服务服务的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.

坦率地说,我不懂PHP.但是我面临的问题是,我已经在C#和ASP.Net中创建了我的Web服务,并且要检查我的服务是否与平台无关,所以我试图将其作为PHP客户端使用.

我试过的是:

Hi.

To be frank I don''t know PHP. But the problem I am facing is, I have my web service created in C# and ASP.Net and to check whether my service is platform independent I am trying to consume it in as PHP client.

What I tried is:

<?php 
class myphpclass extends nusoap_client
{
        require_once('../lib/nusoap.php');
	$wsdl = "http://www.abc.com/chkuser/checkuser.asmx?wsdl";
	$string = "pqr@gmail.com";
	$client = new nusoap_client($wsdl,true);
	print "<p> Hello :";
	$var = $client->call('findusername',$string);
	print $var;
			
}
?>



其给出的



Its giving

报价:

解析错误:语法错误,意外的T_REQUIRE_ONCE,期望T_FUNCTION

Parse error: syntax error, unexpected T_REQUIRE_ONCE, expecting T_FUNCTION



so plz help.



so plz help.

推荐答案

wsdl = "
wsdl = "http://www.abc.com/chkuser/checkuser.asmx?wsdl";


字符串 = " ;
string = "pqr@gmail.com";


client = nusoap_client(
client = new nusoap_client(


这篇关于在PHP中消耗Web服务服务的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆