Click here to Skip to main content
11,921,898 members (39,469 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# WebService
public partial class LookupUK : System.Web.Services.Protocols.SoapHttpClientProtocol
above is the class used and below is the service of finding a address via pincode
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("PostcodeAnywhere2/ByPostcode", RequestNamespace="PostcodeAnywhere2", ResponseNamespace="PostcodeAnywhere2", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
    public InterimResults ByPostcode(string Postcode, string AccountCode, string LicenseKey, string MachineId) {
        object[] results = this.Invoke("ByPostcode", new object[] {
        return ((InterimResults)(results[0]));
Posted 28-Jun-13 23:24pm
Edited 29-Jun-13 0:01am
Mahesh Bailwal 29-Jun-13 4:35am
The code you have mentioned is Proxy client for calling web service. This code is not web service code but instead client code for consuming web service.
Alok.singh1166 29-Jun-13 4:37am
yes you are write but iam unable to understand the code
Alok.singh1166 29-Jun-13 4:44am
Can you tell me that what exactly this code will do

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Hello Amol,

Perhaps the code you shared is trying to call a web service hosted at PostcodeAnywhere[^]. Please visit the site and try to get the API documentation from their site. The link shared also shows a demo of the API. You can find the DotNet samples here[^].

Alok.singh1166 29-Jun-13 6:24am
Thanks prasad i got that .

Alok singh

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 493
1 Dave Kreskowiak 285
2 Sergey Alexandrovich Kryukov 243
3 Richard MacCutchan 155
4 ppolymorphe 135
0 OriginalGriff 7,231
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,356
3 George Jonsson 2,865
4 Suvendu Shekhar Giri 2,216

Advertise | Privacy | Mobile
Web03 | 2.8.151120.1 | Last Updated 29 Jun 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100