Can u help me with rpc.
I have modified my code by looking at the example given in gwt
turitorial.
my main aim is to see the objects  in the repository
in a client side.
server code
public
class FilenetCMISServiceImpl extends RemoteServiceServlet implements
FilenetCMISService {
SessionFactory
sessionFactory =SessionFactoryImpl.newInstance();
public FilenetCMIS getList(List<Repository> repositories) {
// TODO Auto-generated method stub
Map<String, String> parameter =
new HashMap<String, String>();
//connection setting : connecting to public CMIS
parameter.put(SessionParameter.USER, "admin");
parameter.put(SessionParameter.PASSWORD, "xyz");
parameter.put SessionParameter.ATOMPUB_URL, "http://12.18.1.15:9080/
CaseManager/resources/ECM/ContentFlat");
parameter.put(SessionParameter.BINDING_TYPE,BindingType.ATOMPUB.value());
repositories = sessionFactory.getRepositories(parameter);
/* for(Repository r : repositories){
System.out.println("Found Repositroy" + r.getName());
}*/
return repositories;
}
}
/*here i am need the repositories back so that i can display the
repository but it is of flinetCMIS data type*/
Service code
public
interface FilenetCMISService extends RemoteService {
List<Repository> re = new ArrayList<Repository>();
FilenetCMIS getList(List<Repository> re);
}

Client code:
I dont know what to write in client side can u help me with this, but
to display
this should be used.
public
interface FilenetCMISService extends RemoteService {
List<Repository> re = new ArrayList<Repository>();
FilenetCMIS getList(List<Repository> re);
}

Plz help me. to write the proper code

On Nov 14, 8:43 pm, learning coding <[email protected]>
wrote:
> Hi i am very new to programming, So Plz Help with the code.
> I have a code which is running fine when i am creating with java
> project in eclipse.But the same code is not running with gwt web
> application.
>
> void init()
> {
> SessionFactory sessionFactory =SessionFactoryImpl.newInstance();
>
> Map<String, String> parameter =new HashMap<String, String>();
>
> // //connection setting :should DOne by Server
>
> parameter.put(SessionParameter.USER,"xyz");
> parameter.put(SessionParameter.PASSWORD, "abc");
>
> parameter.put(SessionParameter.ATOMPUB_URL, "http://19.16.1.15:9080/
> CaseManager/resources/ECM/ContentFlat");
>
> parameter.put(SessionParameter.BINDING_TYPE,BindingType.ATOMPUB.value());
>
> //find all the repositories at this URL
> List<Repository> repositories =new ArrayList<Repository>();
> repositories = sessionFactory.getRepositories(parameter);
>
> for(Repository r : repositories)
> {
>     System.out.println("Found Repositroy" + getName())// should be
> displayed by client
>  }
>
> }
>
> Connection should be done by the server.
> and client should  show the result of the request of finding the
> repositories .
>
> but I dont know what code should be written in services and client
> folder in GWT.
> Please Help.
> Thanks in Advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

  • GWT RPC learning coding
    • Re: GWT RPC learning coding

Reply via email to