3.2 WebService
The following example is a UDC file that retrieves data from a web service. When there are child elements in the ConnectionInfo element that are not web service related, the protocol server only uses the web service related elements.
-
<?xml version="1.0" encoding="UTF-8"?> <?MicrosoftWindowsSharePointServices ContentTypeID="0x010100B4CBD48E029A4AD8B62CB0E41868F2B0"?> <udc:DataSource MajorVersion="2" MinorVersion="0" xmlns:udc="http://schemas.microsoft.com/office/infopath/2006/udc"> <udc:Name>Main query</udc:Name> <udc:Description>Format: UDC V2; Connection Type: WebService; Purpose: ReadOnly; Generated by Microsoft® Office InfoPath® 2007 on 2008-02-12 at 11:23:51.</udc:Description> <udc:Type MajorVersion="2" MinorVersion="0" Type="WebService"> <udc:SubType MajorVersion="0" MinorVersion="0"/> </udc:Type> <udc:ConnectionInfo Purpose="ReadOnly" AltDataSource=""> <udc:WsdlUrl>http://testmachine/app/service.asmx?WSDL</udc:WsdlUrl> <udc:SelectCommand> <udc:ListId/> <udc:WebUrl/> <udc:ConnectionString/> <udc:ServiceUrl UseFormsServiceProxy="true">http://testmachine/app/service.asmx</udc:ServiceUrl> <udc:SoapAction>http://testmachine/app/HelloWorld</udc:SoapAction> <udc:Query/> </udc:SelectCommand> <udc:UpdateCommand> <udc:ServiceUrl UseFormsServiceProxy="false"/> <udc:SoapAction/> <udc:Submit/> <udc:FileName>Specify a filename or formula</udc:FileName> <udc:FolderName AllowOverwrite=""/> </udc:UpdateCommand> </udc:ConnectionInfo> </udc:DataSource>