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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

consuming external web service in custom list over https

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :SharePoint

I have a custom list that pulls data in from an external third party webservice.  It works fine on our development server but won't update on our production SharePoint server.  I get no errors through the UI, it looks likes it's working, but no data comes through.  I don't know where to start on troubleshooting this.  The production server uses https.  We are on MOSS 2007.  Thanks for any suggestions.

 Edit  -- after doing some research I wonder if this is a trust issue about "accept Server Certificates on a normal WebService proxy method call." 

How would I confirm that this is the issue?




There are no mistakes; every result tells you something of value about what your are trying to accomplish.

View Complete Post

More Related Resource Links

Connecting a Sharepoint Custom list with an external Data-source

Hi I am planning to connect a Sharepoint Custom list with an external Data-source. External DB will be in Access 2007 format. More Information: I need a solution that we can connect our sharepoint list (one-way) to online db in a way that new  information is directly updated in the sharepoint list, whilst other info changed in sharepoint list  is not synced back to original value. Is there a way to solve this? -saumil

Update custom list of sharepoint using web service

I need update an colunm of list sharepoint using web services. The code used is: private void button1_Click(object sender, EventArgs e)         {             try             {                   WSLists.Lists listService = new Lists();                 listService.Credentials = new System.Net.NetworkCredential("Usuario1", "Password", "Dominio");                 System.Xml.XmlDocument doc = new System.Xml.XmlDocument();                 System.Xml.XmlNode ndListView = listService.GetListAndView("LIST_Test ", "");                 string strListID = ndListView.ChildNodes[0].Attributes["Name"].Value;                 string strViewID = ndListView.ChildNodes[1].Attributes["Name"].Value;         

BCS Method Security / External Content Type Permissions / Custom List Security Provider / Security T


I have an external list setup with the usual CRUD methods.  The external SQL table is also being populated by another source.  I want to enable/disable deleting depending on whether the record was created from SharePoint.  I would also like the normal list permissions to work.  So if a user has permissions to delete on the list, they can only delete items created for SharePoint. 

Where should this logic be incorporated?  On the BCS Delete method, somewhere in the External Content Type or on the list instance?  Most examples I find relate to security trimming for search.  I'm only concerned about the delete method.

I'm sure there are multiple ways to accomplish this.  Which is the best?


Custom Action for specific External Content Type List


I have an External Content Type list instance feature in Visual Studio. Deploying the instance works fine. However, I can't create a custom action using RegistrationId="{$ListId:Lists/yourlistname;}" RegistrationType="List"

Even if I specify the list Id as follows RegistrationId="{8F595340-5D08-4287-8BF6-30D50989D2F4}" or RegistrationId="8F595340-5D08-4287-8BF6-30D50989D2F4" I get nothing.

However, RegistrationId="600" works fine, but for all External Content Type lists.

I added the custom action with SharePoint Designer and it works as expected. When I generate a site template and import it into Visual Studio, the custom action uses RegistrationId="{$ListId:Lists/yourlistname;}" RegistrationType="List"

Creating a new site based on the site template creates the custom action correctly. However, deploying just the custom action does not work (feature deploys, but no custom action appears). I also tried RegistrationId="0x0100D67E541CC4BB6A4A9D62D22657ECFF68" RegistrationType="ContentType" with no luck. The content type id was pulled from the list instance using the object model.

I have to tie the custom action to a specific list instance. Because the li

How to associate Custom Form with External List?



I've been trying for several days now to figure out how to programmatically associate a custom form with an external list.  Currently I'm creating an external content type + external list programmatically (in Visual Studio) when my feature activates.  I now want to define some custom forms for viewing/editing the list items in my external list.  I cannot figure out the right approach to make this work.  I can create and associate the custom forms with the external list in SharePoint Designer, so I know its possible, I just can't figure out how to do this in Visual Studio.

In Visual Studio I can provision an aspx file and have it deployed to my list's folder, but when I try to set that aspx file as the list's default display form it tells me the page is not a valid form.  For example...

myList.DefaultDisplayFormUrl = "Lists/LocationsList/MyDisForm.aspx";

...will fail even though that page exists at that url.  It think it fails because the list does not contain an item in its Forms collection with that url.  All my attempts to modify the list's Forms collection have failed.  It appears to be read-only.

Anyone have any ideas?



Generic list of custom class returns data in WCF service layer, but loses them in Presentation Layer


I'm reading this excellent article by John Papa in MSDN Data Points - http://msdn.microsoft.com/en-us/magazine/cc700340.aspx

This single article alone sheds great deal of light on EF, WCF, WPF, MVP architecture, Layered Architecture with these technologies and so much more.

I'm trying to experiment with the code that comes with the article as is.

When executing the application, the service layer returns a Generic List with three Customer objects to the presentation layer. However, in presentation layer, the Generic list arrives with zero objects in the list. In the context of this application, I provide 'd' as a search criteria and hit the search button; while stepping through, I can see it returns 3 rows from the database.

With my limited experience in WCF, I am unable to figure out why it is so. This article was written  for 3.5 SP1 Beta 1. Could something changed in the general release that is causing this?

-Perennial Newbie-

Removing "External List" option from Custom Lists?


We are in the process of upgrading from SharePoint 2007 to SharePoint 2010.  Our business users have noticed a new option of creating a new "External List" under the Custom Lists heading.  Is there any way to remove the External List option without having to customize the create.aspx page?

Andy Kreider | Principal Financial Group | Des Moines, IA, USA

Consuming SharePoint 2010 Web Analytics Service in a Custom Web Part



I am writing a custom webpart to show up the Top Queries. As per my understanding we would need to use the Web Analytics WCF Service/Proxy in our custom Web Part code and try and access the method that returns the Top Queries.

Please let me know the name of the Web Analytics WCF Service/Proxy to be used and the if you can get me the method. I have been trying to search for the name of the Web Analytics Web Service/Proxy, but in vain. Looks document is at scarse.

Appreciate your help here.




External List custom Edit/Display forms


Hi There,

I working with creating an External List with ECT and .NET Type. Im using Sharepoint Foundation and

I can't figure out how I can change url to the different forms like with a regular CT I use something like this:

ct.EditFormUrl = "_layouts/someeditform.aspx";<br/>
ct.NewFormUrl = "_layouts/somenewform.aspx";<br/>
ct.DisplayFormUrl = "_layouts/somedispform.aspx";<br/>

I have tried changing the list displayformurl and there it complains about it can't find the url or something like that.


So any suggestion or questions(if you don't understand what Im talking about:)) is appreciated.




Setting of sharepoint 2010 custom WCF service "web.config" file for both HTTP and HTTPS



        I have created a custom SharePoint 2010 WCF service that is deployed to 14\ISAPI\MYService folder. The issue i am facing is that this service should be accessible from all Web applications, that can be HTTPS (i.e. SSL) enabled or normal HTTP. If i am making in web.config file for web application that has HTTPS enabled, then it fails for Web applications having normal HTTP configuration. My requirement is that when this WCF service is deployed it should accessible from all web applications that can be HTTPS or HTTP both. I went through number of blogs and tried whatever option they had suggested but none of them worked for me :(. Here are some of the blog that i tried:-

Reading XML got from consuming the Sharepoint List Web Service


Hi Experts,

I consumed a sharepoint web service, to query a List based in external server. (As explained in various Blogs)

This was easy and I was able to get the XML as result.

Now the problem is,  I want it in more readable format - as I have to bind into a DataGrid. Is it possible to render XML into DataSet or DataTable ?

My code is attached:

Dim wsListsItems As New mdart.Lists() 
'wsListsItems.Credentials = System.Net.CredentialCache.DefaultCredentials Dim credentials As NetworkCredential = New NetworkCredential("", "", "") wsListsItems.Credentials = credentials 'Instantiate an XmlDocument object. Dim xmlDoc As New System.Xml.XmlDocument() Dim listName As String = &q

problem in consuming WCF service through Window application


I have a silverlight application and WCF service all made in VS 2010 , i had hosted my site to web server which contain Window 2008 and IIS 7.0

now the problem is i have another application which is a window application developed in VS2008 , when i try to add the service reference it gives me error


The document at the url was not recognized as a known document type.

The error message from each known type may help you fix the problem:

- Report from 'DISCO Document' is 'There was an error downloading 'http://dev_qa.emspa.com/HRDev3/Service.svc?disco'.'.

  - The request failed with HTTP status 400: Bad Request.

- Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

- Report from '' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

- Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

Metadata contains a reference that cannot be resolved: ''.

Content Type application/soap+xml; charset

Service Station: Creating And Consuming Web Feeds


Jon Flanders demonstrates creating and consuming Web feeds with Windows Communication Foundation and AtomPub.

Jon Flanders

MSDN Magazine April 2009

Geneva Framework: Building A Custom Security Token Service


A Security Token Service, or STS, acts as a security gateway to authenticate callers and issue security tokens carrying claims that describe the caller. See how you can build a custom STS with the "Geneva" Framework.

Michele Leroux Bustamante

MSDN Magazine January 2009

Service Station: Extending WCF with Custom Behaviors


WCF extensibility points allow you to customize the process by which messages are translated, formatted, and sent over the wire for more customized services.

Aaron Skonnard

MSDN Magazine December 2007

XML Schemas: Take Advantage of Existing External XML Schemas with a Custom Import Framework in ASP.N


Over the years, many industry-standard XML schemas and dialects have been developed. These industry-specific schemas embrace the original purpose of XML and are extremely valuable in promoting and supporting B2B interaction. Unfortunately, the ASP.NET Web Services runtime does not allow developers to directly reference external schemas from within their XML Web Services interface (the WSDL file). This article builds an external schema framework as an extension to the ASP.NET Web Services runtime to enable you to reference external schemas within your XML Web Service interface.

Scott Short

MSDN Magazine December 2002

Custom tool error: Failed to generate code for the service reference 'CompanyService'. Please che


A little background because I feel I have an out of the ordinary architecture in place and don't know if this is contributing to the problem. 

We have an existing ASP.net application that is undergoing expansion.  The new functionality is all written in Silverlight 4.  As part of that expansion I gutted all the old Linq to SQL and put Entity Framework 4 into place.  To do this I created a standard .net Class Library and added my edmx files there.  Naturally, the business entities created by this cannot be used in Silverlight.  So I created a Silverlight Class Library and added all the business entities to that Silverlight Class Library as linked files.  I changed the name space to be the same.

So I have the following assembly / namespaces

Company.Project.Dal.csproj / Company.Project.Entities (.net 4 class library)

Company.Project.Entities.csproj / Company.Project.Entities (SL4 class library)

With this architecture I was able to share my business entities with my SL enabled web services, my asp.net projects, my silverlight projects.  Really it's a beautiful thing.

Once this was done I added "message" classes to Company.Project.Dal and again shared them with the other entites using linked files.  These messages are things like MyObjectRequest; they are class

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