public String NetSpanProcess(String url,String data,String tagName){
		try{
			URL oURL = new URL(url);
	        HttpURLConnection soapConnection = (HttpURLConnection) oURL.openConnection();
	        System.out.println("connect to server...");
	        //prop= new PropertiesConfiguration("NetSpanIntegrator.properties");
	        // Send SOAP Message to SOAP Server
	        soapConnection.setRequestMethod("POST");
	        soapConnection.setRequestProperty("Host", prop.getString("host_address"));
	        soapConnection.setRequestProperty("Content-Length", String.valueOf(data.length()));
	        soapConnection.setRequestProperty("Content-Type", "application/soap+xml; charset=utf-8");
	        soapConnection.setRequestProperty("SoapAction", "");
	        soapConnection.setDoOutput(true);
	        
	        OutputStream reqStream = soapConnection.getOutputStream();
	        System.out.println("Sending Soap Request is: "+data);
	        System.out.println("sending data to server");
	        reqStream.write(data.getBytes());
	        System.out.println("output receive from server");
	        BufferedReader br = new BufferedReader(new InputStreamReader(soapConnection.getInputStream()));
	        StringBuilder responseSB = new StringBuilder();
	        String line;
	        String statusResult = null;
	        while ( (line = br.readLine()) != null){
	        	responseSB.append(line);
	        	
	       	    MessageFactory mf = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
	 		
			    SOAPMessage message = mf.createMessage(new MimeHeaders(), new ByteArrayInputStream(responseSB.toString().getBytes(Charset.forName("UTF-8"))));
 
			    NodeList returnList=message.getSOAPBody().getElementsByTagName(tagName);
			    
			        NodeList innerResultList = returnList.item(0).getChildNodes();
			        
			        
	        	if (innerResultList.item(0).getNodeName()
	                    .equalsIgnoreCase("ReturnCode")) {
	              int isSucces = Integer.valueOf(innerResultList.item(0)
	                        .getTextContent().trim());
	              
	              if(isSucces==0){
	            	   statusResult="Success";
	            	   System.out.println(statusResult);
	              }else{
	            	   
	            	  if (innerResultList.item(1).getNodeName()
			                    .equalsIgnoreCase("ReturnString")) {
			              String resulterror = innerResultList.item(1).getTextContent().trim();
			              statusResult="failure :"+resulterror;
			              System.out.println(statusResult);
			              
	            	  }
	              }
	            }
	        	
	        }
	        // Close streams
	        br.close();
	        reqStream.close();
	        return statusResult;
	                 
	       
		}catch(MalformedURLException e){
			return null;
		}catch(IOException e){
			return null;
		}catch(Exception e){
			return null;
		}
		
	}