1
ジェネリック型のためのXMLシリアル化の要素名を指定する私はジェネリック型Response<TCode, TData>
を使用してWebサービスを作成しましたので、私はWebサービス:
- のような要素で終わるよResponseOfResponseCodeUserData
- ResponseOfResponseCodeArrayOfRightData
など
機能的にはうまく動作しますが、これらのparticulに名前を付ける方法があります場合、私は思ったんだけどar要素?
EDIT:
ここでは一例です。
[return: XmlElement("AuthenticationResponse")]
[WebMethod]
public Response<ResponseCode, AuthenticationData> AuthenticateProcess(string ProcessName, string Password)
{
// ... Code ...
}
はまだ
<ResponseOfResponseCodeAuthenticationData (...) >
任意のアイデアを返しますか?
Ah、属性はXmlRootです。適切に更新されました。 –