Using K2SPFiles Webservice within InfoPath?

  • 14 October 2008
  • 4 replies
  • 0 views

Badge +7

Hello,


have someony any expierences with using the K2 Webservice as a data connection in InfoPath?


My target is to get a xml-file dynamically out of a SP library with some different xml-files. I find the GetDocument Method of the K2SPFiles Webservice - but I find no way to use this webservice within InfoPath.


As webservice location I take: http:<sharepoint-server>/<site collection>/_vti_bin/K2SPFiles.asmx


than I have to fill out listNameorTitle, folderURL, fileName


but the library is on a subsite - where can I give this information?


4 replies

Badge +3

you said it already.

use this as you webservice location:

http:<sharepoint-server>/<site collection>/<subSite>/_vti_bin/K2SPFiles.asmx

Badge +7

This did not work within InfoPath because there is no vailid "WSDL" available. InfoPath give following error message:


The internet adress http:<sharepoint-server>/<site collection>/<subSite>/_vti_bin/K2SPFiles.asmx?WSDL is not valid.

Badge +7

Sorry - I dunno what I have done - now it works with this adress:


http:<sharepoint-server>/<site collection>/<subSite>/_vti_bin/K2SPFiles.asmx?WSDL


My fault.


By and thanks

Badge +4

FWIW, and assuming you were creating a data connection, I _think_ what you did by accident was append "?WSDL" to the URL of the web service by accident.  I have done this before (the input box likes to auto-complete using that URL in IP 2003) and it generates this error.


I haven't actually used this via a data connection, though, as what I needed to do with it was far more easily achieved via code, plus it has the advantage of working in all environments i.e. DEV/TEST/PROD without any changes (by dynamically setting the Url property of the web service object based on the published location of the form using thisXdocument.Solution.Uri).

Reply