考慮以下幾點:什麼時候在ASMX中實例化SoapHeader字段?
public MyCustomHeader MyHeader;
public New()
{
//MyHeader is NOT instantiated
}
[SoapHeader("MyHeader")]
[WebMethod()]
public bool MyFunction()
{
//MyHeader is instantiated, but when was it instantiated?
}
嗨,還有這個問題,還是米奇回答你的問題? – 2009-07-21 23:22:40