Forum

This content is now out of date.

Visit Our Community

Web Service GETCONTENT returns no content

I'm trying to use GETCONTENT, EXPORTCONTENT etc. to automate deployment between environments.

However my GETCONTENT doesn't return any content, despite the status of the request being SUCCESS:

[code]












0






Successfully Authenticated User: user@mydomain.com
Web Service Request Complete











f2deabc6afb2919bd5ffeb111a769964
SUCCESS




[/code]

I've been trying to trace the logs of the remoteAdministrationCall but to no avail -- any suggestions?
Hi Jay,

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

Thanks for trying Yellowfin

Please complete the form below to request your copy of Yellowfin today.