Thanks Rushikesh for the response.
I was trying to access 
XMLStreamReader xmlreader = q.getPullParser(new QName("qname"));
One thing, to be honest I am not sure whether I am accessing the methods in a 
right way... the following is code I have (to test whether its working 
properly) 

DSTI_PROJECT_CLIENTSQueryServiceStub.Auth auth = new 
               
 DSTI_PROJECT_CLIENTSQueryServiceStub.Auth ();
        auth.setUsername("60839");
        auth.setPassword("letmein");
        DSTI_PROJECT_CLIENTSQueryServiceStub 
stub = new 
               
 
DSTI_PROJECT_CLIENTSQueryServiceStub("http://nikuuat:8080/niku/wsdl/Query/DSTI_PROJECT_CLIENTS";);
        
        
DSTI_PROJECT_CLIENTSQueryServiceStub.DSTI_PROJECT_CLIENTSQuery q 
               
 = new DSTI_PROJECT_CLIENTSQueryServiceStub.
               
 DSTI_PROJECT_CLIENTSQuery();
        q.setCode("1"); 
        Logger.getLog().debug(" code: ");
        
DSTI_PROJECT_CLIENTSQueryServiceStub.DSTI_PROJECT_CLIENTSFilter filt 
               
 = new DSTI_PROJECT_CLIENTSQueryServiceStub.DSTI_PROJECT_CLIENTSFilter();
        
        
filt.setProj_ref("EQM_TEST");        
        q.setFilter(filt);
        
        Logger.getLog().debug(" ! 
!"+rs.getRecords().getRecord().length);
        
        XMLStreamReader xmlreader = 
q.getPullParser(new QName("qnameurl"));
        DSTI_PROJECT_CLIENTSQueryServiceStub.
               
 DSTI_PROJECT_CLIENTSRecord.isReaderMTOMAware(xmlreader);
        DSTI_PROJECT_CLIENTSQueryServiceStub.
               
 DSTI_PROJECT_CLIENTSRecord record = DSTI_PROJECT_CLIENTSQueryServiceStub.
               
 DSTI_PROJECT_CLIENTSRecord.Factory.parse(xmlreader);
        Logger.getLog().debug("proj ref: 
"+record.getProj_ref());
        
DSTI_PROJECT_CLIENTSQueryServiceStub.DSTI_PROJECT_CLIENTSRecords.Factory.parse(xmlreader);
STI_PROJECT_CLIENTSQueryServiceCallbackHandler callback = new 
               
 DSTI_PROJECT_CLIENTSQueryServiceCallbackHandler(){
        public void receiveResultechoString
               
 (DSTI_PROJECT_CLIENTSQueryServiceStub.DSTI_PROJECT_CLIENTSRecord rlt) 
{            
           
Logger.getLog().debug("proj ref: "+rlt.getProj_ref());
            
//EXTClarityDao.getInstance().receiveResultQuery(rl);
          }
           
        };
       stub.startQuery(q.getCode(), filt, auth, 
callback);  
 

--- On Mon, 9/6/08, Rushikesh Thakkar <[EMAIL PROTECTED]> wrote:

From: Rushikesh Thakkar <[EMAIL PROTECTED]>
Subject: Re: unexpected sub element Code
To: [email protected]
Date: Monday, 9 June, 2008, 9:32 PM


Can you tell me which operation were you invoking on your webservice while you 
got this error?

This error usually comes when you generate stubs from a WSDL that has a type 
(defined in 'types 'section) which has not defined the *unexpected subelement*. 

regards,
-Rushikesh


On Mon, Jun 9, 2008 at 4:14 PM, Jyotsna Varma <[EMAIL PROTECTED]> wrote:






Hi, 
 
I am getting the exception ADBException:Unexpected subelement Code.
I am using Axis2 1.4 to generate wsdl stub and handler. I have attached 
stub and handler class that generated using wsdl and the wsdl xml 
representation. 
Can you please have a look where I am going wrong to get this exception ?
 
Thanks,
 



Sent from Yahoo! Mail. 
A Smarter Email.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

Reply via email to