i have application in which i have a web server api .this is my api
http://192.168.0.68:91/JourneyMapperAPI?RequestType=[<EntityKey>]&Command=[GET|SET|NEW]&Token=[token]¶m...n=value..n
RequestType in the query string expects an entity name requested which could be any of the database tables.
Command, in the query string should specify the operation which needs to be performed on the specified request type which could be GET SET or NEW or any other entity specific command.
For eg. i have a register form which allows the user to register.
RequestType for register form is register so the api request on the submit button click of register form would be
http://192.168.0.68:91/JourneyMapperAPI?RequestType=Register&Command=NEW&firstname=rocky&lastname=singh&Username=rocky14&Password=[password]&Email=[email];
How to post this request to server api using http post method with all these parameters and values in it so that the values will be saved in the sever table named register .Please help me in solving this problem.thanks
You can use the below function for posting data to web-server.
Here,
url = you server web-service path
pstrCommentXML = you XML file whose format defined for upload
Then you can use simple delegate methods for getting response from server.
Hope you got the point.