1
ASP.NET 웹 서비스에서 매개 변수 유형 태그를 제어하는 방법은 무엇입니까? 나는 하나의 웹 응용 프로그램에서 < xml> 문자열 </xml>을 얻고 < 데이터> </data> 다른 것을 제어 할 수있는 방법이 있습니까?ASP.NET 웹 서비스 매개 변수 유형
[WebMethod]
public bool TestFunction(string xml)
{
//DO SOMETHING
return true;
}
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<TestFunction xmlns="http://tempuri.org/">
<xml>string</xml> //<data>string</data>
</TestFunction>
</soap:Body>
</soap:Envelope>
편집 : 나는 당신이 지정하는 매개 변수 이름을 사용하여 기능을
예 매개 변수 이름 이었기 때문에 이름 때문에 전송 데이터 형식과 관련이 있다고 생각했습니다. – redman