Hi,
I'm new on web service and I'm trying to make web service to pass id and password like below
<ns:POS><!--Zero or more repetitions:--><ns:Source ><!--Optional:--><ns:RequestorID RequestorID="?" RequestorPassword="?"><!--Optional:--></ns:RequestorID><!--Optional:--></ns:Source></ns:POS>
but what I find is as below
<tem:POS><!--Optional:--><tem:Source><!--Optional:--><tem:RequestorID>?</tem:RequestorID><!--Optional:--><tem:RequestorPassword>?</tem:RequestorPassword></tem:Source><!--Optional:--><tem:RequestorName>?</tem:RequestorName></tem:POS>
here below the code so far
public class MyWebService : System.Web.Services.WebService
{
public class Source
{
public string RequestorID;
public string RequestorPassword;
}
public class POS
{
public Source Source;
}
public class ReadRQ
{
public POS POS;
}
[WebMethod]
public void ReadService(ReadRQ ReadRQ)
{
}
}