Thanks for your response , Any i have query ,Im trying to send string as XML(Element) to the service where service needs to fetch string matching datas from database. XML like Addressbook example..
Can anyone send me some code for sending stringas element,Bcoz in service im passing resultset to element. Can anyone help me?? My GUI code public void actionPerformed(ActionEvent event) { String but = event.getActionCommand(); if (but == "OK" ) { // IdToLookUp is the value i want to take IdToLookUp =jTextField1.getText(); // HERE the STRING TO PASS AS ELEMENT DocumentBuilder xdb = XMLParserUtils.getXMLDocBuilder(); Document doc = xdb.newDocument(); Element custID = doc.createElement("CustomerID"); custID.appendChild(doc.createTextNode(IdToLookUp)); //make a call to soap server with customer ID try{ // GetCustInfo() is the SOAP CLIENT where i need to pass this element... gci = new GetCustInfo(); Element element =gci.callCustSVC(customerId);} catch (Exception e) { e.printStackTrace(); System.out.println("ERROR "+e); } } ------------------------------------------------------- Thanks in advance Expecting to hear from you regards parames __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com