Author: jbassett | Posted on: 4/1/2009 11:46:43 PM | Views : 1019

I have a an Ajax enabled web service that needs to call a remote (on another domain) web service.

So I setup the ajax service to call a local .asmx which then uses a "Web Reference" to the remote asmx.

It calls the function in the remote asmx and executes just fine.

The problem...

1.) First, am I doing this correctly?

2.) Reporting back is not working. Here's what I'm doing inside the locally called service:

Dim ws As New WebReference.AjaxEnabledWebService
Dim returnstatus as string=""
ws.FunctionName(ParameterSendin1, ParameterSendin2)
returnstatus=ws.Container.Components.Item("returnstatus").ToString

This executes but doesn't bring back the thing I'm setting to "Return" at the end of the remote ws.

ALSO: If I just put in the local ws....Return "testwords"

....I can't see it in my Javascript using the standard "Webservice(Sending1,Sending2, OnComplete, OnTimeOut, On ...

Go to the complete details ...