Gajalo Lopez

Greenhorn
+ Follow
since Jun 27, 2014
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gajalo Lopez

Hi,

I have the same problem, but I dont have the Call object but instead I have a Stub. I mean, my approach was to have Jdeveloper create a JAX-RPC client, something with code like this:

@Generated("Oracle JDeveloper")
public void addBSTCredentialProvider(String clientKeyStore, String clientKeyStorePass, String clientKeyAlias,
String clientKeyPass, X509Certificate serverCert) throws Exception {
CredentialProvider cp =
new ClientBSTCredentialProvider(clientKeyStore, clientKeyStorePass, clientKeyAlias, clientKeyPass, "JKS", serverCert);
addCredentialProvider(cp);
}

public void setProxyServerInfo(String proxyHost, int proxyPort, String username, String password) {
Proxy p = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort));
HttpTransportInfo info = new HttpTransportInfo();
info.setProxy(p);

((Stub) getPort())._setProperty("weblogic.wsee.connection.transportinfo", info);

if (username != null)
((Stub) getPort())._setProperty("weblogic.webservice.client.proxyusername", username);

if (password != null)
((Stub) getPort())._setProperty("weblogic.webservice.client.proxypassword", password);
}

It means I have a Stub and not a Call… I don’t know if I made myself clear, but can someone point me in some direction to apply this solution to this jdeveloper generated code? I can post more code if needed.

Any help will be much appreciated
6 years ago