15.02.2015 Views

C# 4 and .NET 4

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

OC238 ❘ ChaPTer 55 web services with Asp.net<br />

figure 55-2<br />

Note that, by default, this test page is only available to callers from the local computer,<br />

even when your web service is hosted in Internet Information Services (IIS).<br />

Most of the text shown in the browser concerns the fact that the web service namespace is set to<br />

http://tempuri.org . This isn ’ t a problem during development, although (as the text on the web page<br />

says) it should be changed later on. This can be done using the WebService attribute as shown. For now,<br />

though, you can leave things as they are.<br />

Clicking the method name gives you information about the SOAP request <strong>and</strong> response, as well as examples<br />

of how the request <strong>and</strong> response will look using the HTTP GET <strong>and</strong> HTTP POST methods. You can also<br />

test the method by clicking the Invoke button. If the method requires simple parameters, you can enter these<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!