mulikevs / json-rpc-client Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/json-rpc-client
Automatically exported from code.google.com/p/json-rpc-client
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
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
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
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
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
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.