WCF Ändern des Listentyps in Array, ich habe versucht, auch in den erweiterten Einstellungen zu ändern, aber dennoch denC#

Ein Treffpunkt für C#-Programmierer
Anonymous
 WCF Ändern des Listentyps in Array, ich habe versucht, auch in den erweiterten Einstellungen zu ändern, aber dennoch den

Post by Anonymous »

Ich habe WCF-Service: < /p>

Code: Select all

[OperationContract(Name = "GetAllEmployee")]
IList GetEmployees(string UserId, string UserPassword);
In serviceWeb.svc.cs Datei habe ich diesen Code:

Code: Select all

public IList GetEmployees(string UserId, string UserPassword)
{
List E = new List();
return E;
}
Wenn ich nun diese WCF-Referenz zum Webprojekt hinzufüge, wird es in die Verwendung von [] :
konvertiertpublic ServiceWeb.ServiceProWCFService.Employee[] GetAllEmployee(string UserId, string UserPassword)
{
ServicePROWeb.ServiceProWCFService.GetAllEmployeeRequest inValue
= new ServicePROWeb.ServiceProWCFService.GetAllEmployeeRequest();

inValue.UserId = UserId;
inValue.UserPassword = UserPassword;

ServicePROWeb.ServiceProWCFService.GetAllEmployeeResponse retVal =
((ServicePROWeb.ServiceProWCFService.IServiceProWCFService)(this))
.GetAllEmployee(inValue);

return retVal.GetAllEmployeeResult;
}
< /code>
Dies ist nicht korrekt. I tried to change in the advanced settings to make it as shown in this screenshot:
Image

But it still didn't change.
I have already tried these things:

Ändern Sie die erweiterte Einstellung der Konfigurationsreferenz, um System zu machen. /> < /li>
< /ol>
Bitte schlagen Sie eine bessere Lösung vor, um dies zu verarbeiten < /p>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post