+2  A: 

So, your xml needs to look like this :-

 <ArrayOfDictionaryEntry>
      <DictionaryEntry>
         <key>key1</key>
         <value>val1</value>
      </DictionaryEntry>
      <DictionaryEntry>
          <key>key2</key>
          <value>val2</value>
       </DictionaryEntry>
   <ArrayOfDictionaryEntry>

I would create a NSMutableDictionary object with all the key value pairs and then iterate through them and build the xml.

Sanil
A: 

Thank you... I finally connected with the web service sending the parameters... It looks like that the person responsible of configuring the web service didn't actually made the changes so i could send the parameters..

The WSDL now looks like this:

 <s:element name="GetMonitorList">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="location" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="moduleName" type="s:string" />
          </s:sequence>
        </s:complexType>

And my code looks like this:

@"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
    "<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;\n"
    "<soap:Body>\n"
     "<function xmlns=\"http://tempuri.org/\"&gt;\n"
    "<location>USA</location>"
    "<moduleName>DEVELOPMENT</moduleName>"
    "</function>"
    "</soap:Body>\n"
    "</soap:Envelope>\n"
Alejandra Meraz
A: 

this is great, i want my to look like almost the same. but i dont need to create an array. i hv 3 values which i want to pass through the usl

sopmewhat like www.google.com.p?to="somevalues"&from="somevalue"&mesaage="somevalue" somvalues are the value i m getting in textfeild.

those value which i m getting from textfeild...i want them to pass through that URl

plz suggest me how can i achieve it

regards shishir

shishir.bobby