Passing objects to wcf webservice in iphone
<p>what should be the request for a wcf webservice method which excepts an object as a parameter?i have a method which accepts an object of class employee. The request below gives an error:Server was unable to process request. ---&gt; Object reference not set to an instance of an object.</p>

<pre><code>int id1=100;

NSString *soapMsg = [NSString stringWithFormat:
                     @"&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;"
                     "&lt;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/\"&gt;"
                     "&lt;soap:Body&gt;"
                     "&lt;TestEmployee xmlns=\"http://body.com/\"&gt;"
                     "&lt;Employee&gt;"
                     "&lt;id&gt;%d&lt;/id&gt;"
                     "&lt;Name&gt;%@&lt;/Name&gt;"
                     "&lt;/Employee&gt;"
                     "&lt;/TestEmployee&gt;"
                     "&lt;/soap:Body&gt;"
                     "&lt;/soap:Envelope&gt;",id1,@"abc"];
</code></pre>
