תופעות

אתה מנסה שנוצרו באופן אוטומטי בהתבסס על סכימת ה-Microsoft Exchange Server 2010 Service Pack 1 (SP1) של קוד ה-proxy. במצב זה, השורה הבאה חסר בקוד ה-proxy:

[System.Web.Services.Protocols.SoapHeaderAttribute("ExchangeImpersonation")] 

לכן, proxies נוצר באופן אוטומטי אינם תומכים משפיע על בעיית Exchange Impersonation.This את שלוש הפעולות הבאות:

  • GetUserOofSettings

  • SetUserOofSettings

  • GetUserAvailability

פתרון

כדי לפתור בעיה זו, התקן את אוסף העדכונים הבאים:

2579150 תיאור של אוסף העדכונים 4 עבור Exchange Server 2010 Service Pack 1

פתרון

כדי לעקוף בעיה זו, השתמש Microsoft Exchange אינטרנט שירותים (EWS) API מנוהל 1.1 כדי לשנות את המחלקות שנוצר בסכימה. כדי לבצע זאת, הוסף את השורה הבאה בקוד ה-proxy:

[System.Web.Services.Protocols.SoapHeaderAttribute("ExchangeImpersonation")] 

להלן הוא דוגמה עבור הפעולה GetUserOofSettings . הקוד המקורי:

[System.Web.Services.Protocols.SoapHeaderAttribute("ServerVersionInfoValue", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)][System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/exchange/services/2006/messages/GetUserOofSettings", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Bare)][return: System.Xml.Serialization.XmlElementAttribute("GetUserOofSettingsResponse", Namespace = "http://schemas.microsoft.com/exchange/services/2006/messages")]public GetUserOofSettingsResponse GetUserOofSettings([System.Xml.Serialization.XmlElementAttribute(Namespace = "http://schemas.microsoft.com/exchange/services/2006/messages")] GetUserOofSettingsRequest GetUserOofSettingsRequest){    object[] results = this.Invoke("GetUserOofSettings", new object[] {    GetUserOofSettingsRequest});    return ((GetUserOofSettingsResponse)(results[0]));}

קוד ששונו:

[System.Web.Services.Protocols.SoapHeaderAttribute("ServerVersionInfoValue", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)][System.Web.Services.Protocols.SoapHeaderAttribute("ExchangeImpersonation")][System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/exchange/services/2006/messages/GetUserOofSettings", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Bare)][return: System.Xml.Serialization.XmlElementAttribute("GetUserOofSettingsResponse", Namespace = "http://schemas.microsoft.com/exchange/services/2006/messages")]public GetUserOofSettingsResponse GetUserOofSettings([System.Xml.Serialization.XmlElementAttribute(Namespace = "http://schemas.microsoft.com/exchange/services/2006/messages")] GetUserOofSettingsRequest GetUserOofSettingsRequest){    object[] results = this.Invoke("GetUserOofSettings", new object[] {    GetUserOofSettingsRequest});    return ((GetUserOofSettingsResponse)(results[0]));}

מצב

Microsoft אישרה כי מדובר בבעיה במוצרי Microsoft הרשומים במקטע 'חל על'.

מידע נוסף

לקבלת מידע נוסף אודות הפעולה GetUserOofSettings , בקר באתר האינטרנט הבא של Microsoft:

מידע כללי אודות הפעולה GetUserOofSettingsלקבלת מידע נוסף אודות הפעולה SetUserOofSettings , בקר באתר האינטרנט הבא של Microsoft:

מידע כללי אודות הפעולה SetUserOofSettingsלקבלת מידע נוסף אודות הפעולה GetUserAvailability , בקר באתר האינטרנט הבא של Microsoft:

מידע כללי אודות הפעולה GetUserAvailabilityלקבלת מידע נוסף אודות Exchange התחזות, בקר באתר האינטרנט הבא של Microsoft:

מידע כללי אודות התחזות Exchange

זקוק לעזרה נוספת?

מעוניין באפשרויות נוספות?

גלה את יתרונות המנוי, עיין בקורסי הדרכה, למד כיצד לאבטח את המכשיר שלך ועוד.