Generating proxy on the Duplex example

I can compile and run the WCF Duplex example no problem, but when I use SvcUtil.exe to regenerate the proxy (without changing anything), the contract parameters become custom types with the same name as the containing method.

I am running the full February CTP combo

Any clues

DickP

// the original

public class CallbackHandler : ICalculatorDuplexCallback

{

public void Equals(double result)

...

public void Equation(string equation)

...

}

// ###################

// Regenerated

....

public void Equals(Equals request)

....

public void Equation(Equation request)

....




Answer this question

Generating proxy on the Duplex example

  • Draggi

    I also get the same problem with the ListBasedPubSub example, while most of the other examples I've tried generate fine. I therefore conclude that the problem only applies to duplex MEPs.

    To be more precise, the problem presents as a compilation error saying the client does not implement the callback interface. As discussed above this is because the generated proxy subverts the callback contract.

    All I do to generate the proxy is this:

    svcutil /config:app.config http://localhost/servicemodelsamples/service.svc wsdl /out:generatedproxy.cs

    I did not have this problem with the Jan CTP. Has anybody successfully generated a proxy class for a service contract with a duplex MEP using the February CTP

    Dick



  • AlinaMaria

    Hi,

    I was able to reproduce this issue. I have assigned the issue to our developer team for further investigation.

    Thanks!

    Daniel Roth



  • BarryIOS

    Yes I have. I'm not sure what how you're failing though.

    Please send me a zipped sample (I guess I haven't seen ListBasedPubSub, is that from MS ). I'll respond with my sample.

    smason@microsoft.com

    Thanks!

    Scott



  • Eadd

    Just reinstalled SDK. Re-ran the test. Same problem.

    The SDK install log file had an error saying that the install failed because the windows command shell was already installed - even though I removed it beforehand.

    Scott, I will send you a zip file. The generated proxy file might give you some clues.

    Dick



  • VistaGeek

    Daniel,

    Has there been a resolution to the duplex communication problem in the Feb CTP I was able to compile the sample but when run (using proxy with sample) the service throws a fault. Thanks.

    Al Alberto


  • Madhu Sudhan

    Thanks for the response Scott.

    There is probably not much point sending you code. I am using sample code from the SDK.

    I could not compile my sample projects with the Feb CTP so I went back to basics:

    - downloaded the "Duplex" sample from the Feb Windows SDK

    - compiled and run ok

    - deleted the client app.config and generatedproxy.cs

    - svcutil /config:app.config http://localhost/servicemodelsamples/service.svc wsdl /out:generatedproxy.cs

    - compilation error: client does not implement callback interface. Clicked the smart tag to implement the interface. The method signatures were corrupted as previously discussed.

    - I repeated the above with other code samples. The only ones that failed had a duplex MEP.

    If you have successfully generated a proxy the problem must be specific to my installation. It may be a coincidence but I was greeted with disk corruption problems this morning. CHKDSK complained about various .cpp and .h files so I might have corrupt SDK. I am going to download a fresh copy and reinstall.

    Cheers

    Dick



  • Generating proxy on the Duplex example