Lists.asmx, GetList மற்றும் "மதிப்பு பூஜ்ஜிய இருக்க முடியாது”

நான் இன்று கண்டுபிடிக்கப்பட்டது என்று GetList() method in lists.asmx web service has to be called very carefully or it’s prone to throw a mysterious “Value cannot be null” exception (மற்றும் அனுமானித்து என்று நீங்கள் இன்னும் மோசமாக பொதுவான பிழை செய்தி கடந்த பெற முடியும், “Exception of type ‘Microsoft.SharePoint.SoapServer.SoapServerException’ எறியப்பட்ட. ")  குறிப்பாக, I found that you can’t provide any kind of prefix on the GetList method.  The following jQuery snippet illustrates the point:

image

If you do that, the web service responds with “Value cannot be null” as per this FIDDLER-provided HTTP transcript:

<?xml version="1.0" encoding="utf-8"?>
  <soap:கடித உறை
     xmlns:soap="
HTTP://schemas.xmlsoap.org / சோப்பு / உறை /"    
     xmlns:xsi=”
HTTP://www.w3.org/2001/XMLSchema-instance"
     xmlns:xsd="
HTTP://www.w3.org/2001/XMLSchema">

  <soap:உடல்>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>
        Exception of type ‘Microsoft.SharePoint.SoapServer.SoapServerException’ was thrown.
      </faultstring>
      <detail>
        <errorstring xmlns="
HTTP://schemas.microsoft.com / ஷேர்பாயிண்ட் / சோப்பு /">
மதிப்பு பூஜ்ஜிய இருக்க முடியாது.
        </errorstring>
      </detail>
    </soap:Fault>
  </soap:உடல்>
</soap:கடித உறை>

நிச்சயமாக, you probably wouldn’t add that “s0” prefix on your own, but some tools are prone to do it (like Eclipse).

This is all the more confusing / frustrating because other methods tolerate prefixes.  உதாரணமாக, உருக்கு GetListCollection method doesn’t mind if it’s been prefixed, even with nonsense prefixes like “xyzzy”:

image

This “value cannot be null” seems fairly common with lists.asmx so hopefully this will help someone out in future.

</இறுதியில்>

என்னுடைய குழுசேர்.

மணிக்கு ட்விட்டரில் என்னை பின் http://www.twitter.com/pagalvin

ஒன் நினைத்தேன் "Lists.asmx, GetList மற்றும் "மதிப்பு பூஜ்ஜிய இருக்க முடியாது”

ஒரு பதில் விட்டு PVA பதிலை நிருத்து

உங்கள் மின்னஞ்சல் முகவரி வெளியிடப்பட்ட முடியாது. தேவையான புலங்கள் குறிக்கப்பட்டன *