locked
Add service reference not inheriting all the mehods RRS feed

  • Question

  • User1738361912 posted

    Hi,

    when iam adding WCF service reference in windows service refernce application WCF service fails to inherit all the mehods it consists

    i have 9 methods under operation contract, ihave created this service hosted on the server iam consuming it by "add service reference" option, i added proper end point details also in app.config file, under configure service reference i unchecked "Generate asynchronous operations" option.

    It's working fine with silverlight application i consum it here also by "add service reference" option and i checked "Generate asynchronous operations" option here.

    Wednesday, January 2, 2013 6:44 AM

Answers

All replies

  • User-1662538993 posted

    Can you give some more details like how many methods do you as public under OperationContract?

    Have you created this wcf service or are you consuming third party service?

    Wednesday, January 2, 2013 9:01 AM
  • User1738361912 posted

    i have 9 methods under operation contract, ihave created this service hosted on the server iam consuming it by "add service reference" option, i added proper end point details also in app.config file, under configure service reference i unchecked "Generate asynchronous operations" option.

    It's working fine with silverlight application i consum it here also by "add service reference" option and i checked "Generate asynchronous operations" option here.

    Wednesday, January 2, 2013 9:50 AM
  • User-1000095884 posted

    duplicated reply

    Sunday, January 6, 2013 11:04 PM
  • User-1000095884 posted

    Hi,

    How about consume from windows service by "add service reference" option and check "Generate asynchronous operations" option?

    By checking "Generate Asynchronous Operations", it will generate IAsyncResult class and two methods Begin<OperationName> and End<OperationName>. By default when adding a service reference, operations are only added synchronously<!--EndFragment-->

    # WCF asynchronous client proxy and asynchronous service operations

    http://robbincremers.me/2011/12/31/wcf-asynchronous-client-proxy-and-asynchronous-service-operations/

    If it not help, can you show us how do you define those methods?

    Best Regards.

    Sunday, January 6, 2013 11:09 PM
  • User1738361912 posted

    by checking dat option also it didnt work

    In the added service reference og metadata file(WSDL) it is showing all the methods but it is not showing all the methods in project which ever using

    Wednesday, January 9, 2013 2:43 AM
  • User-1622227787 posted

    Please refer a blog that demonstrate steps to adding a service reference to a Windows Service.

    http://www.kevinritchie.co.uk/post/2010/11/09/Adding-a-Web-Service-Reference-to-a-Windows-Service.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 10, 2013 4:52 AM