iphone - Create a NSString from different class -


i have method receive soap method result as:

sdzpaymentresult* result = (sdzpaymentresult*)value; 

if use: nslog(@"%@", result);

it shows:

<cxmlelement 0x20d9c950 [0x20dccc40] ns1:paymentresult  <ns1:paymentresult> <additionaldata xmlns="http://payment.services.adyen.com" xsi:nil="true"/> <authcode xmlns="http://payment.services.adyen.com">76419</authcode> <dccamount xmlns="http://payment.services.adyen.com" xsi:nil="true"/> <dccsignature xmlns="http://payment.services.adyen.com" xsi:nil="true"/> <fraudresult xmlns="http://payment.services.adyen.com" xsi:nil="true"/> <issuerurl xmlns="http://payment.services.adyen.com" xsi:nil="true"/> <md xmlns="http://payment.services.adyen.com" xsi:nil="true"/> <parequest xmlns="http://payment.services.adyen.com" xsi:nil="true"/> <pspreference xmlns="http://payment.services.adyen.com">8813677969778790</pspreference> <refusalreason xmlns="http://payment.services.adyen.com" xsi:nil="true"/> <resultcode xmlns="http://payment.services.adyen.com">authorised</resultcode> </ns1:paymentresult>> 

have way change result nsstring?

the %@ format specifier calls description method of object, return nsstring looking for. might want rethink solution, that's not description made for, , if it's not 1 of classes, returned value might change , break code! check if there isn't method data in more reliable way.


Comments