title: Service Mediation Using Proxy Services -WSO2
body: <p>I'm new to this area and i need to access my web service via the ESB. as it mentioned in here - <a href="http://docs.wso2.org/wiki/display/ESB460/Quick+Start+Guide" rel="nofollow">Service Mediation Using Proxy Services</a> i tried to to create it. after that i run it and get the response as follows :</p>
  
  <pre><code>&lt;TryitProxyError xmlns:h="http://wso2.org/ns/TryitProxy"
  h:status="SOAP envelope error"&gt;org.apache.axis2.AxisFault:
  The input stream for an incoming message is null.&lt;/TryitProxyError&gt;
  </code></pre>
  
  <p>but i tried to run same web method using <strong>SOAPUi</strong> and get the expected out put as below:</p>
  
  <pre><code>&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
     &lt;soap:Body&gt;
        &lt;getPatientHistoryResponse xmlns="http://tilani.lk/"&gt;
           &lt;getPatientHistoryResult&gt;
              &lt;NIC&gt;123&lt;/NIC&gt;
              &lt;FullName&gt;ABC DEF&lt;/FullName&gt;
              &lt;FirstName&gt;ABC&lt;/FirstName&gt;
              &lt;Surname&gt;DEF&lt;/Surname&gt;
              &lt;Title&gt;Mr.&lt;/Title&gt;
              &lt;Gender&gt;M/Gender&gt;
           &lt;/getPatientHistoryResult&gt;
        &lt;/getPatientHistoryResponse&gt;
     &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>what is the reason for this? i created this using .net</p>
  
  <p>my <strong>WSDL Address</strong> - <code>http://localhost:2935/PatientRegService.asmx?WSDL</code></p>
  
  <p>then in 
  <strong>Define Endpoint</strong> as - <code>http://localhost:2935/PatientRegService.asmx</code></p>
  
  <p><strong>EDIT</strong>
  my proxy configuration is as follows:</p>
  
  <pre><code>&lt;proxy xmlns="http://ws.apache.org/ns/synapse" name="PatientManagement" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"&gt;
     &lt;target&gt;
        &lt;outSequence&gt;
           &lt;send/&gt;
        &lt;/outSequence&gt;
        &lt;endpoint&gt;
           &lt;address uri="http://localhost:2935/PatientRegService.asmx?WSDL"/&gt;
        &lt;/endpoint&gt;
     &lt;/target&gt;
     &lt;publishWSDL uri="http://localhost:2935/PatientRegService.asmx?WSDL"/&gt;
     &lt;description&gt;&lt;/description&gt;
  &lt;/proxy&gt;
  </code></pre>