Hi,
   I am pasting my web-service client code:

public static void main(String[] args) {
String urlstr = 
"http://acs-fa-1148:8080/quality-control/QualityControlService?wsdl";;
System.out.println("Contacting webservice at " + urlstr);
try{
URL url = new URL(urlstr);
QName qname = new QName("http://webservice.payment.fsa.ed.gov/";, 
"QualityControlServiceService");
ServiceFactory factory = ServiceFactory.newInstance();
                        Service service = factory.createService(url, qname);
        
QualityControlListingReqEDXDTO qcListByCycleDTO =
                                new QualityControlListingReqEDXDTO();
RequestPageInfoDTO iRequestPageInfoDTO = new RequestPageInfoDTO();
                        iRequestPageInfoDTO.setPageSize(10);
qcListByCycleDTO.setRequestPageInfoDTO(iRequestPageInfoDTO);
                        
QualityControlService qcService = (QualityControlService) 
service.getPort(QualityControlService.class);
PageableListDTO oDTO = null;
try {
oDTO = (PageableListDTO)qcService.getQualityControlListing(qcListByCycleDTO);
} catch (java.lang.reflect.UndeclaredThrowableException ioex){
System.out.println("???? Getting quality control listing: 
"+ioex.getUndeclaredThrowable());
} catch (Exception ioex){
System.out.println("???? Getting quality control listing: "+ioex);
}
System.out.println("output:" + oDTO);
} catch (Exception ex){
System.out.println("???? Failed: "+ex);
}       
}

Code fails inside last try...catch block. 

Thanks,
Neeraj

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916141#3916141

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916141


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to