title: Empty Response from web service (WSDL SOAP)
body: <p>I am using Visual studio 2008 C# Windows application to connect to a webservice created by an external company.  The service is a WSDL url, which is a basic soap request and response.  I have inported the service as a service reference.  I can call the service, and receive no errors, but the reponse is nothing.  When monitoring the soap request and response in Fiddler, i see a response coming back, but it's as if VS cannot interpret the response. I have looked at creating xsd's, but get an error stating that there's already a schema.  So I am at a total loss.  I hope someone can help.  I apologise if this exact issue has been solved before, but i cannot find anything that resolves my problem.</p>
  
  <p>Thanks in advance!</p>
  
  <p>The code I am using to connect to the service is as follows:</p>
  
  <pre><code> ServiceReference1.bpm bbb = new TestingWSDL.ServiceReference1.bpm();
  
          ServiceReference1.BPMExternalAppServicesV001Client soapClient = new TestingWSDL.ServiceReference1.BPMExternalAppServicesV001Client();
  
          ServiceReference1.DownloadShipmentDataV001 req = new TestingWSDL.ServiceReference1.DownloadShipmentDataV001();
          ServiceReference1.DownloadShipmentDataV001Response resp = new TestingWSDL.ServiceReference1.DownloadShipmentDataV001Response();
  
          try
          {
  
              soapClient.DownloadShipmentDataV001(req,out resp);
  
          }
          catch(Exception err)
          {
              MessageBox.Show(err.Message);
          }
  </code></pre>
  
  <p>the response object does not have any data in.  I cannot post an image, as i am not allowed.</p>
  
  <p>The WSDL is quite long and is as follows:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;wsdl:definitions xmlns:tns="http://schemas.ccc.com/AROPInventory/bpm/external" xmlns:inst="http://schemas.aaa.com/bpm/instance/1.0" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="BPMExternalAppServicesV001" targetNamespace="http://schemas.ccc.com/AROPInventory/bpm/external" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"&gt;
    &lt;wsdl:types&gt;
      &lt;xsd:schema xmlns:tns1="http://schemas.ccc.com/AROPInventory/bpm/external" xmlns="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://schemas.argility.com/AROPInventory/bpm/external" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
        &lt;xsd:import namespace="http://schemas.aaa.com/bpm/instance/1.0" /&gt;
        &lt;xsd:element name="UploadShipmentDataV001"&gt;
          &lt;xsd:complexType&gt;
            &lt;xsd:sequence&gt;
              &lt;xsd:element ref="tns1:Shipments" /&gt;
            &lt;/xsd:sequence&gt;
          &lt;/xsd:complexType&gt;
        &lt;/xsd:element&gt;
        &lt;xsd:element xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" name="Shipments"&gt;
          &lt;xsd:complexType&gt;
            &lt;xsd:sequence&gt;
              &lt;xsd:element minOccurs="0" maxOccurs="unbounded" name="Shipment"&gt;
                &lt;xsd:complexType&gt;
                  &lt;xsd:sequence&gt;
                    &lt;xs:element name="ShipmentNumber" type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" /&gt;
                    &lt;xsd:element name="Cartons"&gt;
                      &lt;xsd:complexType&gt;
                        &lt;xsd:sequence&gt;
                          &lt;xsd:element minOccurs="0" maxOccurs="unbounded" name="Carton"&gt;
                            &lt;xsd:annotation&gt;
                              &lt;xsd:documentation&gt;0:not damaged 1:damaged 2: Rejected0:not damaged 1:damaged 2: Rejected0:not damaged 1:damaged 2: Rejected&lt;/xsd:documentation&gt;
                            &lt;/xsd:annotation&gt;
                            &lt;xsd:complexType&gt;
                              &lt;xsd:sequence&gt;
                                &lt;xs:element name="CartionID" type="xs:byte" xmlns:xs="http://www.w3.org/2001/XMLSchema" /&gt;
                                &lt;xs:element name="Status" type="xs:byte" xmlns:xs="http://www.w3.org/2001/XMLSchema" /&gt;
                              &lt;/xsd:sequence&gt;
                            &lt;/xsd:complexType&gt;
                          &lt;/xsd:element&gt;
                        &lt;/xsd:sequence&gt;
                      &lt;/xsd:complexType&gt;
                    &lt;/xsd:element&gt;
                  &lt;/xsd:sequence&gt;
                &lt;/xsd:complexType&gt;
              &lt;/xsd:element&gt;
            &lt;/xsd:sequence&gt;
          &lt;/xsd:complexType&gt;
        &lt;/xsd:element&gt;
        &lt;xsd:element name="TestUploadShipMentV001"&gt;
          &lt;xsd:complexType&gt;
            &lt;xsd:sequence&gt;
              &lt;xsd:element ref="tns1:Shipments" /&gt;
            &lt;/xsd:sequence&gt;
          &lt;/xsd:complexType&gt;
        &lt;/xsd:element&gt;
        &lt;xsd:element name="TestUploadShipMentV001Response" /&gt;
        &lt;xsd:element name="UploadShipmentDataV001Response" /&gt;
        &lt;xsd:element name="DownloadShipmentDataV001"&gt;
          &lt;xsd:complexType&gt;
            &lt;xsd:sequence /&gt;
          &lt;/xsd:complexType&gt;
        &lt;/xsd:element&gt;
        &lt;xsd:element name="DownloadShipmentDataV001Response"&gt;
          &lt;xsd:complexType&gt;
            &lt;xsd:sequence&gt;
              &lt;xsd:element ref="tns1:Shipments" /&gt;
            &lt;/xsd:sequence&gt;
          &lt;/xsd:complexType&gt;
        &lt;/xsd:element&gt;
      &lt;/xsd:schema&gt;
      &lt;xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://schemas.aaa.com/bpm/instance/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
        &lt;xsd:element name="bpm"&gt;
          &lt;xsd:complexType&gt;
            &lt;xsd:sequence&gt;
              &lt;xsd:element name="instance_id" type="xsd:string" /&gt;
            &lt;/xsd:sequence&gt;
          &lt;/xsd:complexType&gt;
        &lt;/xsd:element&gt;
      &lt;/xsd:schema&gt;
    &lt;/wsdl:types&gt;
    &lt;wsdl:message name="DownloadShipmentDataV001Input"&gt;
      &lt;wsdl:part name="body" element="tns:DownloadShipmentDataV001" /&gt;
    &lt;/wsdl:message&gt;
    &lt;wsdl:message name="DownloadShipmentDataV001Output"&gt;
      &lt;wsdl:part name="body" element="tns:DownloadShipmentDataV001Response" /&gt;
    &lt;/wsdl:message&gt;
    &lt;wsdl:message name="HeaderOutput"&gt;
      &lt;wsdl:part name="BPMHeader" element="inst:bpm" /&gt;
    &lt;/wsdl:message&gt;
    &lt;wsdl:portType name="BPMExternalAppServicesV001"&gt;
      &lt;wsdl:operation name="DownloadShipmentDataV001"&gt;
        &lt;wsdl:input message="tns:DownloadShipmentDataV001Input" /&gt;
        &lt;wsdl:output message="tns:DownloadShipmentDataV001Output" /&gt;
      &lt;/wsdl:operation&gt;
    &lt;/wsdl:portType&gt;
    &lt;wsdl:binding name="BPMExternalAppServicesV001" type="tns:BPMExternalAppServicesV001"&gt;
      &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" /&gt;
      &lt;wsdl:operation name="DownloadShipmentDataV001"&gt;
        &lt;soap:operation soapAction="" style="document" /&gt;
        &lt;wsdl:input&gt;
          &lt;soap:body use="literal" /&gt;
        &lt;/wsdl:input&gt;
        &lt;wsdl:output&gt;
          &lt;soap:body use="literal" /&gt;
          &lt;soap:header message="tns:HeaderOutput" part="BPMHeader" use="literal" /&gt;
        &lt;/wsdl:output&gt;
      &lt;/wsdl:operation&gt;
    &lt;/wsdl:binding&gt;
    &lt;wsdl:service name="BPMExternalAppServicesV001Service"&gt;
      &lt;wsdl:port name="BPMExternalAppServicesV001Port" binding="tns:BPMExternalAppServicesV001"&gt;
        &lt;soap:address location="http://aaa/aaa/com.eibus.web.soap.Gateway.wcp?organization=o=system,cn=aaa,cn=aaa,o=ho.bbb.co.za" /&gt;
      &lt;/wsdl:port&gt;
    &lt;/wsdl:service&gt;
  &lt;/wsdl:definitions&gt;
  </code></pre>
  
  <p>The fiddler response is as follows:</p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" 
          xmlns="http://schemas.aaa.com/General/1.0/"&gt;
          &lt;sender&gt;
              &lt;reply-to&gt;
                  cn=Business Process Management,cn=Business Process Management,cn=soap nodes,o=system,cn=aaa,cn=aaa20,o=ho.bbb.co.za
              &lt;/reply-to&gt;
              &lt;organizationalContext&gt;o=system,cn=aaa,cn=aaa20,o=ho.bbb.co.za&lt;/organizationalContext&gt;
              &lt;component&gt;cn=Business Process Management,cn=soap nodes,o=system,cn=aaa,cn=aaa20,o=ho.bbb.co.za&lt;/component&gt;
          &lt;/sender&gt;
          &lt;receiver&gt;
              &lt;component&gt;cn=webgateway@poc-aaa,cn=aaa,cn=aaa20,o=ho.bbb.co.za&lt;/component&gt;
              &lt;sent-to xmlns="http://schemas.aaa.com/General/1.0/"&gt;socket://poc-aaa:20379/&lt;/sent-to&gt;
          &lt;/receiver&gt;
          &lt;msg-id&gt;00505680-004E-11E1-FBF1-7CB604BB1FC0&lt;/msg-id&gt;
      &lt;/header&gt;
      &lt;bpm xmlns="http://schemas.aaa.com/bpm/instance/1.0"&gt;
          &lt;instance_id&gt;26c34038-bea4-459c-a0ad-86b462ae90cb&lt;/instance_id&gt;
      &lt;/bpm&gt;
  &lt;/s:Header&gt;
  &lt;s:Body&gt;
      &lt;DownloadShipmentDataV001Response xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.argility.com/AROPInventory/bpm/external"&gt;
          &lt;Shipments xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.argility.com/AROPInventory/bpm/external"&gt;
              &lt;ShipmentHeader&gt;
                  &lt;ShipmentNumber&gt;S001&lt;/ShipmentNumber&gt;
                  &lt;ReceivingBranch&gt;B000028&lt;/ReceivingBranch&gt;
                  &lt;SendingBranch&gt;B000001&lt;/SendingBranch&gt;
                  &lt;ExpectedDate&gt;2012/07/30&lt;/ExpectedDate&gt;
                  &lt;TotalNrOfCartons&gt;2&lt;/TotalNrOfCartons&gt;
                  &lt;ShipmentStatus&gt;E&lt;/ShipmentStatus&gt;
                  &lt;Cartons&gt;
                      &lt;Carton&gt;
                          &lt;CartonHeader&gt;
                              &lt;NrOfItems&gt;2&lt;/NrOfItems&gt;
                              &lt;CartionID&gt;99&lt;/CartionID&gt;
                          &lt;/CartonHeader&gt;
                          &lt;CartonDetail&gt;
                              &lt;SKU&gt;12345&lt;/SKU&gt;
                              &lt;Description&gt;abc&lt;/Description&gt;
                              &lt;SerialNumber&gt;6789&lt;/SerialNumber&gt;
                              &lt;QtySent&gt;20&lt;/QtySent&gt;
                              &lt;QtyReceived/&gt;
                          &lt;/CartonDetail&gt;
                          &lt;CartonDetail&gt;
                              &lt;SKU&gt;12390&lt;/SKU&gt;
                              &lt;Description&gt;abc&lt;/Description&gt;
                              &lt;SerialNumber&gt;67232&lt;/SerialNumber&gt;
                              &lt;QtySent&gt;2&lt;/QtySent&gt;
                              &lt;QtyReceived/&gt;
                          &lt;/CartonDetail&gt;
                      &lt;/Carton&gt;
                      &lt;Carton&gt;
                          &lt;CartonHeader&gt;
                              &lt;NrOfItems&gt;2&lt;/NrOfItems&gt;
                              &lt;CartionID&gt;100&lt;/CartionID&gt;
                          &lt;/CartonHeader&gt;
                          &lt;CartonDetail&gt;
                              &lt;SKU&gt;12345&lt;/SKU&gt;
                              &lt;Description&gt;abc&lt;/Description&gt;
                              &lt;SerialNumber&gt;6789&lt;/SerialNumber&gt;
                              &lt;QtySent&gt;20&lt;/QtySent&gt;
                              &lt;QtyReceived/&gt;
                          &lt;/CartonDetail&gt;
                          &lt;CartonDetail&gt;
                              &lt;SKU&gt;12390&lt;/SKU&gt;
                              &lt;Description&gt;abc&lt;/Description&gt;
                              &lt;SerialNumber&gt;67232&lt;/SerialNumber&gt;
                              &lt;QtySent&gt;2&lt;/QtySent&gt;
                              &lt;QtyReceived/&gt;
                          &lt;/CartonDetail&gt;
                      &lt;/Carton&gt;
                  &lt;/Cartons&gt;
              &lt;/ShipmentHeader&gt;
              &lt;ShipmentHeader&gt;
                  &lt;ShipmentNumber&gt;S002&lt;/ShipmentNumber&gt;
                  &lt;ReceivingBranch&gt;B000029&lt;/ReceivingBranch&gt;
                  &lt;SendingBranch&gt;B000002&lt;/SendingBranch&gt;
                  &lt;ExpectedDate&gt;2012/06/3&lt;/ExpectedDate&gt;
                  &lt;TotalNrOfCartons&gt;21&lt;/TotalNrOfCartons&gt;
                  &lt;ShipmentStatus&gt;E&lt;/ShipmentStatus&gt;
                  &lt;Cartons&gt;
                      &lt;Carton&gt;
                          &lt;CartonHeader&gt;
                              &lt;NrOfItems&gt;3&lt;/NrOfItems&gt;
                              &lt;CartionID&gt;91&lt;/CartionID&gt;
                          &lt;/CartonHeader&gt;
                          &lt;CartonDetail&gt;
                              &lt;SKU&gt;12345&lt;/SKU&gt;
                              &lt;Description&gt;abc&lt;/Description&gt;
                              &lt;SerialNumber&gt;6789&lt;/SerialNumber&gt;
                              &lt;QtySent&gt;20&lt;/QtySent&gt;
                              &lt;QtyReceived/&gt;
                          &lt;/CartonDetail&gt;
                          &lt;CartonDetail&gt;
                              &lt;SKU&gt;12390&lt;/SKU&gt;
                              &lt;Description&gt;abc&lt;/Description&gt;
                              &lt;SerialNumber&gt;67232&lt;/SerialNumber&gt;
                              &lt;QtySent&gt;2&lt;/QtySent&gt;
                              &lt;QtyReceived/&gt;
                          &lt;/CartonDetail&gt;
                      &lt;/Carton&gt;
                      &lt;Carton&gt;
                          &lt;CartonHeader&gt;
                              &lt;NrOfItems&gt;1&lt;/NrOfItems&gt;
                              &lt;CartionID&gt;97&lt;/CartionID&gt;
                          &lt;/CartonHeader&gt;
                          &lt;CartonDetail&gt;
                              &lt;SKU&gt;12390&lt;/SKU&gt;
                              &lt;Description&gt;abc&lt;/Description&gt;
                              &lt;SerialNumber&gt;67232&lt;/SerialNumber&gt;
                              &lt;QtySent&gt;2&lt;/QtySent&gt;
                              &lt;QtyReceived/&gt;
                          &lt;/CartonDetail&gt;
                      &lt;/Carton&gt;
                  &lt;/Cartons&gt;
              &lt;/ShipmentHeader&gt;
          &lt;/Shipments&gt;
      &lt;/DownloadShipmentDataV001Response&gt;
  &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>