• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 31. Consuming and Providing XML ... > Creating an Access Web Service Consu...

Creating an Access Web Service Consumer

WSR makes it easy to integrate Web services into Access applications. Following are the basic steps:

1.
Design a form with controls to supply the Web method’s parameter values and display the SOAP response message’s content. For ASP.NET services, the test form and its response message usually provide an indication of the type of control required. Text boxes work for most services; use list boxes to display response messages containing arrays.

2.
Run WSR to generate the Web service class(es) from the service’s WSDL document. Services that return simple datatypes generate a single class module—clsws_ServiceName, which is called a Web service proxy. Services whose request, response, or both messages contain complex datatypes generate a clsof_Factory_ServiceName class module and a struct_ClassName module for each type.

3.
Add code to the form’s class module to invoke the Web service proxy’s Web method with the required parameter(s) and populate the response controls.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint