title: .NET consume php web service
body: <p>I have php web service. and can consume it from php client.</p>
  
  <p>But problem  occurs  when i try call from c# win app.</p>
  
  <p>Do you have any ideas..</p>
  
  <p>Problem is it returns null, also i cannot see it from object browser</p>
  
  <p>My wsdl file</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;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"&gt; 
    &lt;wsdl:types&gt;
      &lt;xs:schema xmlns:ns="http://1sunucu.com" xmlns:ns1="http://1sunucu.com/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://HighSchool.edu"&gt;
        &lt;xs:element name="ExamResult"&gt;
          &lt;xs:complexType&gt;
            &lt;xs:sequence&gt;
              &lt;xs:element name="kullaniciKod" type="xs:string"/&gt;
              &lt;xs:element name="sifre" type="xs:string"/&gt;
            &lt;/xs:sequence&gt;
          &lt;/xs:complexType&gt;
        &lt;/xs:element&gt;
        &lt;xs:element name="ExamResultResponse"&gt;
          &lt;xs:complexType&gt;
            &lt;xs:sequence&gt;
              &lt;xs:element name="result" type="xs:string"/&gt;
            &lt;/xs:sequence&gt;
          &lt;/xs:complexType&gt;
        &lt;/xs:element&gt;
      &lt;/xs:schema&gt;
    &lt;/wsdl:types&gt;
    &lt;wsdl:message name="ExamResultRequest"&gt;
      &lt;wsdl:part name="parameters" element="ns0:ExamResult"/&gt;
    &lt;/wsdl:message&gt;
    &lt;wsdl:message name="ExamResultResponse"&gt;
      &lt;wsdl:part name="parameters" element="ns0:ExamResultResponse"/&gt;
    &lt;/wsdl:message&gt;
    &lt;wsdl:portType name="ExamResultPortType"&gt;
      &lt;wsdl:operation name="ExamResult"&gt;
        &lt;wsdl:input message="ns0:ExamResultRequest" wsaw:Action="urn:ExamResult"/&gt;
        &lt;wsdl:output message="ns0:ExamResultResponse" wsaw:Action="urn:ExamResultResponse"/&gt;
      &lt;/wsdl:operation&gt;
    &lt;/wsdl:portType&gt;
    &lt;wsdl:binding name="ExamResultSOAP12Binding" type="ns0:ExamResultPortType"&gt;
      &lt;soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/&gt;
      &lt;wsdl:operation name="ExamResult"&gt;
        &lt;soap12:operation soapAction="urn:ExamResult" style="document"/&gt;
        &lt;wsdl:input&gt;
          &lt;soap12:body use="literal"/&gt;
        &lt;/wsdl:input&gt;
        &lt;wsdl:output&gt;
          &lt;soap12:body use="literal"/&gt;
        &lt;/wsdl:output&gt;
      &lt;/wsdl:operation&gt;
    &lt;/wsdl:binding&gt;
    &lt;wsdl:service name="ExamResult"&gt;
      &lt;wsdl:port name="ExamResultSOAP12port_http" binding="ns0:ExamResultSOAP12Binding"&gt;
        &lt;soap12:address location="http://localhost/ws/soap-server.php"/&gt;
      &lt;/wsdl:port&gt;
    &lt;/wsdl:service&gt;
  &lt;/wsdl:definitions&gt;
  </code></pre>