2009-08-07 242 views
0

我有php web服務。並可以從PHP客戶端使用它。.NET使用php web服務

但是,當我嘗試從c#win應用程序調用時發生問題。

你有任何想法..

問題是,它返回null,我也看不出它從對象瀏覽器

我的WSDL文件

<?xml version="1.0" encoding="UTF-8"?> 
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns0="http://1sunucu.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://1sunucu.com"> 
    <wsdl:types> 
    <xs:schema xmlns:ns="http://1sunucu.com" xmlns:ns1="http://1sunucu.com/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://HighSchool.edu"> 
     <xs:element name="ExamResult"> 
     <xs:complexType> 
      <xs:sequence> 
      <xs:element name="kullaniciKod" type="xs:string"/> 
      <xs:element name="sifre" type="xs:string"/> 
      </xs:sequence> 
     </xs:complexType> 
     </xs:element> 
     <xs:element name="ExamResultResponse"> 
     <xs:complexType> 
      <xs:sequence> 
      <xs:element name="result" type="xs:string"/> 
      </xs:sequence> 
     </xs:complexType> 
     </xs:element> 
    </xs:schema> 
    </wsdl:types> 
    <wsdl:message name="ExamResultRequest"> 
    <wsdl:part name="parameters" element="ns0:ExamResult"/> 
    </wsdl:message> 
    <wsdl:message name="ExamResultResponse"> 
    <wsdl:part name="parameters" element="ns0:ExamResultResponse"/> 
    </wsdl:message> 
    <wsdl:portType name="ExamResultPortType"> 
    <wsdl:operation name="ExamResult"> 
     <wsdl:input message="ns0:ExamResultRequest" wsaw:Action="urn:ExamResult"/> 
     <wsdl:output message="ns0:ExamResultResponse" wsaw:Action="urn:ExamResultResponse"/> 
    </wsdl:operation> 
    </wsdl:portType> 
    <wsdl:binding name="ExamResultSOAP12Binding" type="ns0:ExamResultPortType"> 
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> 
    <wsdl:operation name="ExamResult"> 
     <soap12:operation soapAction="urn:ExamResult" style="document"/> 
     <wsdl:input> 
     <soap12:body use="literal"/> 
     </wsdl:input> 
     <wsdl:output> 
     <soap12:body use="literal"/> 
     </wsdl:output> 
    </wsdl:operation> 
    </wsdl:binding> 
    <wsdl:service name="ExamResult"> 
    <wsdl:port name="ExamResultSOAP12port_http" binding="ns0:ExamResultSOAP12Binding"> 
     <soap12:address location="http://localhost/ws/soap-server.php"/> 
    </wsdl:port> 
    </wsdl:service> 
</wsdl:definitions> 

回答

2

感謝SoapUi。我已經解決了這個問題...有一個響應錯誤在PHP服務器