Geeks With Blogs
Jonas Bush Blog.blog.blog.blog
I just finished up some code that uses some other functionality of atlas.  To sum up: Whoa! This may be available in AJAX.net or some of the other frameworks, but I was amazed at how easy this was:
 
I have a web service that returns a class, like so:
 
public class MyClass
{
  public string MyString;
  public int MyInt;
}
 
[WebMethod(true)]
public MyClass MyWebMethod()
{
  //init MyClass here
  MyClass myClass = new MyClass();
  return myClass;
}

 
the beauty of it is, I have access to those fields in my javascript:
 
function callWS()
{
  MyWebService.MyWebMethod(onComplete);
}
 
function onComplete(result)
{
  alert(result.MyString);
}

 
Very very very very cool :)
 
Posted on Monday, April 3, 2006 2:10 PM Atlas | Back to top


Comments on this post: Atlas and JSON

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Jonas Bush | Powered by: GeeksWithBlogs.net