title: Consuming Java Web Service from .NET
body: <p>I have a web service written in Java now I want to consume that web service in the .NET world. I use the WSDL to add a proxy class to my .NET application but when I invoke the Java web service method the response is always null. Anyone familiar with this issue?</p>
  
  <p>UPDATE 1: </p>
  
  <p>Another thing I noted is that I opened one of the svcinfo files and found the following code: </p>
  
  <pre><code>&lt;endpoint normalizedDigest="&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-16&amp;quot;?&amp;gt;&amp;lt;Data address=&amp;quot;http://fff.mywebserive/somewebservie&amp;quot; binding=&amp;quot;basicHttpBinding&amp;quot; bindingConfiguration=&amp;quot;DOC_TOI_Binding&amp;quot; contract=&amp;quot;ServiceReference1.DOC_TOI_PortType&amp;quot; name=&amp;quot;DOC_TOI_Port&amp;quot; /&amp;gt;" digest="&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-16&amp;quot;?&amp;gt;&amp;lt;Data 
  </code></pre>
  
  <p>This does not look right to me! </p>
  
  <p>UPDATE 2: Solution (Kind of)</p>
  
  <p>The problem was that the response had a different namespace than used by the client proxy class. This way the object was never deserialized correctly. Once, I changed the namespace to match the response namespace it worked fine. But now if I update the web service reference I will again get the same issue as the namespace will be updated. What is a good way to solve this problem? The only solution I can think of is to ask the creator of the webservice to use the correct namespace. </p>