Data Connection to python web service - InfoPath Dev
in

InfoPath Dev

Data Connection to python web service

Last post 08-27-2012 07:24 AM by Gennady Vanin (Геннадий Ванин, Новосибирск). 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-27-2012 05:03 AM

    Data Connection to python web service

    I'm working on a web service in python (DJANGO) and I want to access that service from an InfoPath 2010 form.  I believe that InfoPath only uses GET for REST based services.  Please let me know if that's incorrect.  I am trying to determine exactly what InfoPath is looking for in the form of XML reply from the REST web service.  I am unable to get the connection created.

    Thanks.

  • 08-27-2012 07:24 AM In reply to

    Re: Data Connection to python web service

     Using internal built-in Rest Web service on my Sharepoint Online (Office 365) site:

    • https://<site>/_vti_bin/ListData.svc
      https://gennadyvanin.sharepoint.com/Web2/_vti_bin/ListData.svc

     I managed to see only GET method

    Tried to access external REST web services, like

    •  http://www.weather.gov/forecasts/xml/sample_products/browser_interface/ndfdXMLclient.php?zipCodeList=19115&product=time-series&begin=2012-08-29T00:00:00&end=2012-08-30T00:00:00&maxt=maxt&mint=mint
    which seems to be blocked for me:
    • From browser form, I am getting an error:
      A query to retrieve form data cannot be completed because this action would violate cross-domain restrictions.

      If this form template is published to a SharePoint document library, cross-domain access for user form templates must be enabled under InfoPath Forms Services in SharePoint Central Administration, and the data connection settings must be stored in a UDC file in a data connection library in the same site collection.  
    • from Filler/Prview, I am getting:
      The query cannot be run for the following DataObject: REST Web Service
      InfoPath cannot run the specified query.
      The data source file is accessed through a redirection from a different domain, which is not allowed. If you want to use this data source file, copy it to a location within your security domain.
      Access is denied
    • etc., etc.

     

    Gennady Vanin (Novosibirsk) --- Геннадий Ванин (Новосибирск)
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.