Hello All,
How do you make a C# Web Service use an attribute of an XML request as
a parameter instead of an element?
I need to write an interface for a third party where the XML request
will be in the form of:
<MyRequest MyParameter="Value />
When I make a WebMethod in my Web Service, using Visual Studio .Net
2003, like:
[WebMethod]
public int MyRequest( int MyParameter )
{
return 0;
}
The Web Service will only accept an XML request in the form of:
<MyRequest>
<MyParameter>Value</MyParameter>
</MyRequest>
I cannot make the third party change their XML request. I've been
scouring the Internet and the MSDN for a while, and only came across a
ParameterStyle modifier, which still make the parameters be elements.
Please help!
Thank you in advance,
Marcus Grant