Skip to main content
Nintex Community Menu Bar

Using K2SPFiles Webservice within InfoPath?

  • October 14, 2008
  • 4 replies
  • 8 views

Forum|alt.badge.img+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

Forum|alt.badge.img+3
  • Nintex Partner
  • October 14, 2008

you said it already.

use this as you webservice location:

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


Forum|alt.badge.img+7
  • Author
  • October 15, 2008

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.


Forum|alt.badge.img+7
  • Author
  • October 15, 2008

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


Forum|alt.badge.img+4
  • October 17, 2008

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).