Sharepoint excel web services

I am working on a sharpoint 2013 and I want to create a dashboard from sharepoint list. So I export to excel from list and upload this excel to sharepoint site. Than I create a pivot table with this data, to see dashboard on site I add web part adding dasboard
chart.
When we add new title in list, this data automatically update and I can see new data in excel sheet. But our pivot table,chart and web part dosent update automatically. We set connection every 60 min update, but it doesnt work.When we want to update web
part, it run into this error ''Unable
to refresh data for a data connection in the workbook,The following connections
failed to refresh: ThisWorkbookDataModel'
What can I do for solving this problem?
Regards
Yağmur.

I believe you need a service account to do this. There are options when you go to the data connections tab in Excel (same place where you set the 60 minute interval) where you can add your account.
Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

Similar Messages

  • SharePoint 2013 web service: Error while sending claim based authentication request (The corresponding SID in the domain is not part of the intended account type)

    We are using .asmx services for SharePoint features such as comments, and rating.
    Service
    Feature   used
    http://<<hostname>>/_vti_bin/socialdataservice.asmx
    Commenting, Rating
    http://<<hostname>>/_vti_bin/UserProfileService.asmx
    For out of box workflows
    In SharePoint 2013,
    SharePoint – 80  web application is on claims based mode and user is logging in with windows authentication. With logged-in client context used to call SharePoint's default web service, we are getting below error message from
    web service (Social data and user profile services).
    Server was unable to process request. ---> The corresponding SID in the domain is not part of the intended account type.
    When the service is accessed using console application with Visual Studio credentials (logged in user), we are able to access the service. Below is the code snippet
    using   (SocialDataService
    service = new  
    SocialDataService())
                      service.Credentials =
    CredentialCache.DefaultCredentials;
    SocialCommentDetail detail =   service.AddComment("<<url>>",
      "Test Comment",
    null,  
    null);
    Are SharePoint 2013 web services not supporting request coming with claim based authentication web application?
    Thanks, Pratik Agrawal (MAQ Software)

    While this applies to 2010, I believe the same is true with 2013:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/925e5f46-317f-46d3-bc55-c67f07eb2372/call-sharepoint-web-services-using-claimbased-authentication?forum=sharepointgeneralprevious
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • 401 Unauthorized Error When calling a SharePoint REST web service from SharePoint 2013 Workflow

    We have our Workflow Manger installed on the same server as our SharePoint 2013 WFE development environment. When creating a SharePoint 2013 Workflow all Calls to a SharePoint 2013 REST web service results in a 401 Unauthorized error.
    As an example I created a simple workflow that should return a JSON result. The REST Url returns the results in the browser without error.
    Set Variable:webServiceUrl to https://<hostnamedsitecollection>/_vti_bin/client.svc/web/lists/getbytitle('ISR%20Approvers')/Items?$select=Title&$filter=Title%20eq%20%27General%27
    then Build{...} Dictionary (Output to Variable:requestHeaders)
    then Call [%Variable:webServiceUrl%] HTTP web service with request (ResponseContent to Variable:responseContent |ResponseHeaders to responseHeaders | ResponseStatusCode to Variable:responseCode)
    The RequestHeader is set to the requestHeaders variable though the web service call properties
    then Log Variable:responseCode to the workflow history list
    After manually running the workflow in SharePoint on a list item in the ISR Approvers list it Logs "Unauthorized" in the Workflow History Log. It does this with every SharePoint REST web service call that I have tried through the workflow.
    It doesn't have anything to do with the Workflow Manger being installed on the same machine as the SharePoint WFE does it?
    Thank You for any insight

    Hi,
    According to your post, my understanding is that you had 401 Unauthorized Error when calling a SharePoint REST web service from SharePoint 2013 Workflow.
    Please make sure you use the ‘Call HTTP Web Service’ correctly.
    You can enter the URL into the brower to check whether it is correctly.
    You need to
    create the Request header requestHeaders
    using a Dictionary:
    Accept : application/json;odata=verbose
    Content-Type : application/json;odata=verbose
    To associate the
    requestHeaders variable, select the Call action
    property, set the RequestHeaders property to
    requestHeaders.
    Please refer to the following articles:
    Working with Web Services in SharePoint 2013 Workflows using SharePoint Designer 2013
    Calling the SharePoint 2013 Rest API from a SharePoint Designer
    Workflow
    In addtion, you need to make sure you install the workflow manager correctly.
    More information:
    Install and configure workflow for SharePoint Server 2013
    Known Issues in Workflow Manager 1.0
    Troubleshooting Workflow Manager 1.0 Management and Execution
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • SharePoint 2013 error 8059 & Excel Web service issues

    Hello
    The issues I am getting is a 8059 error "and exception occurred when trying to issue security
    token" it then asks me to turn on "includeexceptiondetailsinfaults" whichIi try to do on the security token service web.config. when I do this it Error 500's and I can't even access the SharePoint site, once I remove the code line I can access
    the site but cant get any more information regarding the errors .
    Any suggestions? In the ULS logs the error appears on numerous occasions.
    Next issue is regarding Excel web access, it reports an error of "we're sorry we ran into a
    problem completing your request. please try again in a few minutes"
    I tried switching form workbook url to local but I am not sure if that's the solution, I have seen
    that it resolved the issue for other users but not for me.
    Code Below
    The ULS logs report a number of entries the key one's being regarding load balancing.
    It seems to suggest UNC or permissions but I don't know where to go from here.
    05/22/2014 17:08:08.16  w3wp.exe (0x0E20)   0x1FB0  Excel Services Application  Browser ajfya   Medium  MossHostHelperMethods.IsUserLicensedForExcelServices:
    User passed 'ExcelServices' license check.    d66d939c-c124-d0d5-5242-d280742cae03
    05/22/2014 17:08:08.16  w3wp.exe (0x0E20)   0x1FB0  Excel Services Application  Browser alv5s   Medium  ExcelWebRenderer.OnLoad:
    Starting loading external EWR  d66d939c-c124-d0d5-5242-d280742cae03
    05/22/2014 17:08:08.18  w3wp.exe (0x0E20)   0x1FB0  Excel Services Application  Excel Calculation Services  ai4hl  
    Medium  MossHost.GetSPFile: exception System.ArgumentException: Value does not fall within the expected range.     at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)    
    at Microsoft.Office.Excel.Server.MossHost.MossHost.TryGetSPFile(SPWeb web, String fileUri, SPFile& file) accesing SPFile for url = https://sharepoint2013.bpdconsulting.co.uk/SA/Shared Documents/Business Development/Documents List.xlsx, possibly UNC or
    permissions   d66d939c-c124-d0d5-5242-d280742cae03
    05/22/2014 17:08:08.18  w3wp.exe (0x0E20)   0x1FB0  Excel Services Application  Browser ajfya   Medium  MossHostHelperMethods.IsUserLicensedForExcelServices:
    User passed 'ExcelServices' license check.    d66d939c-c124-d0d5-5242-d280742cae03
    05/22/2014 17:08:08.18  w3wp.exe (0x0E20)   0x1FB0  Excel Services Application  Excel Calculation Services  ai4hl  
    Medium  MossHost.GetSPFile: exception System.ArgumentException: Value does not fall within the expected range.     at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)    
    at Microsoft.Office.Excel.Server.MossHost.MossHost.TryGetSPFile(SPWeb web, String fileUri, SPFile& file) accesing SPFile for url = https://sharepoint2013.bpdconsulting.co.uk/SA/Shared Documents/Business Development/Documents List.xlsx, possibly UNC or
    permissions   d66d939c-c124-d0d5-5242-d280742cae03
    05/22/2014 17:08:08.18  w3wp.exe (0x0E20)   0x1FB0  Excel Services Application  Browser ajfya   Medium  MossHostHelperMethods.IsUserLicensedForExcelServices:
    User passed 'ExcelServices' license check.    d66d939c-c124-d0d5-5242-d280742cae03
    05/22/2014 17:08:08.18  w3wp.exe (0x0E20)   0x1FB0  SharePoint Server   Logging Correlation Data    xmnv
       Medium  User=i:0#.w|bpdconsulting\gharwood  d66d939c-c124-d0d5-5242-d280742cae03
    05/22/2014 17:08:08.18  w3wp.exe (0x0E20)   0x1FB0  Excel Services Application  Web Front End   6k3v   
    Medium  LoadBalancer.GetNextServer: failed to get server using load balancing scheme Local, falling down to health base d66d939c-c124-d0d5-5242-d280742cae03
    05/22/2014 17:08:08.18  w3wp.exe (0x0E20)   0x1FB0  Excel Services Application  Web Front End   abho   
    Monitorable ServerSession.GetNextServerHealthBased: There are no healthy servers although the number of available server in the farm is 1; updated with no candidates available for the health based load balancing. The update duration was 0 millisecs   
    d66d939c-c124-d0d5-5242-d280742cae03
    05/22/2014 17:08:08.18  w3wp.exe (0x0E20)   0x1FB0  Excel Services Application  Web Front End   ablz   
    Monitorable LoadBalancer.GetNextServerHealthBased: There are no healthy server in the farm  d66d939c-c124-d0d5-5242-d280742cae03
    05/22/2014 17:08:08.18  w3wp.exe (0x0E20)   0x1FB0  Excel Services Application  Web Front End   abgn   
    Medium  LoadBalancer.GetFailoverServer: Failed to get a failover server using health based load balancing scheme.   d66d939c-c124-d0d5-5242-d280742cae03
    05/22/2014 17:08:08.18  w3wp.exe (0x0E20)   0x1FB0  Excel Services Application  Browser aeh11   Medium  EwaState.OpenWorkbookAndUpdateState:
    errors occurred while trying to open the workbook, [MessageId: RetryError, MessageIdHash: -80526566]   d66d939c-c124-d0d5-5242-d280742cae03
    05/22/2014 17:08:08.18  w3wp.exe (0x0E20)   0x1FB0  Excel Services Application  Excel Calculation Services  ai4hl  
    Medium  MossHost.GetSPFile: exception System.ArgumentException: Value does not fall within the expected range.     at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)    
    at Microsoft.Office.Excel.Server.MossHost.MossHost.TryGetSPFile(SPWeb web, String fileUri, SPFile& file) accesing SPFile for url = https://sharepoint2013.bpdconsulting.co.uk/SA/Shared Documents/Business Development/Documents List.xlsx, possibly UNC or
    permissions   d66d939c-c124-d0d5-5242-d280742cae03
    05/22/2014 17:08:08.19  w3wp.exe (0x0E20)   0x1FB0  Excel Services Application  Browser 3kdd  

    We've seen this error when the system was under load using SharePoint 2013 workflows. We tracked it back to problems with the distributed cache service. The fix is supposed to be applying CU3 or CU4 for the AppFabric Cache and potential changing some of
    the timeouts for the distributed cache. Take a look at this article:
    http://habaneroconsulting.com/insights/SharePoint-2013-Distributed-Cache-Bug#.U3yUE_mSwsa
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Excel Web Service - yet another "Unable to process the request"

    Hello,
    On Windows Server 2008 R2 SP1 and
    SharePoint 2010 SP1 we are receiving the following error while trying to open Excel document in Excel Web Part. It shows the standard error: "An error has occured".
    When exploring ULS we found the non-informative error (An error has occurred):
    There was an error in communicating with Excel Calculation Services http://domain:port/cced17b7a4c74d56827ad40c61795580/ExcelService*.asmx exception: An error has occurred. [Session:  User: username].
    Error ID is 5240, however, this asmx service file loads normally
    by itself (using the same link from error message).
    All needed features and services are enabled. IISRESET done a lot of times, even Excel Service Application was re-created.
    Could you please help us with this problem or at least how to get more information about this "Error occurred"?
    Thank you!

    Kindly access the excel service url by removing the *.
    http://domain:port/cced17b7a4c74d56827ad40c61795580/ExcelService.asmx
    By this you will get the root issue.
    If you get the error something like:
    "Memory gates checking failed because the free memory (51486720 bytes) is less than 5% of total memory. As a result, the service will not be available for incoming requests. To resolve this, either reduce the load on the machine or adjust
    the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element."
    Then do the following:
    Edit the web.config in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config and add
    minFreeMemoryPercentageToActivateService="0" to the
    serviceHostingEnvironment element. Afterward, service will be started when there is at least 0% RAM free, i.e. always.

  • Sharepoint 2013 web service to update column content

    I have a folder in a sharepoint list. Folder have columns ie Title, modified by, modified date, details. I am trying to update details column content with csharp code for that folder. I am trying to find sharepoint service method to update a column content
    for a list item.
    Added my sp site service ex: http://mysite/_vti_bin/Lists.asmx as reference
    I included service reference in my project and create object.
    I am referrring the below service to check if I can use any method from it but unable to find it. Do we have any method to 
    https://msdn.microsoft.com/en-us/library/ms774680(v=office.12).aspx
    Sri

    Hi Sri,
    Per my understanding, you might want to update item using Lists Web Service.
    In Lists.asmx, the methods available are as below:
    https://msdn.microsoft.com/en-us/library/lists.lists_members(v=office.12).aspx
    I suggest you follow the documentation below about updating list item using Lists Web Service for a try in your environment:
    https://msdn.microsoft.com/en-us/library/office/ms440289(v=office.14).aspx
    Thanks         
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • 401 Error on Consuming SharePoint Versions Web Service by java client running on Unix Machine

    In my organiszation I have sharepoint site of our project. I have a java client to consume Versions Web Service offered by SharePoint. The response received from web service without any issue when triggered from a client running on windows machine on
    intranet.
    When same java client ran from UNIX server on same intranet, it gives 401 error. Is there some different approach required for authentication while connecting from unix machine?
    Thanks in advance.

    Hello,
    Are you passing credential in code? If not then try to add using networkcredential.
    If you are passing then make sure that current user is having access on SP site and your javaserver is setup for NTLM security. Here is few links for same issue which could help you troubleshoot the issue
    http://stackoverflow.com/questions/8884152/ntlm-fails-when-consuming-sharepoint-web-service-from-java
    http://www.pentalogic.net/sharepoint-products/reminder/reminder-manual?p=troubleshooting%2F401errors%2F401errors.htm
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • SharePoint NTLM web service from LC process problem

    Hello all,
    I'm struggling to get a LiveCycle process to update an internal SharePoint list via its NTLM Windows authenticated web service. 
    As you can see from the above, the schema definition is loaded no problem, and I can select the operation I want to run.  I've used the "Test" tab to attempt to send a request to update the list:
    Attempting to test the web service call (in Workbench) gives errors in the UI along with the server.log all to do with authentication problems.  It's worth mentioning at this point that the "User name" and "Password" boxes on the Settings have been left blank in the screenshot.  I have tried all possible combinations here, and the error messages in the log differ for each scenario, demonstrated below:
    Error in UI for all:
    Various Server.log errors:
    Blank Username / Password
    Which made me think, "I'll add a test AD username / password" and see what happens..
    With Username / Password
    Of course, "I'll add the domain before the username" and try again...
    With Username / Password (DOMAIN\Username & Password) - (tried both fully qualified domain & shortened)
    But.. It's still asking for the DOMAIN?
    The solution for now:
    In the meantime, I've resorted to enabling BASIC authentication on the SharePoint site, which accepts the request and returns a response, but realistically we don't want to enable this for a production environment.  It also doesn't help explain what the underlying issue is with LC, or even if it's a LC issue at all!
    I eagerly await some experienced person to help with knowledge on the subject..
    Thanks,
    Alex

    Our issue may be unrelated, but you will probably encounter issues with some of SP's native web services.
    I am also trying to set up processes in LC that insert list items into sharepoint, however some of SP's services in lists.asmx dont seem to have a properly exposed wsdl. I am able to get list items to properly insert (see below), and our server is set up with basic auth right now (behind the firewall).
    Once you get the right creds. over basic, do you have any issues publishing content (specifically using updatelistitems)?
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.microsoft.com/sharepoint/soap/">
       <soapenv:Header/>
       <soapenv:Body>
          <soap:UpdateListItems>
             <!--Optional:-->
             <soap:listName>Announcements</soap:listName>
             <!--Optional:-->
             <soap:updates>
    <Batch OnError="Continue" RootFolder="/Lists/Announcements">
    <Method ID='1' Cmd='New'>
    <Field Name='Title'>testforfields233</Field>
    <Field Name='Body'>!!!!!!!!!!!</Field>
    <Field Name='ApprovalStatus'>denied</Field>
    <Field Name='URL'>http://www.google.com</Field>
    </Method>
    </Batch>
             </soap:updates>
          </soap:UpdateListItems>
       </soapenv:Body>
    </soapenv:Envelope>

  • Update existing list item value in sharepoint using web service code

    I have the below code which I am trying to run for updating the list item value. "Settings" is the list name and the item in this list is having index of 1.
    Main()
            ListsSoapClient client = new ListsSoapClient();           
            client.ClientCredentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials;
            client.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
            string strListName = "Settings";          
            client.Open();          
            XElement listData = client.GetList(strListName);  
            string listID = listData.Attribute("ID").Value;
            string version = listData.Attribute("Version").Value;
            // string version = listData.Attribute("View").Value; Doesnt work
            // Method 1 : Make the call to SharePoint
            var listItems = client.GetListItems(strListName, null, null, null, null, null, null);
            List<XElement> results = listItems.Descendants().ToList();
            XElement updateItem = results[1];
            updateItem.SetAttributeValue("ows_Value", "value to update");
            client.UpdateListItems(strListName, updateItem); //Didnt work
            // Method 2 : Make the call to SharePoint
            string strBatch = "<Method ID='1' Cmd='Update'>" +
                            "<Field Name='ID'>1</Field>" +
                            "<Field Name='Title'>" + "999" + "</Field></Method>";
            XmlDocument xmlDoc = new System.Xml.XmlDocument();
            System.Xml.XmlElement elBatch = xmlDoc.CreateElement("Batch");
            //elBatch.SetAttribute("OnError","Continue"); //Not mandatory ?
            //elBatch.SetAttribute("ListVersion","1"); //Not mandatory ?
            //elBatch.SetAttribute("ViewName", "00F85842-35AD-4AED-8DF7-0F903FB850BE"); is it mandatory ?
            elBatch.InnerXml = strBatch;
            client.UpdateListItems(strListName, XmlElementToXelement(elBatch)); //doesnt work
            client.Close();
       public static XElement XmlElementToXelement(XmlElement e)
            return XElement.Parse(e.OuterXml);
    How do we get the ViewName value of the list using code ? why is it not mandatory in Method 2. At the end of the method1 i am getting the below exception.How do I fix this ?
     Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.

    you can get view name using below links:
    http://stackoverflow.com/questions/14857811/sharepoint-web-services-getlistitems-view-name
    http://www.a2zmenu.com/Blogs/SharePoint/Get-selected-view-name-of-a-SharePoint-List.aspx
    you can use SPList.getview method.

  • Excel web access: Parameters in external data sources not supported???

    I have a SharePoint 2013 site with Excel services.
    The site itself has a Current User Filter Web Part which gives filter value [userID] to a Excel web access -web part.
    In the Excel itself I have a named area(UserIDfromSharePoint) defined as a parameter.
    This parameter is being used in a Microsoft Query into an SQL database table:
    Select * from [MyTable] where UserID = ?
    The question mark is set as a parameter to the named area UserIDfromSharePoint.
    When I set the Excel Web Access -web part to show my workbook, I get the following error:
    "We're sorry. We can't open the workbook in the browser because it uses these unsupported features: • PivotTable reports that are set to refresh
    when the item in a report filter changes, or external data ranges (also called query tables)
    that use parameters"
    Is this really true???!??
    If I have understood correctly, this has been an issue since the dawn of SharePoints Excel web services.
    Does Microsoft really in this age of big data assume that all the SQL queries should be unfiltered or static?
    My table has over 3M rows, so it is not possible to bring the whole dataset into excel and filter there. I'll have to say to the customer that we need to build a reporting table into which we'll aggregate the data first rather than querying the necessary
    information...

    Hi,
    Do you mean that you have Office 2007 and Office 2010 both installed in you computer?
    Based on my test, I copy a Access 2010 database into a computer only installed Offic 2007, then using Excel 2007 to import Access database data, no error occurred.
    So double click the Access database to see whether the databased is opened with Access 2007 or Access 2010. If it is opened with Access 2010, then try to save it as Access 2007 to
    check the issue.
    Jaynet Zhang
    TechNet Community Support

  • Calling (HTTPS web service) in sharepoint 2013 workflow (SPD)

    I am using SharePoint 2013. I have created a list workflow in SharePoint Designer. I know there is an action "Call HTTP Web Service". Is it possible to access some webservice with authentication (username and password)?

    http://msdn.microsoft.com/en-us/library/office/dn567558%28v=office.15%29.aspx
    the OData formats support communication with anonymous web services as well as with those protected by various types of authentication. In short, you have full control over the request and response for each service call. This allows you to use a series of
    activities within a workflow to first authenticate using one service and obtain an OAuth token, and then include that token in future requests to services secured using the
    OAuth 2.0 protocol.
    http://blogs.msdn.com/b/kaevans/archive/2009/03/10/calling-sharepoint-lists-web-service-using-wcf.aspx
    <?xml version="1.0" encoding="utf-8" ?>
    2: <configuration>
    3: <system.serviceModel>
    4: <bindings>
    5: <basicHttpBinding>
    6: <binding name="ListsSoap">
    7: <security mode="TransportCredentialOnly">
    8: <transport clientCredentialType="Ntlm" />
    9: </security>
    10: </binding>
    11: </basicHttpBinding>
    12: </bindings>
    13: <client>
    14: <endpoint
    15: address="http://sharepoint/sites/HSC/_vti_bin/lists.asmx"
    16: binding="basicHttpBinding"
    17: bindingConfiguration="ListsSoap"
    18: contract="ServiceReference1.ListsSoap"
    19: name="ListsSoap" />
    20: </client>
    21: </system.serviceModel>
    22: </configuration>http://www.tonytestasworld.com/post/2009/06/04/How-To-Authenticate-and-Use-SharePoint-Web-Services-in-an-FBA-SharePoint-site.aspx

  • How to consume Sharepoint web services in SMP 2.3?

    Hi,
    I want to create jQuery Mobile application in which i want to call Sharepoint (SOAP) web services like (getListCollection, getListItems etc) through
    SMP 2.3 Can any one tell me in detail how to consume Sharepoint web services in SMP 2.3 so that i can use data in my jQuery Mobile Application?
    For example my web service is http://xxxxx:xx/___/Lists.asmx?op=GetListItems

    Hi Harshada,
    Any good reasons to integrate Share point Jquery mobile application with SMP ?
    because Share point web services can be consumed directly in the Jquery mobile applications.
    Please look at the below examples to achieve it.
    Sample Codes :
    Read List Items using Sharepoint Web Services and jQuery | Robert Kuzma on SharePoint,  HTML, CSS &amp;amp; JavaScript, …
    Pro-Grammar: Calling the SharePoint 2010 GetListItems web services with Jquery
    javascript - Getting list data from SharePoint 2010 site using Jquery - Stack Overflow
    -Virinchy

  • Write to SharePoint 2007 list using Web Services, getting Soap error

    Hello! I have never worked with XML or SharePoint's Web Services but am not facing a need to use it. I am attempting to write to my SharePoint 2007 list with the following code and am getting the following error :
    Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
    Here is my code I copied from Phil on StackOverflow
    Dim lists As New BofaListWebReference.Lists() lists.Credentials = System.Net.CredentialCache.DefaultCredentials
    Dim listguid As String = "{my list guid}"
    'Get Name attribute values (GUIDs) for list and view.
    Dim ndListView As System.Xml.XmlNode = lists.GetListAndView(listguid, "")
    Dim strListID As String = ndListView.ChildNodes(0).Attributes("Name").Value
    Dim strViewID As String = ndListView.ChildNodes(1).Attributes("Name").Value
    'Create an XmlDocument object and construct a Batch element and its 'attributes. Empty string as view means use the default view.
    Dim doc As New System.Xml.XmlDocument()
    Dim batchElement As System.Xml.XmlElement = doc.CreateElement("Batch") batchElement.SetAttribute("OnError", "Continue") batchElement.SetAttribute("ListVersion", "1") batchElement.SetAttribute("ViewName",
    strViewID)
    batchElement.InnerXml = "<Method ID='1' Cmd='New'>" + "<Field Name='Title'>test</Field>" Try
    lists.UpdateListItems(strListID, batchElement) Label1.Text = "Call Escalated to sharepoint, ok." Catch ex As Exception
    Label1.Text = ex.ToString
    End Try
    Sorry, the pasting of the code didn't work as expected.
    Any help on getting me the ability to write to my list will be greatly appreciated.

    Hi Manzutto,
    Not sure if you have attached the whole code in the post.
    If so, it contains errors in the Batch Element file, <Method> tab should have </Method> in the end.
    batchElement.InnerXml = "<Method ID='1' Cmd='New'>" + "<Field Name='Title'>test</Field></Method>"
    And the element in the batch element xml is case sensitive. Please make sure you have the xml file with correct format.
    More information, How to: Update List Items:
    http://msdn.microsoft.com/en-us/library/office/ms440289(v=office.14).aspx
    Thanks,
    Qiao Wei
    TechNet Community Support

  • How can I resize the size of the Excel web part?

    I have a spreadsheet that i want to use to populate a page in my SharePoint site.  i copied the workbook to the site, created the page and added the excel web part. then i linked the workbook to the web part and submitted.  it displays but only
    about 25% of the sheet shows. i dont want to use the thumbs to scroll inside the web part. i want the web part sized to show the entire spreadsheet.  cant seem to find how to size the web part. Can some kind soul help me out here.
    thanks

    Hi,
    According to your post, my understanding is that you wanted to resize the size of the Excel web part.
    Per my knowleadge, most of the time excel web parts turn out ugly, due to the fact that they’re rendered in an iframe and therefore the browser doesn’t resize the container to fit the content.
    As a workaround, we can edit the page where you want the resizing to happen, add in a content editor web part, and paste the following code into the source editor.
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () { // resizes excel webparts
    $("td[id^='MSOZoneCell_WebPart']").each (function (i, e) {
    var findIframe = $(e).find ("iframe:first");
    if (findIframe &amp;&amp; findIframe.attr ("scriptforiframecontent"))
    bindEwaLoaded ("#"+e.id);
    function bindEwaLoaded(obj) { // bind event to the web part
    $(obj).bind ("ewaLoaded", function (e) {
    var b = $(e.target).find ("iframe:first").attr ("postedbackalready");
    if (b == undefined) // loop until iframe is ready
    setTimeout (function() { $(e.target).trigger ("ewaLoaded"); }, 1000);
    else // try to resize now
    ewaSetSize (e.target);
    }).trigger ("ewaLoaded"); // first trigger now
    function ewaSetSize(obj) { // resize elements
    // configure paddings
    var excelObjectWidthPadding = 50;
    var excelObjectHeightPadding = 50.
    var w, h, div1, div2;
    var e = $(obj).find ("iframe:first").contents().find ("table.ewrnav-invisibletable-nopadding:last");
    if (e.length != 0) { // excel table
    w = e.width ();
    h = e.height ();
    div1 = $(obj).find ("table:first> tbody:first> tr:eq(1)> td> div> div");
    div2 = $(div1).find ("table:first> tbody:first> tr:eq(1)> td> div");
    } else {
    e = $(obj).find ("iframe:first").contents().find ("div.ewrchart-img-div");
    if (e.length != 0) { // excel chart
    w = e.width ();
    h = e.height ();
    div1 = $(obj).find ("table:first> tbody:first> tr:eq(0)> td> div> div");
    div2 = $(div1).find ("table:first> tbody:first> tr:eq(1)> td> div");
    if (w == 0 || w == undefined) { // loop until content is ready
    setTimeout (function() { ewaSetSize (obj); }, 1000);
    } else { // do resize
    w += excelObjectWidthPadding;
    h += excelObjectHeightPadding;
    div1.width (w);
    div2.height (h);
    </script>
    For more information:
    Automatically resizing Sharepoint Excel Web Parts
    JQuery for Everyone: Dynamically Sizing Excel Web Parts
    Dynamically re-sizing excel services webparts
    Thanks,
    Jason
    Jason Guo
    TechNet Community Support

  • How to create Web services to communicate InfoPath forms to Share Point lists ?

    How to create Web services to communicate InfoPath forms to Share Point lists ?

    Hi,  
     As per your posting and my understanding, you wanted to communicate your infopath with SharePoint list/library. Please refer the below link(s) which may help you to solve your issue.
    http://blogs.msdn.com/b/russmax/archive/2012/08/17/want-to-call-sharepoint-2010-web-services-within-browser-based-infopath-2010-forms.aspx
    http://jaliyaudagedara.blogspot.in/2011/03/submitting-data-to-sharepoint-2010-list.html
    or 
    http://blogs.msdn.com/b/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx
    If you need more help please let usknow
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever you
    see a reply being an answer to the question of the thread, click "Mark As Answer

Maybe you are looking for