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. C#
  4. webservice problem

webservice problem

Scheduled Pinned Locked Moved C#
helpquestionannouncement
6 Posts 4 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    hi when i update my webreference(localhost) of client application, my Microsoft.VSDesigner doesnt generate code for "Reference.cs" file and i must fill it manually. what should i do???

    B P 2 Replies Last reply
    0
    • L Lost User

      hi when i update my webreference(localhost) of client application, my Microsoft.VSDesigner doesnt generate code for "Reference.cs" file and i must fill it manually. what should i do???

      B Offline
      B Offline
      Bahadir Cambel
      wrote on last edited by
      #2

      it is a static designer.I had the same problems , and I did the same things, that you've done. But the fact is , Reference.cs is a cs file , so you may code into it , I dont know what you update , so the programming will have a border , if you change the whole service , it is impossible , I guess..But for example , it is about IP , you may re-code the file.. Anyways if you find a exact solutions , please let me know.. Bahadir

      1 Reply Last reply
      0
      • L Lost User

        hi when i update my webreference(localhost) of client application, my Microsoft.VSDesigner doesnt generate code for "Reference.cs" file and i must fill it manually. what should i do???

        P Offline
        P Offline
        PatrickShane
        wrote on last edited by
        #3

        WDI, If you are modifying the web service project that you've added a web reference to, then you can make VS update Reference.cs by right-clicking the web reference and choosing the update option. You'll need to rebuild and/or re-deploy the web service after you change it and before you do this, of course. If you're writing a designer for a custom control, then give us some more details because I'm not sure what you're trying to accomplish or what the problem is. PatrickShane Microsoft Web Services Team

        W 1 Reply Last reply
        0
        • P PatrickShane

          WDI, If you are modifying the web service project that you've added a web reference to, then you can make VS update Reference.cs by right-clicking the web reference and choosing the update option. You'll need to rebuild and/or re-deploy the web service after you change it and before you do this, of course. If you're writing a designer for a custom control, then give us some more details because I'm not sure what you're trying to accomplish or what the problem is. PatrickShane Microsoft Web Services Team

          W Offline
          W Offline
          WDI
          wrote on last edited by
          #4

          hi it is obvious that i update reference by rightClick the webReference, rebuild webservice,client and any things i thought and i didnt wrote a designer .

          P 1 Reply Last reply
          0
          • W WDI

            hi it is obvious that i update reference by rightClick the webReference, rebuild webservice,client and any things i thought and i didnt wrote a designer .

            P Offline
            P Offline
            PatrickShane
            wrote on last edited by
            #5

            WDI, I'm responding to your e-mail back in the forum. WDI wrote: Hi this is exact problem. when i add webmethod to webservice and build it and update client webreference, client knows the new webmethod without any problem. but when i add a new class to webservice project and build it and update client webreference, client doesnt know the new class. Note:this is a new problem and a few days ago when i added a new class to webservice client could knows new class. this problem is for new solutions too. If you added a new web service class by putting it into a new ASMX file, then that's a separate web reference. You'll need to add it to the client project as a new web reference. If you added a new web service class to the existing ASMX file, then it won't be visible to the world. You can only have one web service class in each ASMX file. Your project will still build if you do this, but only the first class will be exposed in the WSDL. Hope this helps, PatrickShane

            W 1 Reply Last reply
            0
            • P PatrickShane

              WDI, I'm responding to your e-mail back in the forum. WDI wrote: Hi this is exact problem. when i add webmethod to webservice and build it and update client webreference, client knows the new webmethod without any problem. but when i add a new class to webservice project and build it and update client webreference, client doesnt know the new class. Note:this is a new problem and a few days ago when i added a new class to webservice client could knows new class. this problem is for new solutions too. If you added a new web service class by putting it into a new ASMX file, then that's a separate web reference. You'll need to add it to the client project as a new web reference. If you added a new web service class to the existing ASMX file, then it won't be visible to the world. You can only have one web service class in each ASMX file. Your project will still build if you do this, but only the first class will be exposed in the WSDL. Hope this helps, PatrickShane

              W Offline
              W Offline
              WDI
              wrote on last edited by
              #6

              Hi no the class is a .cs file and not an ASMX file. what should i do plz?

              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