InfoPath 2010: How to submit a form to a WCF 4.0 service
-
Friday, June 01, 2012 1:41 PM
My scenario has as follows:
- An InfoPath form template set to "InfoPath Filler Form" option.
- Form template contains among other fields some File Attachment controls.
- Form must have a default submit to a custom WCF service. The submission must include the whole set of form data, i.e., [form data].xml with the serialized attachments.
After spending quite a few time searching web and many try-&-fail attempts, I haven't found a way to implement the WCF service in a way that:
- It exposes a "Submit" operation that accepts an XMLDocument as argument (this is required by InfoPath 2010 for submitting correctly the form). Please note that XMLElement does not work.
- It is hosted outside IIS (i.e., in a Win Service) which means that it must be implemented as a WCF Service Library, not WCF Service Application.
Any suggestions or samples are welcomed.
- Moved by Aaron Su - MSFTMicrosoft Employee Tuesday, June 12, 2012 1:41 PM Move to correct forum (From:SharePoint 2010 - Using SharePoint Designer, Infopath, and other customization)
- Changed Type Yi-Lun LuoModerator Tuesday, June 26, 2012 2:27 AM This thread was moved from another forum. It has expired. If you still have problems, please create a new thread.
All Replies
-
Monday, June 04, 2012 11:15 AM
-
Thursday, June 07, 2012 5:55 PM
Hi costas.p,
To clarify - are you looking specifically how to create a WCF 4.0 service that will include an operation built to accept a full form document and is setup as a WCF Service Library or are you looking on how to setup an InfoPath template to be able to submit to this WCF service?
Regards, Aaron Suoja - Microsoft Online Community Support
-
Friday, June 08, 2012 7:35 AM
Hi Aaron,
Thank you for you post. Actually I'm looking specifically how to create the WCF 4.0 service & operation as a WCF Service Library.
Thanks- Costas
-
Tuesday, June 12, 2012 1:40 PM
Hi costas.p,
This post should really be under the WCF forum. I am moving it and someone there should be able to help you.
Regards, Aaron Suoja - Microsoft Online Community Support

