.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Fauzul Azmi
Asad Ali
Post New Web Links

Infopath 2010 cannot connect to Rest web service

Posted By:      Posted Date: September 13, 2010    Points: 0   Category :SharePoint
 
Hi all, I recently tried to access an Excel spreadsheet range as a Rest web service in Infopath 2010; no luck.  Here are the steps I followed: 1. [Successful] Upload Excel spreadsheet with the said ranges onto a Sharepoint document library 2. [Successful] Bind the Excel spreadsheet range (I have one called Regions) in the Sharepoint document library as a Rest web service in Infopath form's listbox control during design time as follows - http://mosscrm/sites/sandbox/_vti_bin/excelrest.aspx/eventbudgets/lookups.xlsx/model/ranges('Regions')?$format=atom 3. [Failed] Then I tried to preview the form, but the actual data in the Excel range failed to populate the Infopath listbox control.  The error I got was: "Could not open "http://<localhost>/sites/<site name>/_vti_bin/ExcelRest.aspx/EventBudgets/Lookups.xlsx/Model/Ranges('EventTypes')?$format=atom"   The error I then got from Infopath was a pop-up saying: The query cannot be run for the following DataObject: Event Types InfoPath cannot run the specified query. The file is not a valid XML file. Not enough storage is available to process this command . If anyone out there has experienced a similar issue and resolved it, please kindly share your solution approach. Thanks.


View Complete Post


More Related Resource Links

CMIS: How to connect to Sharepoint Server 2010 by CMSI REST Atom Service

  

I can't reach the Sharepoint Server 2010 when i input following url in browser:

http://<hostname>/_vti_bin/cmis/rest. there is error: 405

http://<hostname> /ListURL /_vti_bin/cmis/rest/.there is error: 404

And i followed the instruction in the http://technet.microsoft.com/en-us/library/ff934619.aspx?ppud=4.

Is there any advice to do this? or can  someone provide correct uri ?

Thanks in advance!


InfoPath 2010 cannot connect to SharePoint 2010

  
You have installed Office 2010 beta and you are trying to connect to SharePoint 2010 from InfoPath but you get an error

Unable to connect a web service from SharePoint 2010

  
Hi, I have a requirement to connect to a webservice from SharePoint 2010 without passing Network credentials explicitly. If i am already logged into the SharePoint 2010 portal , I should be able to click on Search (which is a web service which retrieves search results from Oracle UCM) and retrieve the result. I tried localhost.ServiceX myProxy = new localhost.ServiceX(); myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials; also myProxy.UseDefaultCredentials = True Still i am unable to authenticate. Default credentials returns null value.   Kindly help.

Unable to connect to a list in InfoPath 2010

  

Hi,

       I want to create a dataconnection in infopath 2010 and connect to a share point list,

I clicked DataConnection->Add->Retrievedata->sharepoint list-> and after that even though I am entering the name of the sharepoint site it is not proceeding further and showing error "Operation Could Not be Completed"


WCF REST service slow on first connect (not JIT related...I think)

  

I have a WCF web service method that is exposed using the WebHTTP binding.  Whenever a client makes a first request, it takes about 10 seconds to get a response (e.g. when you invoke the service through Internet Explorer).  Every subsequent request is less than a second.  However, if you close the web browser and open a new web browser, the first request is again slow and all the other requests are instantaneous.  The internal logs show the actual code in the method takes less than a second to execute.  Thus I think this could be a communication/authentication overhead and not a JIT compile.but I could be wrong.  There is no security necessary on the web service since it operates in a firewalled environment). 

 

Would anyone know how to improve performance of this first request?  Due to an SLA, I need to guarantee the response time is under 10 seconds.

 

Here is the cleansed configuration/code.  The return type of the method is Stream because the legacy client needs to get the raw string response back without any XML headers or any other metadata.

 

[ServiceContract]

    public interface ISomeService

    {

        [OperationContract]

       

Adding Dynamic Maps to Contact Forms with REST Web Services in InfoPath 2010

  
Learn to use the REST Web service data connection feature in InfoPath 2010 to add a dynamic map to a list form for contacts in SharePoint Server 2010.

Sample: Adding Dynamic Maps to Contact Forms with REST Web Services in InfoPath 2010

  
Explore the code as you learn to Use the REST Web service data connection feature in InfoPath 2010 to add a dynamic map to a list form for contacts in SharePoint Server 2010.

Sample: Adding Dynamic Maps to Contact Forms with REST Web Services in InfoPath 2010

  
Explore the code as you learn to Use the REST Web service data connection feature in InfoPath 2010 to add a dynamic map to a list form for contacts in SharePoint Server 2010.

Service Station: More On REST

  

This month's column answers frequently asked questions about implementing REST.

Jon Flanders

MSDN Magazine July 2009


Looking for a simple Service and Console Client REST sample implementing BASIC authentication

  

Does anyone know of a C# code sample demonstrating WCF REST services and console test client with OperationContracts (GET and POST) implementing mutiple paramaters using BASIC authentication? Also, perhaps, using Fiddler as a test client as well? I have searched high and low for something like this, but have not had any success.


Multiple services in REST Collection WCF Service?

  

After I create a "REST Collection WCF Service" project, it contains one service "service.svc". Can I add multiple services to this project? There must be a way to do so. Otherwise, it does not make sense to create one project for each service.

 

My question is how to add a new service to an existing "REST Collection WCF Service" project?

 

Thanks a lot.


Enter your credentials to connect to the web service

  

When trying to publish an InfoPath 2007 form template (as a Content Type), I am getting the following message with a UserName/Password dialog box:
Enter your credentials to connect to the following web service: http://MySitePath/_vti_bin/Webs.asmx

When I enter my credentials, the above dialog box appears again. I have carefully entered my credential. Another thing I noticed that despite this error I see the form got created at the destination library. The only thing is that the Content Type did not get created and hence is not available in the "Site Content Type Gallery".

We are using Sharepoint 2007 enterprise edition. And I have recently published the InfoPath form templates several time as Content type without any issue.

 

Please help. Thanks........


Office 2010 Mobile Service Guidelines, Part 1

  
Learn how to build and host Web services for Office 2010 Mobile Service (OMS). This article introduces OMS architecture and the message flow between OMS Web service providers and clients.

Office 2010 Mobile Service Guidelines, Part 2

  
Find guidelines and recommendations for implementing an OMS Web service as you learn to build and host Web services for Office 2010 Mobile Service.

Office 2010 Mobile Service Guidelines, Part 3

  
Learn about the XML schema for data that is passed between Microsoft Office 2010 Mobile Service Web providers and OMS clients in Office 2010.

Quick Note: Connect Web Parts in SharePoint 2010

  
Learn to create and deploy two Web Parts and then connect them so that making in a selection in one displays that selection in the other.

Video: SharePoint 2010: Creating Custom Service Applications

  
Do you need more than the services provided by SharePoint? In this advanced session targeted at high-end developers, you will learn how to create a custom SharePoint service. (Length: 36:31)
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend