title: Calling Webservice inside webservice WCF
body: <p>I'm working on a SOAP project which contains:</p>
  <ul>
  <li>C# client</li>
  <li>C# server (WCF)</li>
  <li>J2EE server (with webservice)</li>
  </ul>
  <p>On my <strong>C# Server</strong>, I have my <code>service</code> and I'm adding the <strong>J2EE WSDL</strong> to this project to calling a J2EE method.</p>
  <p>But I'm still having an issue. Which does not append when I'm calling the WSDL from an console app wjich contains a <strong>MAIN</strong>.</p>
  <p>Any clue if there is a restriction or anything else?</p>
  <p>the service:</p>
  <pre><code>public class ClientRequest : IClientRequest
      {
          public STG m_service(STG msg)
          {
              var remoteJavaServer = new ServerServicesClient();
              remoteJavaServer.Open();
              Console.WriteLine(&quot;Result value for 2 square -&gt; {0}&quot;, remoteJavaServer.test(2));
  
  
              return msg;
          }
  
          public int m_square(int i)
          {
              Console.WriteLine(&quot;value input = &quot;+i);
              return i*i;
          }
      }
  </code></pre>
  <p>the console app :</p>
  <pre><code>class Program
      {
          static void Main(string[] args)
          {
              var client = new ServerServicesClient();
              client.Open();
              Console.WriteLine(&quot;2 -&gt; {0}&quot;, client.test(2));
          }
      }
  </code></pre>