直接可以访问的   http://172.16.56.72/mama/Dalapathi.asmx?wsdl  但是用客户端就是有问题,说明:访问另一个webservice是可以的 
错误信息:
SoapFault Object ( [message:protected] => SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://172.16.56.72/mama/Dalapathi.asmx?wsdl' : failed to load external entity "http://172.16.56.72/mama/Dalapathi.asmx?wsdl" [string:Exception:private] => [code:protected] => 0 [file:protected] => /usr/local/apache2/htdocs/mytest/soap_test/soap.php [line:protected] => 6 [trace:Exception:private] => Array ( [0] => Array ( [file] => /usr/local/apache2/htdocs/mytest/soap_test/soap.php [line] => 6 [function] => SoapClient [class] => SoapClient [type] => -> [args] => Array ( [0] => http://172.16.56.72/mama/Dalapathi.asmx?wsdl ) ) ) [previous:Exception:private] => [faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://172.16.56.72/mama/Dalapathi.asmx?wsdl' : failed to load external entity "http://172.16.56.72/mama/Dalapathi.asmx?wsdl" [faultcode] => WSDL )用c++的客户端也访问不了,
我分析是文件权限问题, 

解决方案 »

  1.   

    哎,只能局域网访问呀, 我也没办法,只能上wsdl了 <?xml version="1.0" encoding="utf-8" ?> 
    - <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://webservices.qubecinema.com/XP/Dalapathi/2009-05-28/" xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://webservices.qubecinema.com/XP/Dalapathi/2009-05-28/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    - <wsdl:types>
    - <s:schema elementFormDefault="qualified" targetNamespace="http://webservices.qubecinema.com/XP/Dalapathi/2009-05-28/">
      <s:import namespace="http://microsoft.com/wsdl/types/" /> 
    - <s:element name="Connect">
    - <s:complexType>
    -   </s:element>
    -  </s:schema>
    - <s:schema elementFormDefault="qualified" targetNamespace="http://microsoft.com/wsdl/types/">
    - <s:simpleType name="guid">
    - <s:restriction base="s:string">
      <s:pattern value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" /> 
      </s:restriction>
      </s:simpleType>
      </s:schema>
      </wsdl:types>
    - <wsdl:message name="ConnectSoapIn">
      <wsdl:part name="parameters" element="tns:Connect" /> 
      </wsdl:message>
    - <wsdl:message name="ConnectSoapOut">
      <wsdl:part name="parameters" element="tns:ConnectResponse" /> 
      </wsdl:message>
    - <wsdl:message name="GetCurrentShowInfoSoapIn">
      <wsdl:part name="parameters" element="tns:GetCurrentShowInfo" /> 
      </wsdl:message>
    - <wsdl:message name="GetCurrentShowInfoSoapOut">
      <wsdl:part name="parameters" element="tns:GetCurrentShowInfoResponse" /> 
      </wsdl:message>
    - <wsdl:message name="GetCurrentShowSoapIn">
      <wsdl:part name="parameters" element="tns:GetCurrentShow" /> 
      </wsdl:message>
    - <wsdl:message name="GetCurrentShowSoapOut">
      <wsdl:part name="parameters" element="tns:GetCurrentShowResponse" /> 
      </wsdl:message>
    - <wsdl:message name="IsShowInUseSoapIn">
      <wsdl:part name="parameters" element="tns:IsShowInUse" /> 
      </wsdl:message>
    - <wsdl:message name="IsShowInUseSoapOut">
      <wsdl:part name="parameters" element="tns:IsShowInUseResponse" /> 
      </wsdl:message>
    - <wsdl:message name="GetCurrentPositionSoapIn">
      <wsdl:part name="parameters" element="tns:GetCurrentPosition" /> 
      </wsdl:message>
    - <wsdl:message name="GetCurrentPositionSoapOut">
      <wsdl:part name="parameters" element="tns:GetCurrentPositionResponse" /> 
      </wsdl:message>
    - <wsdl:message name="SetDeviceModeSoapIn">
      <wsdl:part name="parameters" element="tns:SetDeviceMode" /> 
      </wsdl:message>
    - <wsdl:message name="SetDeviceModeSoapOut">
      <wsdl:part name="parameters" element="tns:SetDeviceModeResponse" /> 
      </wsdl:message>
    - <wsdl:message name="CueSoapIn">
      <wsdl:part name="parameters" element="tns:Cue" /> 
      </wsdl:message>
    - <wsdl:message name="CueSoapOut">
      <wsdl:part name="parameters" element="tns:CueResponse" /> 
      </wsdl:message>
    - <wsdl:message name="PlaySoapIn">
      <wsdl:part name="parameters" element="tns:Play" /> 
      </wsdl:message>
     <wsdl:service name="Dalapathi">
    - <wsdl:port name="DalapathiSoap" binding="tns:DalapathiSoap">
      <soap:address location="http://172.16.56.72/mama/Dalapathi.asmx" /> 
      </wsdl:port>
    - <wsdl:port name="DalapathiSoap12" binding="tns:DalapathiSoap12">
      <soap12:address location="http://172.16.56.72/mama/Dalapathi.asmx" /> 
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>