i have developed an iphone application, where i need to pass a string array to the web service now, i have a NSMutable array say sendSelectedID
i know, i have values in the array, because when i display in for loop for(i=0;i<[sendSelectedID count];i++) { NSLog(@"%@", [sendSelectedID objectAtindex:i]); }
this is the way i pass the NSMutable array to the Soap message
NSString *soapMessage = [NSString stringWithFormat:
@"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<S:Envelope xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
"<S:Header/\>\n"
"<S:Body>\n"
"<ns2:confirmRecallDeposit xmlns:ns2=\"http://services.cbp.syntel.org/\">\n"
"<TransactionId>%@</TransactionId>\n"
"</ns2:confirmRecallDeposit>\n"
"</S:Body>\n"
"</S:Envelope>\n",sendSelectedID ];
and the soap message is displyed like
NSString *soapMessage = [NSString stringWithFormat:
@"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<S:Envelope xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
"<S:Header/\>\n"
"<S:Body>\n"
"<ns2:confirmRecallDeposit xmlns:ns2=\"http://services.cbp.syntel.org/\">\n"
"<TransactionId>(
1,
3
)</TransactionId>\n"
"</ns2:confirmRecallDeposit>\n"
"</S:Body>\n"
"</S:Envelope>\n",sendSelectedID ];
But on the server side, it gives error Number format exception. Please help me, how am i to remove this error, on the server side, i tried to trim the values recieved, but it did not work.