Web Service GETCONTENT returns no content
23 June, 2016
However my GETCONTENT doesn't return any content, despite the status of the request being SUCCESS:
[code]
[/code]
I've been trying to trace the logs of the remoteAdministrationCall but to no avail -- any suggestions?
Thanks for sending in the question. I just tested the GETCONTENT web service on my machine and I can confirm everything works as expected. My webservice isn't in XML format but hopefully it helps.
Here is an example of my web service call:
[code]<%! private static final String cvsId = "$Id: ws_admin_createuser.jsp,v 1.1 2012-02-17 02:26:51 steve Exp $"; %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
<%
/*
Create User
Using Java generated stubs rather that using the Yellowfin webservices API..
*/
String host = "localhost";
Integer port = 7272;
String path = "/services/AdministrationService";
AdministrationServiceResponse rs = null;
AdministrationServiceRequest rsr = null;
AdministrationServiceService ts = new AdministrationServiceServiceLocator(host, port, path, false);
AdministrationServiceSoapBindingStub rssbs = (AdministrationServiceSoapBindingStub) ts.getAdministrationService();
AdministrationPerson ap = new AdministrationPerson();
AdministrationClientOrg aco = new AdministrationClientOrg();
AdministrationReport ar = new AdministrationReport();
rsr = new AdministrationServiceRequest();
rsr.setLoginId("admin@yellowfin.com.au");
rsr.setPassword("test");
rsr.setOrgId(new Integer(1));
rsr.setFunction("GETCONTENT");
rs = rssbs.remoteAdministrationCall(rsr);
for (ContentResource p : rs.getContentResources()) {
out.write("Content Type:" + p.getResourceType() + " Content Name: " + p.getResourceName() + " UUID: " + p.getResourceUUID() + " ID: " + p.getResourceId() + "
");
}[/code]
Have a great day!
Kind Regards,
Dustin