Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. WCF operationcontract

WCF operationcontract

Scheduled Pinned Locked Moved WPF
csharpwcfquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arkiboys
    wrote on last edited by
    #1

    In my wcf project, I can see several operationcontracts I do not see the new one I have just added i.e. inside the interface class: ... ... ... [OperationContract] void WriteAllSQL(string strXML); in the .svc.cs file ... ... ... public void WriteAllSQL(string strXML) { ... ... } On the client, when I create an instance to the wcf, I only see the previous operationcontracts and not the new ones. Have i not done something correctly?

    A 1 Reply Last reply
    0
    • A arkiboys

      In my wcf project, I can see several operationcontracts I do not see the new one I have just added i.e. inside the interface class: ... ... ... [OperationContract] void WriteAllSQL(string strXML); in the .svc.cs file ... ... ... public void WriteAllSQL(string strXML) { ... ... } On the client, when I create an instance to the wcf, I only see the previous operationcontracts and not the new ones. Have i not done something correctly?

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      Check whether you refreshed your service reference on the client side.

      The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick

      A 1 Reply Last reply
      0
      • A Abhinav S

        Check whether you refreshed your service reference on the client side.

        The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick

        A Offline
        A Offline
        arkiboys
        wrote on last edited by
        #3

        yes, I have already and still do not see the new method inside the wcf. As an extra test, I used the wcf client test and give it the endpoint. It shows the new method but still can not figure out why after refreshing the service references, the client does not see the new method. Note that I see the old methods I created but anything new I add, does not get shown to the client in th esilverlight project. Thanks

        V 1 Reply Last reply
        0
        • A arkiboys

          yes, I have already and still do not see the new method inside the wcf. As an extra test, I used the wcf client test and give it the endpoint. It shows the new method but still can not figure out why after refreshing the service references, the client does not see the new method. Note that I see the old methods I created but anything new I add, does not get shown to the client in th esilverlight project. Thanks

          V Offline
          V Offline
          varshavmane
          wrote on last edited by
          #4

          Well I would suggest just delete all your service references, client config file, bin and obj folder and then add them again. HTH. :)

          modified on Monday, December 27, 2010 4:58 AM

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups