- Understanding SOAP FAQs
- How do I invoke a method on a server when I'm using SOAP?
- Do M-POST calls have to occur before POST calls?
- When I'm using XML in SOAP, do I have to use namespaces?
- What happens when a method call has been requested?
- What are the values in a SOAP payload?
- What could cause the performance of a SOAP call to degrade or suffer?
- What kind of security does SOAP implement?
- When using SOAP, how do I implement a simple API for XML?
- How will SOAP impact .Net application development?
- How is ASP+ used when creating web services?
- How do I validate SOAP-based XML using a schema?
- When using SOAP, what is the most efficient way to access services from a client over the Internet?
When using SOAP, what is the most efficient way to access services from a client over the Internet?
If there is a new technology around that helps you expose services over the Internet, there needs to be a way to easily access those services from the client. And, in fact, there is. Visual Studio 7 introduces the attribute-based COM programming model Mary Kirtland originally wrote about in the November and December 1997 editions of Microsoft Systems Journal. You saw C# used in the ASP+ code from Listing C.1. But you can also use C#, which resembles a combination of IDL and Java, to access a Web Service from a client (which may itself be a server to an third client).
The HelloWorld class example in the following Listing shows you the C# code you'd use to access the remote methods HelloWorld exposes.
Listing C# Code to Access the HelloWorld ASP+ Clas
If you're used to looking at either IDL or Java, the syntax should look familiar. But look at this particularly interesting line of code: (see below)