Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a list called "post" which has the "publishing image" type column has one of the column on the list.

Issue is need to add new item to list through [List.asmx] web service, need to know how to create soap message for updating the list with "publishing image"

Any ideas? please answer, thanks

share|improve this question
    
"Publishing image" is the column type in list. it's nothing but the manually created site column of type "Image with formatting and constraints for publishing " –  Santhosh Oct 26 '11 at 18:23
add comment

2 Answers 2

I'm not totally sure what you are trying to do, but as Neelam shows, SPServices can help you. http://SPServices.codeplex.com

share|improve this answer
    
Hi Marc, I am trying to add new list item using list.asmx web service in JQuery code, Issue is list has column of type "Publishing Image" which is added from existing site column of type [Image with formatting and constraints for publising]. This "Publishing Image" is a content type, i am not aware of how to send soap message for content type column. Please share your ideas. Thanks –  Santhosh Oct 26 '11 at 18:36
    
I've never tried to created Publishing Pages with the Web Services; I avoid them in most cases I favor of list-based content. –  Marc D Anderson Oct 26 '11 at 22:18
add comment
   var title="#ctl00_m_g_a681e990_6a42_4591_bfa2_70a90f97cd5b_ff1_new_ctl00_ctl00_TextField";
   var number="#ctl00_m_g_a681e990_6a42_4591_bfa2_70a90f97cd5b_ff2_new";
   var Name="#ctl00_m_g_a681e990_6a42_4591_bfa2_70a90f97cd5b_ff3_new";

      $().SPServices({//default
            operation: "UpdateListItems",//default
            async: false,//default
            listName: "Sample",//change
            updates:"<Batch OnError='Continue'>" +//default
            "<Method  ID='1' Cmd='New'>" +//default
                "<Field Name='Title'>" + $(title).val() + "</Field>" +    //change   
                "<Field Name='Number'>" +$(number).val()+ "</Field>"+
                "<Field Name='Name'>"+$(Name).val()+"</Field>"+
                "<Field Name='ID'></Field>" +//default
            "</Method>" +//default
        "</Batch>",//default
            completefunc: function(xData, Status) {
               // alert($(title).val());alert($(number).val());
           var title="";
     $("#ctl00_m_g_a681e990_6a42_4591_bfa2_70a90f97cd5b_ff1_new_ctl00_ctl00_TextField").val(title)
             //  $(ctl00_m_g_4e090343_dad2_40bc_937d_6716d78e4905_ff1_new_ctl00_ctl00_TextField).val()="";
           var number="";
           $("#ctl00_m_g_a681e990_6a42_4591_bfa2_70a90f97cd5b_ff2_new").val(number);                   
          var Name="";
      $("#ctl00_m_g_a681e990_6a42_4591_bfa2_70a90f97cd5b_ff3_new").val(Name);
                alert("Add new success.");                   
          }
        });        
share|improve this answer
    
What were you trying to do here? –  Gabriel Fair Jan 22 '12 at 4:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.