I have an app that communicates with a web service VIA SOAP. So far the communications have been strictly string values and the like. Some of these values in classes, some not.
My question is: Is it possible to pass an instance of a class through SOAP?
Something with the syntax like..
//class declaration in .h
Myclass class
in the .m
class.string = @"stuff";
class.integer = 5;
then create the SOAP string
[NSString stringWithFormat:@"<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<stuff xmlns="http://website.com/">
<class>%@</class>
</stuff>
</soap:Body>
</soap:Envelope>,class];
Is something like this possible as long as the web service knows how to handle it?