Sounds good, Edison.  Thanks!

On Wed, Feb 6, 2013 at 4:13 PM, Edison Su <edison...@citrix.com> wrote:

> AFAIK, there is no other component using JSON-RPC in CloudStack, maybe you
> can try https://code.google.com/p/json-rpc/wiki/Usage, add the following
> in your pom file:****
>
> <dependencies>****
>
>    <dependency>****
>
>       <groupId>org.json.rpc</groupId>****
>
>       <artifactId>jsonrpc</artifactId>****
>
>       <version>1.0</version>****
>
>    </dependency>****
>
> </dependencies>****
>
> ** **
>
> <repositories>****
>
>    <repository>****
>
>       <id>json-rpc</id>****
>
>       <url>http://json-rpc.googlecode.com/svn/mavenrepo</url>****
>
>    </repository>****
>
> </repositories>****
>
> ** **
>
> ** **
>
> *From:* Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
> *Sent:* Wednesday, February 06, 2013 1:48 PM
> *To:* Edison Su
> *Cc:* cloudstack-dev@incubator.apache.org
> *Subject:* Re: JSON Question****
>
> ** **
>
> Thanks, Edison!****
>
> ** **
>
> So, now I can serialize and de-serialize data to and from the JSON format.
> ****
>
> ** **
>
> My next question is the following:  Do we already have a library in place
> in CloudStack that lets us make use of JSON-RPC?  Perhaps Gson allows for
> this?****
>
> ** **
>
> I'm thinking I'd like something similar to the following, but I'm not sure
> what the "norm" is in CloudStack:****
>
> ** **
>
> ** **
>
> JsonRpcHttpClient client = new JsonRpcHttpClient(
>
> ****
>
>     new URL("http://example.com/UserService.json";));
>
> ****
>
>
> User user = client.invoke("createUser", new Object[] { "bob", "the builder" 
> }, User.class);****
>
> ** **
>
> On Tue, Feb 5, 2013 at 4:28 PM, Edison Su <edison...@citrix.com> wrote:***
> *
>
> You can add:
>
>     <dependency>
>       <groupId>com.google.code.gson</groupId>
>       <artifactId>gson</artifactId>
>       <version>${cs.gson.version}</version>
>     </dependency>
> Into your maven pom file, then use gson right away.****
>
>
> > -----Original Message-----
> > From: Mike Tutkowski [mailto:mike.tutkow...@solidfire.com]
> > Sent: Tuesday, February 05, 2013 3:21 PM
> > To: cloudstack-dev@incubator.apache.org
> > Subject: JSON Question
> >
> > Hi everyone,
> >
> > I'm writing a storage plug-in and have gotten to the point where I need
> to
> > make a call out to our SAN to dynamically create storage for a Compute or
> > Disk Offering.
> >
> > Our SAN's API talks JSON.
> >
> > Do we already make use of JSON inside of the Management Server?  I expect
> > we use it in other parts of the system, but want to make sure I'm
> leveraging
> > the right component(s) when I start writing this API code.
> >
> > Thanks!
> >
> > --****
>
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*****
>
> > e: mike.tutkow...@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the****
>
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *(tm)*****
>
>
>
> ****
>
> ** **
>
> --
> *Mike Tutkowski*****
>
> *Senior CloudStack Developer, SolidFire Inc.*****
>
> e: mike.tutkow...@solidfire.com****
>
> o: 303.746.7302****
>
> Advancing the way the world uses the 
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*****
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Reply via email to