Reputation: 149
In my iphone app,I am trying to send an NSDictionary to a java webservice. In the webservice when the parameter is kept as hashmap,it gets into the the method accessed;But doesnot get the parameters(shown as null). Where am I going wrong?Pls help. Thanks in advance.
Upvotes: 0
Views: 217
Reputation: 3824
Check out the SBJSON library, that will give you a JSON representation of your NSDictionary. JSON is widely used as a object representation format over HTTP.
Upvotes: 1
Reputation: 15894
How can you send a NSDictionary to a web service.... its not possible.
You have to convert your dictionary object into json format or some structure or as parameters to web service etc and then post it.
The object of NSDictionary may not be same as that of "HashMap" in java.
Upvotes: 0