i've install ip*works trial components use json component request restful services.
i've managed code working using standard httpwebrequest ip*works components getting error cannot fathom.
ide: xamarin project: ios mobile iphone/ipad app language: c# error is: connection attempt failed (addressfamilynotsupported). my code is:
public string getcsrftoken() { string csrftoken = ""; json ipwrest = new json (); ipwrest.contenttype = "application/json"; try{ ipwrest.post(@"http://localhost:9007/quote-and-buy-performance/api/user/token.json"); csrftoken = ipwrest.transferreddata; console.out.writeline ("getcsrftoken->response: " + csrftoken.tostring()); }catch(ipworksjsonexception jsonerror){ console.out.writeline (jsonerror.message); } return csrftoken; } what else have tried:
- change localhost 127.0.0.1 - 302 , url not return json in postman client.
- changed between , post methods
- removed .json extension on url
- changed rest object instead of json i.e. rest ipwrest = new rest ();
- ip*works documentation of errors suggests tcp/ip error no further information.
Comments
Post a Comment