Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameters by Reference?
Message
De
28/03/2009 10:53:59
 
 
À
24/03/2009 07:56:24
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Application:
Desktop
Divers
Thread ID:
01390967
Message ID:
01391965
Vues:
50
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform