samples/jsput.c File Reference

#include <jasperserver.h>

Go to the source code of this file.

Functions

void put_resource (char *name, char *parentUri, char *infile)
 Sample function to put a resource in the repository.
int main (int argc, char **argv)

Variables

const char server [] = "http://127.0.0.1:8080/jasperserver/services/repository"


Detailed Description

This sample shows how to put a file into the repository. In particular this sample shows how to upload a resource of type image. If a file is specified on the command line, the content of the file will be attached to the SOAP request and store as resource content on the server.

In general, the put service can be used to create new folders, new resources of several types, modify a resource and create/modify a report unit.

See also:
jasperserver_ws_put

Definition in file jsput.c.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 122 of file jsput.c.

void put_resource ( char *  name,
char *  parentUri,
char *  infile 
)

Sample function to put a resource in the repository.

If a file is specified on the command line, the content of the file will be attached to the SOAP request and store as resource content on the server.

Parameters:
dir URI of the folder to list.

Definition at line 46 of file jsput.c.


Variable Documentation

const char server[] = "http://127.0.0.1:8080/jasperserver/services/repository"

Definition at line 36 of file jsput.c.


Generated on Wed Apr 18 16:55:54 2007 for JasperServer C webservices by  doxygen 1.5.2