1.php
require_once('./Class/nusoap.php');
class KeywordService
{
var $KeywordServiceClient
function KeywordService()
{
         $this->KeywordServiceClient=new soapclient($CreativeService, 'wsdl');
.............
2.php 
require_once('./Class/nusoap.php');
class CreativeService
{
var $CreativeServiceClient
function CreativeService()
{
         $this->CreativeServiceClient=new soapclient($CreativeService, 'wsdl');
................

解决方案 »

  1.   

    这样使用,在最前面引用的话,类里面无法使用new soapclient($CreativeService, 'wsdl')啊,soapclient是在require_once('./Class/nusoap.php');里定义的
      

  2.   

    把用require_once以后的出错信息贴出来看看
    可能有其他原因
      

  3.   

    出错就是我说的那个new soapclient($CreativeService, 'wsdl')后无法使用他下面的函数
      

  4.   

    你的CreativeService在哪里定义的?
      

  5.   

    $CreativeService不是问题,因为本身这两个类还有其它引用,我为了看的清楚,把他去掉了
      

  6.   

    require('./Class/nusoap.php');
    nusoap.php里面除了类的定义还有什么
      

  7.   

    :)还真是这个地址的问题,靠,我把这个引用也加到前面由于少了$CreativeService值而导致new soapclient($CreativeService, 'wsdl')后无法使用他下面的函数