Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you generate the proxies at the same time using svcutil.exe it will only generate one type. I don't know how to do this with adding a service reference to the project.</p> <p>We run it in a batch file so I have clipped that down and changed the names to protect the innocent. It is really about mapping the service namespaces together and then <strong>including all the URLs together</strong>. It also has the collection type set (for lists) and includes an assembly reference (which some of the other answers reference.</p> <pre><code>@ECHO OFF SET cmd=C:\"Program Files"\"Microsoft SDKs"\Windows\v6.0a\bin\SvcUtil.exe SET cmd=%cmd% /out:Traffic.cs /noConfig /collectionType:System.Collections.Generic.List`1 SET cmd=%cmd% /reference:..\..\..\lib\Architecture.Frameworks.dll REM ######### Service namespace mappings (Service Contracts and Message Contracts) SET cmd=%cmd% /namespace:"http://services.test.com/app/2005/09/" SET cmd=%cmd%,"app.ServiceProxies" REM ######### Schema namespace mappings (Data Contracts) SET cmd=%cmd% /namespace:"http://schemas.company.com/app/2005/09/" SET cmd=%cmd%,"Co.ServiceProxies.app.DataContracts" REM ######### Set all the URLs that have common types SET cmd=%cmd% http://localhost/Services/MyService1.svc SET cmd=%cmd% http://localhost/Services/MyService2.svc %cmd% PAUSE </code></pre> <p>If all the items are in the same service namespace, you could possibly get away with just having all the URLs and not worry about the namespaces, but I have not tried it that way.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload