Note that there are some explanatory texts on larger screens.

plurals
  1. POsvcutil generated code missing parts
    primarykey
    data
    text
    <p>I have this:</p> <pre><code>"%PROGRAMFILES%\Microsoft SDKs\Windows\v7.0A\bin\svcutil.exe" ^ /noLogo /t:code /l:cs /mc /tcv:Version35 /ct:System.Collections.Generic.List`1 /n:*,MYNS ^ /config:MyServiceProxy.config ^ /out:ServiceProxy.cs ^ https://remote-service/ServiceA?wsdl </code></pre> <p>It generates classes, types and endpoint configurations as I expect. When I add multiple endpoints ex:</p> <pre><code>"%PROGRAMFILES%\Microsoft SDKs\Windows\v7.0A\bin\svcutil.exe" ^ /noLogo /t:code /l:cs /mc /tcv:Version35 /ct:System.Collections.Generic.List`1 /n:*,MYNS ^ /config:MyServiceProxy.config ^ /out:ServiceProxy.cs ^ https://remote-service/ServiceA?wsdl https://remote-service/ServiceB?wsdl https://remote-service/ServiceC?wsdl </code></pre> <p>no endpoints in MyServiceProxy.config, and all the ServiceAWsClient() methods are missing from ServiceProxy.cs.</p> <p><strong>UPDATE:</strong> I removed the /i option, bec it made the classes internal.</p> <p><strong>UPDATE:</strong> I can now generate two .cs files, if I use the /serializer:DataContractSerializer option, I got the ServiceAWsClient() classes and without it I got the shared types. Is there a way to get both the same time?</p> <p><strong>UPDATE:</strong> The file containing the ServiceAWsClient() classes still not good. Methods are missing paramteres. Why? WSDL contains:</p> <pre><code>&lt;xs:element name="service" type="tns:service"/&gt; &lt;xs:element name="serviceResponse" type="tns:serviceResponse"/&gt; &lt;xs:complexType name="service"&gt; &lt;xs:sequence&gt; &lt;xs:element name="context" type="ns1:GenericContext" minOccurs="0"/&gt; &lt;xs:element name="userData" type="ns2:UserData" minOccurs="0"/&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;xs:complexType name="serviceResponse"&gt; &lt;xs:sequence&gt; &lt;xs:element name="resultContext" type="ns1:GenericResponseContext" minOccurs="0"/&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; </code></pre> <p>svcutil generates:</p> <pre><code>public void service() { base.Channel.service(); } </code></pre> <p>when it should be:</p> <pre><code>public MYNS.GenericResultContext service(MYNS.GenericContext context, MYNS.ServiceA userData) { MYNS.service inValue = new MYNS.service(); inValue.context = context; inValue.userData = userData; MYNS.serviceResponse retVal = ((MYNS.ServiceA)(this)).service(inValue); return retVal.resultContext; } </code></pre> <p>ty!</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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