You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Call a webservice with json type string as a parameter.
2. Some characters(like {,[,",: ) were encoded to URL type characters like %7B,
%5B when the parameter string is added to XML node.
3. Server returns error because parameter type is incorrect.
My question is,
1) Is there a way to send a JSON type string parameter when using wsdl2objc?
2) Is there a way to use XML CDATA section when using wsdl2objc? (to use json
type string in xml)
thanks.
Original issue reported on code.google.com by [email protected] on 21 Feb 2013 at 11:35
The text was updated successfully, but these errors were encountered:
for example,
original JSON string is
{"name":"jone","mobile":"010-777-7777"
like this,
but encoded string is
{"name":"후승","mobile":"010-7777-7777&
Any solution?
you can replace the " to "
- (NSString *)serializedFormUsingHeaderElements:(NSDictionary *)headerElements
bodyElements:(NSDictionary *)bodyElements
return [serializedForm stringByReplacingOccurrencesOfString:@""" withString:@"\""];
}
Original issue reported on code.google.com by
[email protected]
on 21 Feb 2013 at 11:35The text was updated successfully, but these errors were encountered: