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. Web Development
  3. SharePoint
  4. Accessing SP2010 webservices

Accessing SP2010 webservices

Scheduled Pinned Locked Moved SharePoint
csharpsharepointwcfquestionlearning
3 Posts 2 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.
  • N Offline
    N Offline
    Not Active
    wrote on last edited by
    #1

    I've been trying to access the SharePoint 2010 WebServices, specifically Lists.asmx, with WCF but I keep getting 'Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown." no inner exception or other details. I can access the WebServices as a .net 2.0 web reference with no problems. Anyone have a hint?


    I know the language. I've read a book. - _Madmatt

    A 1 Reply Last reply
    0
    • N Not Active

      I've been trying to access the SharePoint 2010 WebServices, specifically Lists.asmx, with WCF but I keep getting 'Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown." no inner exception or other details. I can access the WebServices as a .net 2.0 web reference with no problems. Anyone have a hint?


      I know the language. I've read a book. - _Madmatt

      A Offline
      A Offline
      ahmedel
      wrote on last edited by
      #2

      Which binding type are you using with WCF? I believe you should be using basicHttpBinding.

      N 1 Reply Last reply
      0
      • A ahmedel

        Which binding type are you using with WCF? I believe you should be using basicHttpBinding.

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        ahmedel wrote:

        you should be using basicHttpBinding

        Yes, of course I am

        <bindings>
          <basicHttpBinding>
            <binding name="ListsSoap">
              <security mode="TransportCredentialOnly">
                <transport clientCredentialType="Ntlm" />
              </security>
            </binding>
          </basicHttpBinding>
        </bindings>
        <client>
          <endpoint address="http://myserver/\_vti\_bin/Lists.asmx"
                    binding="basicHttpBinding"
                    bindingConfiguration="ListsSoap"
                    contract="SPList.ListsSoap"
                    name="ListsSoap" behaviorConfiguration="behave" />
        </client>
        

        I know the language. I've read a book. - _Madmatt

        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