私はWebサービスVIA SOAPと通信するアプリを持っています。今のところ、通信は厳密に文字列値などです。いくつかのクラスのこれらの値は、いくつかはありません。SOAPを介してクラスのインスタンスとインスタンスを転送するにはどうすればよいですか?
私の質問です:SOAPを介してクラスのインスタンスを渡すことは可能ですか?
構文などで何か.. .Mで
//class declaration in .h
Myclass class
class.string = @"stuff";
class.integer = 5;
はその後
[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];
がある限り、この可能性のようなものですSOAP文字列を作成しますWebサービスはそれをどのように処理するかを知っていますか?
クラスの_instance_を転送しようとしていますか、まったく新しいクラスを定義しようとしていますか? –
クラスのインスタンスを転送します。すべての保存された値とすべてを完了します。 –