Creating UDC file - InfoPath Dev
in

InfoPath Dev

Creating UDC file

Last post 03-06-2009 01:32 AM by GrYzLy. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 03-06-2009 01:32 AM

    • GrYzLy
    • Not Ranked
    • Joined on 03-06-2009
    • Posts 1

    Creating UDC file

    Hello,

    I'm trying to create UDC file, that will connect to my webservice.

    Webservice code:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.Services;

    namespace TestWebService
    {
        /// <summary>
        /// Summary description for Service1
        /// </summary>
        [WebService(Namespace = "http://tempuri.org/")]
        [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
        [System.ComponentModel.ToolboxItem(false)]
        // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
        // [System.Web.Script.Services.ScriptService]
        public class Service1 : System.Web.Services.WebService
        {

            [WebMethod]
            public string HelloWorld()
            {
                return "Hello World";
            }
        }
    }

     WebService is published on my IIS.

     

    My UDC file:

    <?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>GetRegionsUDC</udc:Name>
      <udc:Description>Testowy opisik</udc:Description>
      <udc:Type MajorVersion="2" MinorVersion="0" Type="WebService">
        <udc:SubType MajorVersion="0" MinorVersion="0" Type=""/>
      </udc:Type>
      <udc:ConnectionInfo Purpose="ReadOnly">
        <udc:WsdlUrl>http://server:21555/Test/Service1.asmx?wsdl</udc:WsdlUrl>
        <udc:SelectCommand>
          <udc:ServiceUrl UseFormsServiceProxy="true">http://server:21555/Test/Service1.asmx</udc:ServiceUrl>
          <udc:SoapAction />
        </udc:SelectCommand>
      </udc:ConnectionInfo>
    </udc:DataSource>

     And when I try to add DataConnection in InfoPath I have error like
    "The specified SoapAction value is invalid".

     Thanks for help.

    GrYzLy

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.