Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Remote bussines process call

    Hi

    I want to call a remote business process to get some work done and if it success it will return an information that it worked or not. I tried using the RPCManager sendRequest like
    Code:
    isc.RPCManager.sendRequest({
                        actionURL: "http://192.168.8.185:8080/place/location",
                        httpMethod:"GET",
                        useSimpleHttp:true,
                        params:{
                            "var1":"48",
                            "var2":"D1-11-8-23"
                        },
                        serverOutputAsString: true,
                        callback: "Myshow(rpcResponse, data, rpcRequest)"
                    });
    
    function Myshow(rpcResponse, data, rpcRequest) {
        isc.say(rpcResponse);
    }
    Well this is not working as written in the documentation because the ip 192.168.8.185 is not the domain where my smartclient page is running. My question is there not a similar way like the RPCManager.sendRequest to send requests to a remote server?

    Thanks,

    Jeronimo

    #2
    i think you need use Xjsondatasource or HttpProxy ,research about cross-domain calls.

    http://www.smartclient.com/smartgwt/...ataSource.html

    James jara

    Comment


      #3
      Hi jamesjara,

      Thanks for you reply, really appriciate!!

      I have been looking around and found two ways which would suite what I amtrying to do.

      1. Generic RPC Integratio, there is an example in the smarclient package 'examples/server_integration/#genericRPCIntegration'

      2. Using the loadWsdl provided

      At the moment I am having a look at both ways, to see the one it would suite me the best. Oh yeah there is also another method using DMI call, but I don't really like that way because I need to write java code and I rather prefer to use javascript.

      Jeronimo

      Comment

      Working...
      X