Web Services Quiz: Issue 2
Do you see a problem in the following Web Service implementation?
My opinion about this code snippet will follow…
namespace Issue2
{
public class DeletePersonRequest
{
public string name;
public string firstname;
// place holder to carry unknown elements
[XmlAnyElement]
public XmlElement[] Any;
}
[WebService(Namespace="uri.beatsch.Issue2")]
public class Issue2 : System.Web.Services.WebService
{
[WebMethod]
[SoapDocumentMethod(OneWay=true, ParameterStyle=SoapParameterStyle.Bare)]
public void DeletePerson(DeletePersonRequest dpr)
{
// Just do something
return;
}
}
}