Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
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
C#
[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[] {
                        Postcode,
                        AccountCode,
                        LicenseKey,
                        MachineId});
        return ((InterimResults)(results[0]));
    }
Posted
Updated 28-Jun-13 23:01pm
v2
Comments
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
[System.Web.Services.Protocols.SoapDocumentMethodAttribute

1 solution

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[^].

Regards,
 
Share this answer
 
v2
Comments
Alok.singh1166 29-Jun-13 6:24am    
Thanks prasad i got that .

Regards
Alok singh

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900