title: Java WebService with .NET issue.  Results different with scvutil /wrapped and not
body: <p>I'm using a well known vendor's <a href="https://portal.ultradns.com/static/docs/NUS_API_XML_SOAP.pdf" rel="nofollow">API</a> with a WSDL <a href="http://ultra-api.ultradns.com:8008/UltraDNS_WS/v01?wsdl" rel="nofollow">link1</a>, <a href="http://uploading.com/files/8e767a6c/UltraDNS.xml/" rel="nofollow">link2</a> (click <code>wait to download</code>):</p>
  
  <p>The above mentioned documentation wants me to create an Authentication request packet like this:</p>
  
  <pre><code> &lt;soapenv:Envelope xmlns:soapenv=‖http://schemas.xmlsoap.org/soap/envelope/‖
  xmlns:web=‖http://UltraWebServiceLocation/‖&gt;
  &lt;soapenv:Header&gt;
  &lt;wsse:Security soapenv:mustUnderstand=‖1‖ xmlns:wsse=‖http://docs.oasisopen.
  org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd‖&gt;
  &lt;wsse:UsernameToken wsu:Id=‖UsernameToken-16318950‖ xmlns:wsu=‖http://docs.oasisopen.
  org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd‖&gt;
  &lt;wsse:Username&gt;bwooster&lt;/wsse:Username&gt;
  &lt;wsse:Password Type=‖http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-
  token-profile-1.0#PasswordText‖&gt;**********&lt;/wsse:Password&gt;
  &lt;wsse:Nonce&gt;QTvkiqEFK7uJuOssMndagA==&lt;/wsse:Nonce&gt;
  &lt;wsu:Created&gt;2009-04-14T21:20:57.108Z&lt;/wsu:Created&gt;
  &lt;/wsse:UsernameToken&gt;
  &lt;/wsse:Security&gt;
  &lt;/soapenv:Header&gt;
  </code></pre>
  
  <p>My client binding looks like this; and am using a service reference instead of a web reference.</p>
  
  <pre><code>        UltraDNS.UltraDNS1Client client = new UltraDNS.UltraDNS1Client();
          client.ClientCredentials.UserName.UserName = "user";
          client.ClientCredentials.UserName.Password = "pass";
  
          var results = client.getResourceRecordsOfZone("domain.com",1);
          // Throws InvalidOperationException: There was an error reflecting 'UltraWSException'.
          // Detail:
          //{"Namespace='http://webservice.api.ultra.neustar.com/v01/' is not supported with rpc\\literal SOAP. The wrapper element has to be unqualified."}
  </code></pre>
  
  <p>The web config looks like this</p>
  
  <pre><code>&lt;system.serviceModel&gt;
          &lt;bindings&gt;
              &lt;basicHttpBinding&gt;
                  &lt;binding name="UltraDNS1Binding" closeTimeout="00:01:00" openTimeout="00:01:00"
                      receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
                      bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                      maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                      messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                      useDefaultWebProxy="true"&gt;
                      &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                          maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
                      &lt;security mode="None"&gt;
                          &lt;transport clientCredentialType="None" proxyCredentialType="None"
                              realm="" /&gt;
                          &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt;
                      &lt;/security&gt;
                  &lt;/binding&gt;
              &lt;/basicHttpBinding&gt;
          &lt;/bindings&gt;
          &lt;client&gt;
              &lt;endpoint address="http://ultra-api.ultradns.com:80/UltraDNS_WS/v01"
                  binding="basicHttpBinding" bindingConfiguration="UltraDNS1Binding"
                  contract="UltraDNSService.UltraDNS1" name="UltraWebServiceV01Port" /&gt;
          &lt;/client&gt;
      &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>When I use SVCUtil to generate the proxy class with the <code>/wrap</code> parameter I get the following error:</p>
  
  <pre><code>{"The top XML element 'result' from namespace '' references distinct types System.String and ZoneInfoData[]. Use XML attributes to specify another XML name or namespace for the element or types."}
  </code></pre>