IPFS, Web-based forms and SharePoint Web Services

L

larko_s

I read these entries about using web services in a browser-enabled IP Form.

http://blogs.msdn.com/bowerm/archive/2006/12/06/calling-web-services-from-infopath-web-forms.aspx
http://jopx.blogspot.com/2006/08/using-webservices-in-browser-enabled.html

I did what they said to do to utilize the Sharepoint Lists web service.
However, I'm getting an error when trying to use:

opsPerList = lists.GetListItems(listGUID.ToString("B"), "", query,
viewFields, "", queryOptions, webGUID.ToString("B"));

I get a security error:

Request for the permission of type 'System.Net.WebPermission, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Does anyone have an answer for this?
 
C

Clay Fox

I would set them up in data connections rather than calling them directly
from code.
Plus for prowser based froms they will need to be UDC's anyway.
Then you do not get security issues and you will maintain your browser
compatibility. Plus it is much easier to troubleshoot.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top