Sending Request and Reading Response from Webservice using XML API
-
I m using eBay Trading API For XML link is "http://developer.ebay.com/webservices/latest/ebaySvc.xsd" and XML code to call some method of Api is as follows Pls Guide me how to send Request and Read Respone in C#.NET code? <?xml version="1.0" encoding="utf-8"?> <GetCategoryInfoRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <CategoryID >-1</CategoryID> <IncludeSelector >ChildCategories</IncludeSelector> </GetCategoryInfoRequest> and Response is <?xml version="1.0" encoding="UTF-8"?> <GetCategoryInfoResponse xmlns="urn:ebay:apis:eBLBaseComponents"> <Timestamp>2009-12-12T12:11:14.460Z</Timestamp> <Ack>Success</Ack> <Build>E643_CORE_BUNDLED_10284414_R1</Build> <Version>643</Version> <CategoryArray> <Category> <CategoryID>-1</CategoryID> <CategoryLevel>0</CategoryLevel> <CategoryName>Root</CategoryName> <CategoryParentID>0</CategoryParentID> <LeafCategory>false</LeafCategory> </Category> <CategoryCount>37</CategoryCount> <UpdateTime>2009-06-15T14:51:30.000Z</UpdateTime> <CategoryVersion>92</CategoryVersion> </GetCategoryInfoResponse>
-
I m using eBay Trading API For XML link is "http://developer.ebay.com/webservices/latest/ebaySvc.xsd" and XML code to call some method of Api is as follows Pls Guide me how to send Request and Read Respone in C#.NET code? <?xml version="1.0" encoding="utf-8"?> <GetCategoryInfoRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <CategoryID >-1</CategoryID> <IncludeSelector >ChildCategories</IncludeSelector> </GetCategoryInfoRequest> and Response is <?xml version="1.0" encoding="UTF-8"?> <GetCategoryInfoResponse xmlns="urn:ebay:apis:eBLBaseComponents"> <Timestamp>2009-12-12T12:11:14.460Z</Timestamp> <Ack>Success</Ack> <Build>E643_CORE_BUNDLED_10284414_R1</Build> <Version>643</Version> <CategoryArray> <Category> <CategoryID>-1</CategoryID> <CategoryLevel>0</CategoryLevel> <CategoryName>Root</CategoryName> <CategoryParentID>0</CategoryParentID> <LeafCategory>false</LeafCategory> </Category> <CategoryCount>37</CategoryCount> <UpdateTime>2009-06-15T14:51:30.000Z</UpdateTime> <CategoryVersion>92</CategoryVersion> </GetCategoryInfoResponse>
I m adding webreference of this webservice link in my C#Project