வகை பதிவுகள்: lists.asmx

விரைவான மற்றும் எளிமையான: "செல்லாத URL அளவுரு தீர்க்க” lists.asmx உள்ள UpdateListItems பிரச்சனை

When working with UpdateListItems via lists.asmx, it’s easy to generate the error:

Invalid URL Parameter.

The URL provided contains an invalid Command or Value. Please check the URL again.

You can get this error when you forget to include ID in the the list of fields to update.  இந்த, like a lot of these SP web services, is a bit counterintuitive since you need to include the ID in the ID attribute of the <Method> element.  And you’re not updated ID and probably never want to in the first place.

This SOAP envelope works:

<soapenv:உறை xmlns:soapenv ='http://schemas.xmlsoap.org/soap/envelope/'>
  <soapenv:உடல்>                      
    <UpdateListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>                     
      <listname>{C712E2EA-54E1-47AD-9D99-1848C7773E2F}</listname>                     
        <updates>                     
         <Batch OnError="Continue">
          <Method ID="1" Cmd="Update">
            <Field Name="CooperativeLock">locked!</புலம்>
            <Field Name="ID">1</புலம்>
          </Method>
        </Batch>                     
        </updates>                
      </UpdateListItems>             
  </soapenv:உடல்>         
</soapenv:கடித உறை>

If you strip out the ID field reference then you’ll get the annoying “Invalid URL parameter” message.

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

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

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