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. Lists.asmx GetList failed with error 12044

Lists.asmx GetList failed with error 12044

Scheduled Pinned Locked Moved SharePoint
xmlsharepointwcfcomsysadmin
4 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.
  • E Offline
    E Offline
    eight
    wrote on last edited by
    #1

    Hi, I'm sending this to my sharepoint server and it keeps on failing with error 12044 (ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED).

    POST /_vti_bin/Lists.asmx HTTP/1.1
    Content-Type: text/xml; charset=utf-8
    Authorization: Basic <Username:Password base64encoded>
    User-Agent: MySimpleApplication
    Host: <MySharePointServer>
    Content-Length: 449
    Cache-Control: no-cache
    SOAPAction: "http://schemas.microsoft.com/sharepoint/soap/GetList"

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    soap:Body
    <GetList xmlns="http://schemas.microsoft.com/sharepoint/soap/">
    <listName>ListName</listName>
    </GetList>
    </soap:Body>
    </soap:Envelope>

    N 1 Reply Last reply
    0
    • E eight

      Hi, I'm sending this to my sharepoint server and it keeps on failing with error 12044 (ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED).

      POST /_vti_bin/Lists.asmx HTTP/1.1
      Content-Type: text/xml; charset=utf-8
      Authorization: Basic <Username:Password base64encoded>
      User-Agent: MySimpleApplication
      Host: <MySharePointServer>
      Content-Length: 449
      Cache-Control: no-cache
      SOAPAction: "http://schemas.microsoft.com/sharepoint/soap/GetList"

      <?xml version="1.0" encoding="utf-8"?>
      <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      soap:Body
      <GetList xmlns="http://schemas.microsoft.com/sharepoint/soap/">
      <listName>ListName</listName>
      </GetList>
      </soap:Body>
      </soap:Envelope>

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

      Might it have something to do with you trying to use basic authentication while SharePoint uses Windows authentication?


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

      E 1 Reply Last reply
      0
      • N Not Active

        Might it have something to do with you trying to use basic authentication while SharePoint uses Windows authentication?


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

        E Offline
        E Offline
        eight
        wrote on last edited by
        #3

        How do I change this to include Windows authentication instead? Do I need to send different windows authentication for every request?

        E 1 Reply Last reply
        0
        • E eight

          How do I change this to include Windows authentication instead? Do I need to send different windows authentication for every request?

          E Offline
          E Offline
          eight
          wrote on last edited by
          #4

          Solved it. I found out that if SharePoint server returns (12044)ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED, just resend the content again but this time without the header. Kinda hackish, but works for me :doh:

          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