The vendor with whom we integrate provides some of the features of the web service ... They developed it in Java and also provided us with an example client project (in Java) that shows the consumption of these web services. We really want to implement the consumption / interface of web services using .NET, but we cannot understand how the security system should work.
In their Java client example, they seem to be using something called "Apache Rampart". They have code inside that looks like this:
public static void initSecurityPolicy(ServiceClient client) throws Exception
{
Options options = client.getOptions();
options.setProperty(RampartMessageData.KEY_RAMPART_POLICY,
loadPolicy("policy.xml"));
options.setUserName(USERID);
options.setPassword(PASSWD);
options.setTimeOutInMilliSeconds(READTIMEOUT);
client.engageModule("rampart");
}
- , .NET, ? .NET-.. WSDL-, -, / , " SOAP", , .
policy.xml. .NET-, -, VStudio WS-, , policy.xml, , .NET.