Wednesday, March 21, 2012

complex return type

Hi all,

I have a WS that takes in simple parameters (decimal) and returns a complex type (custom object). I have tested the WS through a regular .aspx page and it works fine.

Now when I invoke through Atlas Javascript, I dont get any errors but my OnComplete method never gets called. Any ideas? How can I debug? I checked the IIS logs and it shows the post being made to the WS.

TIA!

Is this the same scenario as in your other post? Using fiddler can be very helpful to debug such issues. Also, make sure you have an onError handler registered in addition to your onComplete.

David


Yes, what it boiled down to was if I passed in a decimal type, for some reason the WS wouldnt work. I had to change Decimal to double and it worked.

What is fiddler and where do I get it?


Fiddler is an excellent tool that lets you look at http requests/responses so you can see what's going over the wire. You can get it fromhttp://www.fiddlertool.com/.
Would I install it server side/ client side or both?

Client side. It works by registering itself as an http proxy in the browser. It works automatically with IE, and can also work with Firefox with some manual configuration.

No comments:

Post a Comment