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-infopa
th-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?
Clay Fox - 27 Mar 2008 18:44 GMT
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.

Signature
Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum
> I read these entries about using web services in a browser-enabled IP Form.
>
[quoted text clipped - 13 lines]
>
> Does anyone have an answer for this?