Hello All,
How can I make a C# web service accept a parameter as an attribute of
the requesting XML instead of an element?
I need to write an interface for a third party, which will call my web
service in the form of:
<MyRequest MyParameter="Value">
When writing web service code with C# (Visual Studio .Net 2003), I have
a function of:
[WebMethod]
public int MyRequest( int MyParameter )
{
return 0;
}
And that function only accept an XML request in the form of:
<MyRequest>
<MyParameter>Value</MyParameter>
<MyRequest>
Searching through the Internet and the MSDN, I can only find reference
to a ParameterStyle, but that still uses elements for parameters.
Please help!
Thank you in advance,
Marcus Grant