Loading a WCF Component from Behind a Proxy Server (Magic xpa 4.x)
There are two possible ways to handle an authenticated proxy server while using the Svcutil.exe file to generate a WCFClient proxy. Both require some changes in the Svcutil.exe file.
The configuration below uses the proxy specified in the browser's settings:
<system.net>
    <defaultProxy useDefaultCredentials="true">
       <proxy usesystemdefault="true" bypassonlocal="true" />
    </defaultProxy>
</system.net>
You can also specify which proxy is used by the Svcutil.exe file:
<system.net>
    <defaultProxy useDefaultCredentials="true">
        <proxy usesystemdefault="false" proxyaddress=10.9.3.17:8080  
               bypassonlocal="true" />
    </defaultProxy>
</system.net>
You need to create a new assembly that will provide authentication details to the proxy server in one of two ways:
After creating an assembly as mentioned above, you need to change or create the Svcutil.exe file as follows:
<system.net>
              <defaultProxy enabled="true" useDefaultCredentials="false">
                     <module type="ProxyAuthentication.MyProxy,
                                            ProxyAuthentication" />
              </defaultProxy>
</system.net>