Click here to Skip to main content
15,886,661 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
[link to EXE removed]

I Have Url of Web Service and i want to Get Data in Database Table using MVC or Asp .Net

so Please Give Me Code How to Store in a table

What I have tried:

[placeholder]
Posted
Updated 30-Nov-18 2:27am
v2
Comments
Sinisa Hajnal 30-Nov-18 2:04am    
This is not a site for "give me teh codez" requests. Do some research, write some code and ask for help when you have the code written. In the meantime, there are plenty of tutorials and answers concerning web services and their use / consumption.
CHill60 30-Nov-18 7:11am    
"so Please Give Me Code How to Store in a table" - no. Show us what you have tried and we will try to help you fix it.

1 solution

1. Create a class within your project that mirrors what the service returns.
2. Create a table in your database that mirrors the above class
3. Create method in your project to retrieve data
4. Deserialize response from Step 3 into the class you created in step 1
5. Store the class instance into your database table.

Obviously there is more to it than 5 lines of code, but you cannot expect me to know your existing code; much less write out an application to do this.

What you need to do is to be able to do each of these items on your own. Steps 1,2, & 5 are programming 101. Once you have that done work with connecting to the service and parsing it's return. Then tie it all together and you are done.
 
Share this answer
 

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