Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Atlaaast I figured out :</p> <pre><code> URL u = new URL(URL2); URLConnection uc = u.openConnection(); connection = (HttpURLConnection) uc; connection.setDoOutput(true); connection.setDoInput(true); connection.setRequestProperty("SOAPAction", SOAP_ACTION2); connection.setRequestMethod("POST"); connection.setRequestProperty("Content-type", "text/xml; charset=utf-8"); String xmldata = "&lt;soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tem=\"http://tempuri.org/\"&gt; "+ "&lt;soapenv:Header/&gt;"+ "&lt;soapenv:Body&gt;"+ "&lt;tem:AddTagDetails&gt;"+ "&lt;tem:objtag&gt;"+ "&lt;tem:FKPersonID&gt;"+ Integer.valueOf(JujamaMain.userValues.get(0))+"&lt;/tem:FKPersonID&gt;&gt;"+ "&lt;tem:FKConferenceID&gt;"+ Integer.valueOf(JujamaMain.userValues.get(4))+"&lt;/tem:FKConferenceID&gt;"+ "&lt;tem:TagName&gt;"+tagName.getText().toString()+"&lt;/tem:TagName&gt;"+ "&lt;tem:CreatedBy&gt;"+ Integer.valueOf(JujamaMain.userValues.get(0))+"&lt;/tem:CreatedBy&gt;"+ "&lt;tem:ModifiedBy&gt;"+ Integer.valueOf(JujamaMain.userValues.get(0))+"&lt;/tem:ModifiedBy&gt;"+ "&lt;/tem:objtag&gt;"+ "&lt;/tem:AddTagDetails&gt;"+ "&lt;/soapenv:Body&gt;"+ "&lt;/soapenv:Envelope&gt;"; System.out.println(xmldata); OutputStream out = connection.getOutputStream(); Writer wout = new OutputStreamWriter(out); wout.write(xmldata); wout.flush(); wout.close(); BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream())); System.out.println("code..."+connection.getResponseCode()); //InputStream in = connection.getInputStream(); String result; //int c; while ((result=rd.readLine()) != null) { System.out.println(result); } </code></pre> <p>its working now..</p> <p>thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload