Skip to Main Content
Excel 2003 Programming: A Developer's Notebook
book

Excel 2003 Programming: A Developer's Notebook

by Jeff Webb
August 2004
Intermediate to advanced content levelIntermediate to advanced
312 pages
8h 30m
English
O'Reilly Media, Inc.
Content preview from Excel 2003 Programming: A Developer's Notebook

Link a Form to a Web Service

Another way to use a shared data source with InfoPath is to link the form to a web service. You can’t just use any web service with InfoPath. If you try to use the Amazon or Google web services, for example, you’ll get the error shown in Figure 7-34.

InfoPath rejecting an RPC-encoded web service

Figure 7-34. InfoPath rejecting an RPC-encoded web service

The InfoPath SDK installs these examples that demonstrate how to write a web service that can be used by InfoPath forms:

  • localhost/infopathsdk/infopathwebservicesample/infopathwebservicesample.asmx

  • localhost/infopathsdk/DataSubmit/SubmitService.asmx

Note

Web services provide a way to link InfoPath forms to non- Microsoft databases.

Tip

To install the InfoPath SDK web service examples locally, you must be running Windows XP Pro with IIS installed.

How to do it

The SDK has pretty good instructions on how the sample web services work and how to use them from InfoPath. I won’t repeat those here, but to make your life a little easier, I’ve installed those services at http:// www.mstrainingkits.com/Excel and modified the sample forms to work with that location. This means that you can run the samples without installing the SDK (Figure 7-35).

SDK web service sample (modified)

Figure 7-35. SDK web service sample (modified)

In addition to changing the data source for the web ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Office Excel 2003 Programming Inside Out

Microsoft® Office Excel 2003 Programming Inside Out

Curtis Frye, Wayne S. Freeze, Felicia K. Buckingham
Excel® 2007 VBA Programmer's Reference

Excel® 2007 VBA Programmer's Reference

John Green, Stephen Bullen, Rob Bovey, Michael Alexander
Office 2003 XML

Office 2003 XML

Simon St. Laurent, Mary McRae, Evan Lenz

Publisher Resources

ISBN: 0596007671Supplemental ContentCatalog PageErrata