How to work with SQL stored procedure with InfoPath using SQL webservice - InfoPath Dev
in

InfoPath Dev

How to work with SQL stored procedure with InfoPath using SQL webservice

Last post 10-29-2010 03:03 AM by Sohaib Khan. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-29-2010 01:07 AM

    How to work with SQL stored procedure with InfoPath using SQL webservice

    Hi, I've developed a SQL Server based webservice (SOAP)


    /****** Object:  Endpoint [SQL_Test]    Script Date: 10/28/2010 11:22:48 ******/
    CREATE ENDPOINT [SQL_Test]
     AUTHORIZATION [DOMAIN\user]
     STATE=STARTED
     AS HTTP (PATH=N'/Test', PORTS = (CLEAR), AUTHENTICATION = (NTLM), SITE=N'xxx.xxx.x.xxx', CLEAR_PORT = xx, COMPRESSION=DISABLED)
     FOR SOAP (
    WEBMETHOD 'GetCountries'( NAME=N'[TestDatabase].[dbo].[GetCountries]'
    , SCHEMA=DEFAULT
    , FORMAT=ALL_RESULTS), BATCHES=DISABLED, WSDL=N'[master].[sys].[sp_http_generate_wsdl_defaultcomplexorsimple]', SESSIONS=DISABLED, SESSION_TIMEOUT=60, DATABASE=N'TestDatabase', NAMESPACE=N'http://TestDatabase', SCHEMA=STANDARD, CHARACTER_SET=XML)

    Then, I created a new Blank InfoPath form. I added my webservice in DataSource. In DataSource, I clicked on field1 drop down and selected Drop Down List. When i try to Preview, it gives me following error:

    "The query cannot be run for the following DataObject: GetCountries InfoPath cannot run the specified query. Access is denied."

    May i know the reason please ?

     Thanks

    --
    Sohaib Khan
  • 10-29-2010 03:03 AM In reply to

    Re: How to work with SQL stored procedure with InfoPath using SQL webservice

    I've resolved this issue by assigning Full Trust in the infopath forms
    --
    Sohaib Khan
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.