Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF client proxy generation failing with new method addition
    primarykey
    data
    text
    <p>I have a library I need to generate client proxy classes for, and the existing code works fine when running this command and the service on my local box</p> <pre><code>svcutil.exe /config:thn /r:Citi.Rbcs.BusGn.dll /r:Citi.Rbcs.Buscm.dll net.tcp://localhost:8088/RbcThnService/mex </code></pre> <p>The client proxy is generated fine. RbcThnService uses an interface IRbcThinService. If I then add a new method to that interface as follows</p> <pre><code>[OperationContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)] [FaultContract(typeof (GenericException))] [FaultContract(typeof (CustomException))] RbcCustomerStructure GetCustomerStructures(string CustomerId, short QueueId, DateTime dateUpdate, RbcSecurityContext securityContext); </code></pre> <p>Then rebuild and install the service, and try to regenerate the client proxies, I get</p> <pre><code>There is an error in the XML document. The value for the 'type' attribute is invalid - 'q32:ArrayOfstring' is an invalid value for the 'type' attribute. </code></pre> <p>It sounds like it's not finding a certain type in the declarations, but the odd thing is there is another method in the interface with EXACTLY the same signature in the original library, which allows the client proxy to generate just fine. So I am only creating an identical method to an already existing one, just with a new name.</p> <p>Does anyone have any suggestions?</p> <p>UPDATE: Ok the plot thickens, if I comment out even one of the existing methods and retry - it works with the new method. I've tried stripping it down to only a handful of methods plus the new one, it works. I gradually reintroduced the other methods one by one and it kept working, until I added the very final one in, then it errored.</p> <p>Interestingly I got up to the point of having one original method commented out and it was working, then I created a SECOND dummy NEW method and it errored, same error but instead of ArrayOfstring it had a different type it was failing because of.</p> <p>So if I'm not barking up the wrong tree it seems to be tied to either the number of methods I have in the interface definition, or the length of the generated XML potentially. Are there any limitations I should be aware of?</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