search and destroy

Yes, yes.. I know Infopath is basically dead. But anyway, these are a couple of stuff that we need to do to get a Webmethod IS hosted SOAP webservice to work on Infopath and sharepoint.

On your Software AG Designer, go to the webservice that you’ll be exposing to Infopath, left click and select Properties. Go to Permissions and set everything to Anonymous.

Who are you?
Who are you?

Next, make sure that your webservice uses SOAP Protocol 1.1. To do that open your webservice, and go to Binders. Highlight the binder, and find SOAP version in the Properties pane, and set it to SOAP 1.1 Protocol, and save.

1.1
1.1

Infopath can’t directly access your Webmethod IS webservice, so you’ll need to export the WSDL into a xml file first. You can do that by opening the WSDL on a browser, and save it to.. you guess it! An XML file

XML
XML

Open the XML file on your prefered text editor, and find each instance of the word “parameters”, and replace it with “parameter”. Save the file.

search and destroy
search and destroy

Go to the sharepoint site that will host the Infopath page and upload the xml file. Upload the XML file to register the webservice as a service provider

wpid-connlib.png
upload the XML

Then, take note of the URL of the uploaded XML.

wpid-wsurl.png
Note the URL

Now open the Infopath Designer, open your form and connect to the Sharepoint site. Go to the “Data” tab, and add a source from webservice

from webservice with love
from webservice with love

Paste the XML URL

WSDL? What WSDL?
WSDL? What WSDL?

Press Next. If the stars are properly aligned and the wind is blowing to the right direction, you should be presented a list of available operations.

Can I have the menu?
Can I have the menu?

Proceed as usual. You should now be able to access the Webmethods IS hosted SOAP webservice from your Infopath form 😀

By ikhsan

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.