Saturday, August 9, 2014

Magento API soap call in C#: Integration

     I came up with a new task i.e Magento API SOAP calling in asp.net C# application. This platform is mostly used by the PHP developers. Interestingly, i got this task in the Dot net side. Magento basic topics looks like simple and easy to do but when we are going to the topic deeper and deeper then everything  will looks like a tough and tight. Required PHP framework installed server to install Magento platform i.e another part of work to install Magento into your server. To know more about Magento installation(click here) and Soap API(click here). 
    After successful Magento installation, you will be provided with your API details like serviceURL, ApiUserName, ApiUserKey and store details. I have used V2 SOAP version here.

Adding a Web Reference:

 First, create a new Asp.net C# web application. Then right click on the project and select 'Add service Reference'.






After selecting 'Add Service Reference'. You will get a new window called 'Add Service Reference'. Click on 'Advanced' button.



Then, you will another window called 'Service Reference Settings'. Click on 'Add Web Reference' button.


Give your Magento hosted URL.Then click on 'Go' button to get the Magento Service.
There are two SOAP version in Magento. I have used version 2 here.
EX:
SOAP v1 url: http://Hostname/api/soap/?wsdl=1
SOAP v2 url: http://Hostname/api/v2_soap/?wsdl=1


If URL access then you will get the service list as like below. And then click on 'Add Reference' button to complete the process.



On successful, you will get the reference in your project as like below.



CLICK HERE FOR ADD NEW CUSTOMER THROUGH MAGENTO SOAP API.
CLICK HERE FOR PLACE ORDER THROUGH MAGENTO SOAP API.

Have a nice day!!!





      

13 comments:

  1. Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
    Regards,
    php training institute|php training institutes

    ReplyDelete
  2. I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.
    Regards,
    Web designing course in chennai|Web design training in chennai

    ReplyDelete
  3. Thank you for this detailed article on Web designing course. I’m aspiring to do Web designing course.

    ReplyDelete
  4. hello there , how do i get all the sub categories in tree. i am using catalogCategoryTree but it return only subcategories i want all the sub sub categories how do i.

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  5. Thanks for sharing a very helpful and very informative bloglive news blog

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Nice topic. I learned new concept. This is very useful.Thanks for sharing.

    Magento eCommerce Website Development

    ReplyDelete
  8. This comment has been removed by a blog administrator.

    ReplyDelete
  9. Excellent post!!! The future of .net application development is on positive note. It offers huge career prospects for talented professionals all over the world. Training on .net technology will ensure good salary package. Best DOT NET Training in Chennai|Dot net courses in chennai |.net training in chennai|.net course in chennai

    ReplyDelete
  10. this blog is really useful and it is very interesting thanks for sharing , it is really good and exclusive.

    dotnet Training in Chennai

    ReplyDelete
  11. Sir,

    Please Help Me.

    How To Get Tax of Product ?

    ReplyDelete