Coder Social home page Coder Social logo

json-rpc-client's People

json-rpc-client's Issues

Version numbers

This library needs version numbers so people can track changes across releases.

Original issue reported on code.google.com by [email protected] on 13 Oct 2009 at 8:01

Maven support

If this project supported maven, people could more easily use it and know
its dependencies.  I'm willing to help create the pom.xml file.

Depends on issue 5.

Original issue reported on code.google.com by [email protected] on 13 Oct 2009 at 8:03

Div is not showing, while rpc call in IE

What steps will reproduce the problem?
1. Create a Div ( <div id="dummydiv1"></div> )
2. before rpc call assign some value to div 

document.getElementById('dummydiv1').style.display = '';
document.getElementById('dummydiv1').innerHTML = 'Set Value';

3. consider that rpc call takes to finish the process (server side) more 
than 2 min.

4. after the rpc call, i am making the div is invisble.
document.getElementById('dummydiv1').style.display = 'none';

What is the expected output? What do you see instead?

It should show the Div, before rpc call. Its not showing at all.

What version of the product are you using? On what operating system?

IE 8 (This is working for Mozilla), Windows XP

Please provide any additional information below.


In jsp , Make a empty Div 
--------------------------

<div id="dummydiv"></div>

In javascript method 
---------------------


document.getElementById('dummydiv').style.display = '';
document.getElementById('dummydiv').innerHTML = 'Set Value';

jsonrpc = new JSONRpcClient("JSON-RPC");
 jsonrpc.validateForm.setHash(list);

// Following execution may take few sec. So, i need to show the loading 
indiacator, which is div
result = jsonrpc.validateForm.validateCreative(); 

document.getElementById('dummydiv').style.display = 'none';


Original issue reported on code.google.com by [email protected] on 22 Jul 2009 at 8:28

Patch ready for HTTPS support

Hello Sasha, 

I have recently had a chance to work with your excellent library and i made
some small modification to the HttpSession.java to create a "https" scheme
in r5 release source. I also had it tested with a self-signed certificate
JSON RPC service (written using JSON-RPC-Java from metaparadigm). I am not
sure if  you will want to use it. Let me know if you are interested and i
can send you the patch files.

Thanks,
W.

Original issue reported on code.google.com by [email protected] on 1 Dec 2007 at 8:20

[patch] add cookies and content-type support

Hello,
I'm using your excellent JSONRpcClient code.

Here is a little patch that add cookies support to JSONRpcClient with
addCookie( String key, String value ). I need it to send the SessionID with
each request.

By the way it adds Content-type customization to with setContentType(
String contentType ).

Here is the code :

public class JSONRpcClient implements InvocationHandler
{
 ...

 Hashtable _cookies = new Hashtable();
 public void addCookie( String key, String value )
 {
  _cookies.put( key, value );
 }

 String _contentType ;
 public void setContentType( String contentType )
 {
  _contentType = contentType ;
 }

 JSONObject sendAndReceive( JSONObject message )
 {
  ...
  URLConnection conn = url.openConnection();
  conn.setDoOutput( true );

  // ==================
  // Patch start here :

  Enumeration keys = _cookies.keys();
  StringBuffer cookiesStr = new StringBuffer();
  while( keys.hasMoreElements() )
  {
   String k = (String) keys.nextElement();
   if( cookiesStr.length() > 0 )
    cookiesStr.append( ';' );
    cookiesStr.append( k + "=" + _cookies.get( k ) );
  }
  conn.setRequestProperty( "Cookie",cookiesStr.toString() );

  if( _contentType != null )
  conn.setRequestProperty( "Content-Type", _contentType );

  // Patch end here.
  // ===============
  ...
 }
 ...
}

Cheers
Cyrille

Original issue reported on code.google.com by [email protected] on 13 Sep 2007 at 11:55

Jetty based TestServer for TestClient


Attached is a TestServer class that you can run your TestClient against.

The jars that need to be added to the project for this to work are:
jetty-6.1.1.jar
jetty-util-6.1.1.jar
servlet-api-2.5.6-6.1.1.jar

http://dist.codehaus.org/jetty/jetty-6.1.1.zip



Original issue reported on code.google.com by cameron.taggart on 22 Jan 2007 at 8:39

Attachments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.