1의 정수를 나타내도록 생성된다WCF + WebService를 2 개 필드 I가 '내부'매개 변수 방법이 내 WCF 업무
[OperationContract]
PublishResult PublishEnrollmentProfile(
string siteName, int methodId,...
);
I는 다음과 같은 서명 생성이 WCF 서비스 WebService에 참조를 생성하는 경우 :
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("...",
RequestNamespace="...", ResponseNamespace="...",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
public PublishResult PublishEnrollmentProfile(
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
string siteName,
int methodId,
[System.Xml.Serialization.XmlIgnoreAttribute()]
bool methodIdSpecified, ...)
{
object[] results = this.Invoke("PublishEnrollmentProfile", new object[] {
siteName,
deployServerName,
methodId,
methodIdSpecified,
deviceClass,
deviceName,
registrationCode});
return ((PublishResult)(results[0]));
}
당신은 대신 하나 개의 정수 매개 변수의 내가있어 2 볼 수 있습니다 (값이 지정된 경우 '마크) (값) 정수와 부울을.
괜찮습니까? 왜 두 번째 매개 변수 (bool)가 필요합니까?
고맙습니다.
http://stackoverflow.com/questions/2284760/what-are-these-extra-parameters-in-my-asmx-proxy-methods를 참조하십시오. 이는 정상적이고 예상됩니다. –