问题描述
- 从不同类中创建nsstring
-
有一个方法,从soap中接收结果:SDZPaymentResult* result = (SDZPaymentResult*)value;
如果我用:
NSLog(@"%@", result);
就会显示:
<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>>
有没有方法能将这些结果转换为NSString?
解决方案
看看这个可以么?
http://cfanz.cn/index.php?c=uc/topic&a=read&id=8826
时间: 2024-10-28 21:12:30