title: where can i Put Soap Action?
body: <pre><code>public class SimpleHTTPRequest {
      String envelope1="&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;" +
      "&lt;soap:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:tns=\"urn:insertdata\"" +
      " targetNamespace=\"urn:insertdata\"&gt;"+
      "&lt;soap:Body&gt;"+
      "&lt;insertdata&gt;"+
      "&lt;name xsi:type=\"xsd:string\"&gt;ghjghj&lt;/name&gt;"+
      "&lt;phone xsi:type=\"xsd:string\"&gt;1111&lt;/phone&gt;"+
      "&lt;email xsi:type=\"xsd:string\"&gt;ascom&lt;/email&gt;"+
      "&lt;score xsi:type=\"xsd:string\"&gt;12&lt;/score&gt;"+
      "&lt;/insertdata&gt;"+
      "&lt;/soap:Body&gt;"+
      "&lt;/soap:Envelope&gt;";
      /**
       * @param args
       */
      public static void main(String[] args) {
           String url="http://url/iphone_soap_server.php/insertdata";
            String soapAction="http://urkl/iphone_soap_server.php/insertdata/insertdata";
      HttpURLConnection connection = null;
      OutputStreamWriter wr = null;
      BufferedReader rd  = null;
      StringBuilder sb = null;
      String line = null;
      URL serverAddress = null;
      String data = "width=50&amp;height=100";
      try {
          serverAddress = new URL("http://url/soap-server.php?wsdl");
  
          connection = null;
  
          //Set up the initial connection
          connection = (HttpURLConnection)serverAddress.openConnection();
  
          connection.setRequestMethod("POST");
          connection.setDoOutput(true);
  
          connection.setDoOutput(true);
          OutputStreamWriter writer = new OutputStreamWriter(connection.getOutputStream());
  
  
          writer.write(data);
          writer.flush();
  
  
  
  
          rd  = new BufferedReader(new InputStreamReader(connection.getInputStream()));
          sb = new StringBuilder();
  
          while ((line = rd.readLine()) != null)
          {
              sb.append(line + '\n');
          }
  
          System.out.println(sb.toString());
  
      } catch (MalformedURLException e) {
          e.printStackTrace();
      } catch (ProtocolException e1) {
          e1.printStackTrace();
      } catch (IOException e2) {
          e2.printStackTrace();
      }
      finally
      {
          //close the connection, set all objects to null
          connection.disconnect();
          rd = null;
          sb = null;
          wr = null;
          connection = null;
      }
  }
  }
  </code></pre>
  
  <p>I want consume the soap web services From Java where can i put the Soap Action IN this code...
  Thanks in Advance.....</p>