Jump to content
We've recently updated our Privacy Statement, available here ×

ncheruku

Members
  • Posts

    15
  • Joined

  • Last visited

ncheruku's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. Thanks Lucian for the Quick response.So according to you it would be best if I make a list call to each subfolder and after I put them back in list right...Can you please clarify this to me...
  2. Hi, When I am trying to access the folder using the jServer.getWSClient().list(rd) I do get only the sub folders names listed in the folder but not the reports under those sub folders.Can anybody please help me out...
  3. Hi, I do have a requirement where I need to get the whole folder as a list object in which it has the child folders and in turn has reports under each folder which has the following directory structure.I have gone through the webservices guide and it says that we can attach one resource descriptor for one request.For the one resource descriptor can I add the children in this way and extract it..Please do let me know if this is the correct way as I need to get all the folders as well as the reports in the folder at a time through single request.......Can I use the list method for this purpose... For Example: FolderA FolderAa FolderAx report1 report2 report3 FolderAy report1 report2 report3 FolderAb report1 report2
  4. Hi, I do have a requirement where I need to get the whole folder as a list object in which it has the child folders and in turn has reports under each folder which has the following directory structure.I have gone through the webservices guide and it says that we can attach one resource descriptor for one request.For the one resource descriptor can I add the children in this way and extract it..Please do let me know if this is the correct way as I need to get all the folders as well as the reports in the folder at a time through single request.......Can I use the list method for this purpose... For Example: FolderA FolderAa FolderAx report1 report2 report3 FolderAy report1 report2 report3 FolderAb report1 report2 null;null;new JServer();"jasperadmin");"jasperadmin");"http://localhost:8080/jasperserver/services/repository");new ResourceDescriptor();TYPE_FOLDER);"/FolderA");"/FolderA");new ResourceDescriptor();TYPE_FOLDER );"/FolderA/FolderAa");new ResourceDescriptor();TYPE_FOLDER );"/FolderA/FolderAa/FolderAx");new ResourceDescriptor();TYPE_FOLDER );"/FolderA/FolderAa/FolderAy");new ResourceDescriptor();TYPE_FOLDER );"/FolderAb");return reports = List List children = JServer jServer = jServer.setUsername( jServer.setPassword( jServer.setUrl( ResourceDescriptor rd = rd.setWsType(ResourceDescriptor. rd.setParentFolder( rd.setUriString( ResourceDescriptor child1 = child1.setWsType( ResourceDescriptor. child1.setUriString( children.add(child1); ResourceDescriptor child2 = child1.setWsType( ResourceDescriptor. child1.setUriString( children.add(child2); ResourceDescriptor child3 = child1.setWsType( ResourceDescriptor. child1.setUriString( children.add(child2); ResourceDescriptor child4 = child1.setWsType( ResourceDescriptor. child1.setUriString( children.add(child4); rd.setChildren(children); reports = jServer.getWSClient().list(rd); reports; Can you please tell me if this way works .... Thanks Chinna
  5. Hi, The listResources(String type,String parentFolder, String ancestorFolder) doe not appear in the JasperServer-iReport-plugin jar in either 2.0.1 or 3.00 jar download.And also if I try to use the method by copying manually the addArgument method got replaced with the setArgument and accepts only list as the parameter.So can you please tell if I can get a different route for this to call the setArgument method in the com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.Request; API I would really aprecite for a quick response....... req.addArgument(Argument.LIST_RESOURCES); req.addArgument(Argument.RESOURCE_TYPE, type); protected List listResources(String type, String parentFolder, String ancestorFolder) throws Exception { Request req = new Request(); req.setOperationName(Request.OPERATION_LIST); req.setLocale(getServer().getLocale()); req.addArgument(Argument.LIST_RESOURCES); req.addArgument(Argument.RESOURCE_TYPE, type); if (parentFolder != null) { req.addArgument(Argument.PARENT_DIRECTORY, parentFolder); } else if (ancestorFolder != null) { req.addArgument(Argument.START_FROM_DIRECTORY, ancestorFolder); } StringWriter xmlStringWriter = new StringWriter(); Marshaller.marshal(req, xmlStringWriter); return list(xmlStringWriter.toString()); }
  6. Hi, I dont find the listResourcesInFolder(String type, String parentFolder, String ancestorFolder) method in jasperserver-ireport-plugin-2.1.0.jar.I found this jar in JasperServer 3.5.Can you please tell me where I can download a latest version of iReport plugin jar whihc includes the above method... Thanks Nithin
  7. Hi, I dont find the listResourcesInFolder(String type, String parentFolder, String ancestorFolder) method in jasperserver-ireport-plugin-2.1.0.jar.I found this jar in JasperServer 3.5.Can you please tell me where I can download a latest version of iReport plugin jar whihc includes the above method... Thanks Nithin
  8. Can anybody please post the code to retrieve in the form of list of published reports in a particular folder using jasper server webservices....
  9. rd.setWsType(ResourceDescriptor.TYPE_FOLDER); rd.setUriString(dir); Does the above code returns a List of resource descriptors or published reports in that folder.Because the webservices documentation it is mentioned that the list method returns a list of resource definitions but not the reports in that folder...Can you please clarify this for me......
  10. Hi, I am newbie to Jasper reports.I have a requirement where I need to get all the reports of a particular folder at a time through the one of the repository web service methods.Can you please let me know how I need to proceed as I did not find a specific method to do so.The runReport method gets only one report ,get method gives all the resources including sources in folders including children but not all the reports.So can anybody please let me know there must be a mechanism in whihch we can acess all the reports at a time.I am thinking of going with list method with wstype="content resource".Can you please let me know if this works.... The same thing for all the schedule jobs at a time...Thanks in advance.. Nithin
  11. Can you please tell me how to get all the scheduled reports at a time through a webservice...
  12. Hi, I am newbie to Jasper reports.I have a requirement where I need to get all the reports of a particular user at a time through the one of the repository service methods.Can you please let me know how I need to proceed as I did not find a specific method to do so.The runReport method gets only one report ,get method gives all the resources including sources in folders including children but not all the reports.So can anybody please let me know there must be a mechanism in whihch we can acess all the reports. The same thing for all the schedule jobs at a time...Thanks in advance.. Nithin
  13. Hi, I am newbie to jasper server.I am trying to use the Jasper server repository service and schedule service.Can you please tell me whihc method I need to invoke to get all the published reports for a repositry service and to get all the scheduled reports for a schedule web service.I have generated client stubs with Axis 1.4.Also please let me know the user authentication to invoke the webservice...Can you please respond asap...Thanks in advance... Thanks Nithin
  14. Hi All, I am newbie to Jasperserver.I do have a requirement where we are using jasperserver Helper classes for client to make connection to jasperserver.Jasperserver webservice guide suggests us to go through the doucmentation as the iReport plugin has the webservice client helper classes to built.My questions is like if we have these helper classes do we still need to built the client side stubs or can we make use of the existing class to call the jasperserver application.If anyboady can please post a sample code for calling the jasper sever application from the helper classes I would really appreciate. Thanks Nithin
  15. Hi All, I am newbie to Jasper reports.Can anyone please post me complete end-end tutoiral of how I can create a Jasper report from scratch and deploy the webapp and run and see the output....I am using eclipse and Tomcat 5.x server. Please help the needful Thanks Nithin
×
×
  • Create New...