Proxy generation producing out partameters?

Topics: General Discussion Forum, Service Factory Modeling Edition Forum
Mar 1, 2010 at 9:03 PM

I'm using the Data Contract & Service Contract.  I've tried adding a new operation to my Service contract.  The Request Message has one Part of type String, Response has two Items - a new Data Contract Collection defined in the Data Contract, and a Data Contract Enumeration.  is Wrapped is set to True.

I generated Data Contract code, then the Service contract code, went into the Host and generated the service.  Then ran the service, generated the Proxy.   In the proxy project, in the Service references folder, my ServiceProxy.cs defines my method as:


public myServices.WCF.Proxy.MyServiceProxy.MyCollection = GetMyCollection(string PageName, out  ResponseCode)


I obviously don't want this behavior - what can I do to avoid this kind of compilation?


thanks in advance for your time




Mar 2, 2010 at 10:57 AM


You may find in this thread a similar scenario and several tips on how to solve it. and may be this one as well,

Thanks, Hernan.

Mar 2, 2010 at 2:05 PM

I did find this thread helpful and would probably be my answer, but I don't know how to "try generating the proxy with VS option (Add Service Reference..)"


Can you tell me how?  I'm still kind of learning WCF and WSSF simultanously -  I know if I did generate the proxy in that manner that it would work.  I added a Service Reference in my Proxy project, which I generated in the Host Explorer.  I don't know how I would generate a proxy in another manner, however.


Thanks for the hand holding


Mar 2, 2010 at 8:15 PM

Just generate your host and point the "Add Service Ref.."option to your host URL after checking that your service is running fine. Also remember to set the metadata oprion as true in your host model so the VS option will be allowed to get the service WSDL and show up the dialog with all the settings.

Mar 2, 2010 at 8:21 PM

In which project do I add service reference?  The proxy project?

If so, it is harmful for me to remove the generated proxy files?  I should be able to change all of my refernces to the Proxy.dll generated to my new service reference, correct?

Thanks for your help!


Mar 3, 2010 at 2:32 PM

Yes, the proxy project and is fine to remove the gen files and update with the VS dialog ones.