Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters by Reference?
Message
From
28/03/2009 10:53:59
 
 
To
24/03/2009 07:56:24
General information
Forum:
ASP.NET
Category:
Web Services
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Application:
Desktop
Miscellaneous
Thread ID:
01390967
Message ID:
01391965
Views:
49
Gary, is this perhaps the original version of the question you asked a few hours later ("Remove 'Request' tag" under the SOAP category)?

If not, the answer is "yes", you need to explicitly pass by reference. So your web method would look like this:
[WebMethod(Description="Pass an XML string by reference, return boolean")]
public bool MyMethod(ref string MyXml)
{
}
~~Bonnie



>Can you help a .Net Newbie with what is probably a stupid question?!
>
>I am calling a WebService and passing in an XML string, my understanding of the WebService is that I pass in the XML and it updates it with a result.
>
>I have manged to work out the authentication, and I get no error, but the XML I send in is not updated. I wonderred if I need somehow to implicitly say I am passing my parameter by reference instead of by value?
>
>
>WebServiceLink.HTNGHeaderValue.From.Credential.userName = UserName
>WebServiceLink.HTNGHeaderValue.From.Credential.password = Password
>
>WebServiceLink.ReceiveMessageAsync(XmlString)
>
>
>
>
>
>Regards
>
>
>Gary.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform