問題描述
在具有自定義類型的 WSE 服務中,構造函數是否在消費客戶端工作? (In WSE services, with custom types, do constructors work on the consuming client's side?)
I have custom types in a WSE web service.
the consuming client can't seem to see my constructor when instantiating a class, is this normal?
‑‑‑‑‑
參考解法
方法 1:
Yes.
Web services do not pass objects, they pass messages. The class on the client side is simply a holder for properties on that message, it will not have implementation beyond that.