Search Mailing List Archives
[protege-discussion] Neuron Web Service
Tania Tudorache
tudorache at stanford.edu
Thu Apr 17 18:19:34 PDT 2008
Kristina,
I suggest that you send this question directly to the Neuron service
developers, since I am not sure whether they are actively monitoring
this discussion list.
Tania
KristinaN at gmx.net wrote:
> Hallo!
>
> I would like to use Protege in a project, but we need a webservice
> and so I tried the plugin Neuron which works fine. Then I wrote a
> client and I can use a few methods with "true" as result (login, isValid, logout).
>
> But when I try to run methods like "getAvailableProjectNames" I get this
> error:
>
> java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
> java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
> java.net.MalformedURLException: no protocol: Software
>
> Thanks for any help!
>
> Kristina
>
>
> -------------------------------------------------------------------------------------
>
> This is my client:
>
> import org.apache.axis.client.Call;
> import org.apache.axis.client.Service;
>
> public class Main
> {
> public static void main(String[] args) {
> try {
>
> String endpoint = "http://localhost:8080/axis/services/NeuronWebServiceSoap";
>
> Service service = new Service();
> Call call = (Call) service.createCall();
>
> call.setTargetEndpointAddress(new java.net.URL(endpoint) );
> call.setMaintainSession(true);
>
> call.setOperationName("login");
> String login = (String) call.invoke( new String[] {"Guest", "guest"} );
>
> call.setOperationName("getAvailableProjectNames");
> String project = (String) call.invoke( new Object[] {} );
>
> }catch (Exception e) {
> System.err.println(e.toString());
> }
> }
> }
>
>
More information about the protege-discussion
mailing list