标签:
public void GetDept() { CUX_BASEINFO_OA_PKG_Service client = new CUX_BASEINFO_OA_PKG_Service(); var inputParameters = new InputParameters(); inputParameters.P_ACTION_ID = "1"; var userToken = new UsernameToken("ERP_API", "qazwsx12345", PasswordOption.SendPlainText); //需要usertoken var context = client.RequestSoapContext; context.Security.Tokens.Add(userToken); context.Security.Elements.Add(new MessageSignature(userToken)); var SOAHeader = new SOAHeader();//soapheader的参数中没有username和password,需要创建usertoken SOAHeader.Responsibility = "APPLICATION_DEVELOPER"; SOAHeader.RespApplication = "FND"; SOAHeader.SecurityGroup = "STANDARD"; SOAHeader.NLSLanguage = "SIMPLIFIED CHINESE"; SOAHeader.Org_Id = "81"; client.SOAHeaderValue = SOAHeader; var OutputParameters= client.CUX_GET_BASEINFO_TO_OA(inputParameters); }
C#调用Oracle ebs生成Webservice,加用户名密码验证
标签:
原文地址:http://www.cnblogs.com/wuday/p/5036595.html