Hi Wess,
When i try to call the method i am getting the following error
{"error":{"message":"JSON-RPC method [getString] with 0 parameters not
found.","data":{"classname":"org.jpoxy.JSONRPCException","hashcode":
1555298,"stacktrace":["org.jpoxy.RPC.handleRequest(RPC.java:
709)","org.jpoxy.RPC.doGet(RPC.java:
505)","javax.servlet.http.HttpServlet.service(HttpServlet.java:
690)","javax.servlet.http.HttpServlet.service(HttpServlet.java:
803)","org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)","org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)","org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:
96)","org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235)"
The url i am using to call the method is
http://<Ip>:8080/JPoxyRPC/example?method=getString¶ms["hello"]
Any idea where the problem is?
Regards,
Kandasamy
On Apr 13, 4:25 pm, Wes Widner <
kai5263...@gmail.com> wrote:
> If your servlet is configured to listen on / you can call your method via
> the following:
>
> /?method=getString¶ms["string s"]
> /?json={"method":"getString","params":["string s"]}
> /?json={"method":"getString","params":{"notused":"string s"}}
>
> All of these end up doing the same thing. I recommend using
> urlrewrite<
http://www.tuckey.org/urlrewrite/>to simplify your common
> commands. For example, with urlrewrite you can make
> /news/1 redirect to ?method=getNews&id=1
>
> The above examples are all GET requests, but you can use POST in the same
> way if you want.
>
> -Wes
>
>
>
> On Wed, Apr 13, 2011 at 4:57 AM, Kand <
kans...@gmail.com> wrote:
> > Hi all,
>
> > Say if I have a method getString(String s) exposed through jpoxy.
>
> > Can anyone tell me how to call this method.
>
> > Regards,
> > Kand- Hide quoted text -
>
> - Show quoted text -