Hi 
Yes ,im passing element.Im stuck in getting String
value and passing to element.....
Im getting Null...
here IdToLookUp  is the string im getting from GUI
Where im suppose to pass element to my SERVICE..


  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));

While printing custID ,im getting null..

Hope this time i make you clear about my doubt..
Sorry for the inconvience
Thanks 
parames...




--- Scott Nichol <[EMAIL PROTECTED]> wrote:
> I've read your post multiple times, but I still do
> not understand 
> what you are trying to do.  Your sample code looks
> like you are 
> passing the Element as a parameter.  What is it that
> you do not know 
> how to do?
> 
> On 4 Jun 2003 at 0:53, Parames wrote:
> 
> > 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
> > 
> 
> 
> Scott Nichol
> 
> Do not reply directly to this e-mail address,
> as it is filtered to only receive e-mail from
> specific mailing lists.
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

Reply via email to