DotnetSparrow
DotnetSparrow

Reputation: 27996

asmx file in asp.net

I am using http://api.jangomail.com/ api in my web application and added a reference using "Add service refernce" and giving the path http://api.jangomail.com/api.asmx and selecting the HttpGet in add service reference.

I want to use this method :

http://api.jangomail.com/help/html/655d20ca-2164-c483-fb21-d3d0ee049155.htm

But I dont get intellisense? Do I need to add assembly reference or what?

Thanks

Upvotes: 0

Views: 1272

Answers (1)

LeftyX
LeftyX

Reputation: 35597

you do not need to add any assembly.
You just need to reference to the web service and, when asked, you have to give a proper name to the namespace. If the reference has been created you will see a "Service References" folder with your service object (let's say ServiceReference1) and the configuration files (wsdl, etc).

Now you can write your code:

        var jango = new ServiceReference1.JangoMailHttpGetClient();
        jango.SendTransactionalEmail();

Upvotes: 1

Related Questions