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. Accessing WCF from Excel/VBA

Accessing WCF from Excel/VBA

Scheduled Pinned Locked Moved C#
csharpwcftutorialphp
8 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.
  • D Offline
    D Offline
    devvvy
    wrote on last edited by
    #1

    I'm accessing WCF via Excel VBA using WCF Service Moniker[^]. Despite issues with https, non-intrinsic types (enum, Dictionary)...etc which all resolved (well, *avoided* by not using these, not resolved), I still face one obstacle - while invoking operations and sending to WCF interface with data of appreciable length OK (by setting Binding.ReaderQuotas.MaxStringContentLength to a big number on server side), unfortunately: retrieving data > 8192 characters from WCF interface seems like a show stopper. You can't configure proxy on Excel/VBA side to override ReaderQuota. "The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader..." It appears to properly consume WCF from Excel/VBA, you'd need do this thru calling dotnet dll from Excel/VBA[^]. But even this strategy is unproven... for example, your dll not going to have config where you can specify endpoint ReaderQuota overrides. There's a little article on this though[^] I Googled around no joy. Any help/suggestion? Thanks!

    dev

    L M 2 Replies Last reply
    0
    • D devvvy

      I'm accessing WCF via Excel VBA using WCF Service Moniker[^]. Despite issues with https, non-intrinsic types (enum, Dictionary)...etc which all resolved (well, *avoided* by not using these, not resolved), I still face one obstacle - while invoking operations and sending to WCF interface with data of appreciable length OK (by setting Binding.ReaderQuotas.MaxStringContentLength to a big number on server side), unfortunately: retrieving data > 8192 characters from WCF interface seems like a show stopper. You can't configure proxy on Excel/VBA side to override ReaderQuota. "The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader..." It appears to properly consume WCF from Excel/VBA, you'd need do this thru calling dotnet dll from Excel/VBA[^]. But even this strategy is unproven... for example, your dll not going to have config where you can specify endpoint ReaderQuota overrides. There's a little article on this though[^] I Googled around no joy. Any help/suggestion? Thanks!

      dev

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Does this have anything to do with C#?

      C D 2 Replies Last reply
      0
      • L Lost User

        Does this have anything to do with C#?

        C Offline
        C Offline
        CHill60
        wrote on last edited by
        #3

        Nope! :doh:

        1 Reply Last reply
        0
        • D devvvy

          I'm accessing WCF via Excel VBA using WCF Service Moniker[^]. Despite issues with https, non-intrinsic types (enum, Dictionary)...etc which all resolved (well, *avoided* by not using these, not resolved), I still face one obstacle - while invoking operations and sending to WCF interface with data of appreciable length OK (by setting Binding.ReaderQuotas.MaxStringContentLength to a big number on server side), unfortunately: retrieving data > 8192 characters from WCF interface seems like a show stopper. You can't configure proxy on Excel/VBA side to override ReaderQuota. "The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader..." It appears to properly consume WCF from Excel/VBA, you'd need do this thru calling dotnet dll from Excel/VBA[^]. But even this strategy is unproven... for example, your dll not going to have config where you can specify endpoint ReaderQuota overrides. There's a little article on this though[^] I Googled around no joy. Any help/suggestion? Thanks!

          dev

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          We found VBA to be completely impractical, so much so that the team moved to VSTO, lost a major resource and put development back 2-3 months. It sounds like you got further down the line than we did :( . The whole construct became too fragile and required too much support. And getting VBA resources is almost impossible.

          Never underestimate the power of human stupidity RAH

          D 1 Reply Last reply
          0
          • M Mycroft Holmes

            We found VBA to be completely impractical, so much so that the team moved to VSTO, lost a major resource and put development back 2-3 months. It sounds like you got further down the line than we did :( . The whole construct became too fragile and required too much support. And getting VBA resources is almost impossible.

            Never underestimate the power of human stupidity RAH

            D Offline
            D Offline
            devvvy
            wrote on last edited by
            #5

            VBA is extensively used in Banking industry unfortunately.

            dev

            M 1 Reply Last reply
            0
            • D devvvy

              VBA is extensively used in Banking industry unfortunately.

              dev

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #6

              :sigh: I know.

              Never underestimate the power of human stupidity RAH

              D 1 Reply Last reply
              0
              • L Lost User

                Does this have anything to do with C#?

                D Offline
                D Offline
                devvvy
                wrote on last edited by
                #7

                yea the server side of things if you have anything to offer

                dev

                1 Reply Last reply
                0
                • M Mycroft Holmes

                  :sigh: I know.

                  Never underestimate the power of human stupidity RAH

                  D Offline
                  D Offline
                  devvvy
                  wrote on last edited by
                  #8

                  every bank has this problem

                  dev

                  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