Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: variable passed by reference not getting return value

$
0
0
Re: variable passed by reference not getting return value
Web Service Proxy Generator
Re: variable passed by reference not getting return value
Apr. 3, 2013
07:27 am
3R40FYYKXShow this entire thread in new window
Gratar Image based on email address
From:Phil Cuba
To:Rick Strahl
yes it does. This is from the disassembler:

[SoapDocumentMethod("http://dev.tranact.com/TestFoxPro", RequestNamespace="http://dev.tranact.com/", ResponseNamespace="http://dev.tranact.com/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)]
public bool TestFoxPro(string[] arrTest, ref string Test)
{
object[] objArray = base.Invoke("TestFoxPro", new object[] { arrTest, Test });
Test = (string) objArray[1];
return (bool) objArray[0];
}


Does the service support passing the value by reference? If not the value won't be set...

+++ Rick ---



I am trying to pass an array and a variable by reference using the dot net bridge. I am not getting the return value in my variable. What am I doing wrong?

loBridge = CREATEOBJECT("wwDotNetBridge") loService = loBridge.CreateInstance("CheckServices.CheckServices")LOCAL loArr as Westwind.WebConnection.ComArray loArr = loBridge.CreateArray("System.String")*** Add Items loArr.AddItem("Element 0") loArr.AddItem("Element 1")LOCAL rc1 as String RC1='0' llresult=loBridge.InvokeMethod(loService,"TestFoxPro",loArr,@RC1) ?loarr.item(0) ?loarr.item(1) ?RC1




Viewing all articles
Browse latest Browse all 10393

Trending Articles