我有以下代码正在执行并调用私有方法CreateOrder。正在从Web方法调用CreateOrder,但它是一个私有方法。我收到错误:" faultcode = a:InternalServiceFault faultactor ="超出CreateOrder。 CreateOrder不会抛出任何其他异常细节。将guid传递出私人是否有问题?我将includeExceptionDetailInFaults设置为true,因此我不知道这是否是调用该函数的问题,或者是否是适当的异常抛出异常的问题。
Guid OrderResponseTicket;
String TECCasingType;
string CurrentAuthCookie = "";
TECCasingType = CasingType;
if (Environment.Equals("PROD", StringComparison.OrdinalIgnoreCase))
CurrentAuthCookie = Login(Username, Password, ConfigurationManager.AppSettings["DatabaseIDProd"].ToString(), Environment);
else
CurrentAuthCookie = Login("test1@cdi.com", "test1!", ConfigurationManager.AppSettings["DatabaseIDCTE"].ToString(), Environment);
try
{
OrderResponseTicket = this.CreateOrder(inputfile, jobinfo, CurrentAuthCookie, "CASS", TECCasingType, "", ChannelId);
}
以下是CreateOrder的定义。
private Guid CreateOrder(FileObject inputfile, JobInfo jobinfo, string CurrentAuthCookie, String HygieneProcessType, String CasingOption, String SelectedPAF, string ChannelId)
{}
以下是ServiceBehaviors的web.config设置...
<serviceBehaviors>
<behavior name="TECServiceHelperBehavior">
<serviceMetadata httpsGetEnabled="false"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
<!--<wsdlExtensions singleFile="True"/>-->
</behavior>
</serviceBehaviors>