English 中文(简体)
为网站5.x设定方案证书 请求提供基本文件服务客户
原标题:Setting credentials programmatically for WebSphere 5.x Request Sender Binding BasicAuth Web Services client

我有一个网吧,5.x WSAD生成的网络服务客户,使用基本认证方法的标识。 利用社发协会网站服务用户编辑工具I,可以确定必要的安全环境和证书,然后将其传播到用户-网络服务用户-目录/分版/分册。 在服务器上部署网络应用后,该系统运转良好。 我可以通过下列途径在网上查阅这些全权证书:

Enterprise Applications > *MyApp* > Web Module > *MyModule* > Web Services: Client Security Bindings > Request Sender Binding > Login Binding 

然而,我需要从 Java逻辑上从方案上确定这些全权证书。 以下呼吁似乎是不够的:

((javax.xml.rpc.Stub) service)._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, "user");
((javax.xml.rpc.Stub) service)._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, "password");

自2006年以来 我收到以下答复:

WSEC5075E: No security token found which satisfies any one of AuthMethods.

能否在产生的客户 Java逻辑中确定必要的全权证书?

如果不是的话,也许可以通过低级别接触这一呼吁来做到这一点,可能通过人工方式将必要的安保内容输入SOAP信息发布器?

事先感谢你!

最佳回答

我设法通过创建Axis网络服务客户和实施我自己的org.apache.axis.handlers来解决这个问题。 BasicHandler修改这一呼吁。 手稿以轴心图书馆的WsseClientHandler为基础。

所需逻辑列入Stub档案如下:

    _call.setUsername("username");
    _call.setPassword("password");
    _call.setProperty(WsseClientHandler.PASSWORD_OPTION,
            WsseClientHandler.PASSWORD_CLEARTEXT);
    _call.setClientHandlers(new WsseClientHandler(), null);
问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签