11g ws client proxy and Stub does not recognize the property (policy)

Hello

I did a web service in 11g with a security policy and has been at wls and generate a proxy web service with java oracle.j2ee.ws.tools.wsa.Main - genProxy

When I try to add security in proxy ws client I had this error Stub does not recognize the property: weblogic.wsee.security.wss.CredentialProviderList
or this javax.xml.rpc.JAXRPCException error: Stub does not recognize the property: weblogic.wsee.security.bst.serverEncryptCert

Without policies, everything works and credProviders has valid values.

Thanks Edwin

Code of WS

@WebService
@Policy (uri = "policy:Wssp1.2-2007-Wss1.0-UsernameToken-Plain-X509-Basic256.xml")


public class CreditCheck2 {}

@WebMethod
public String echo (String s) {}
return s;
}
}


client proxy WS

private nl.ordina.ws.client.CreditCheck2 _port;

Public CreditCheck2PortClient() throws Exception {}
ServiceFactory factory = new ServiceFactoryImpl();
_port = ((nl.ordina.ws.client.CreditCheck2Service) factory.loadService (nl.ordina.ws.client.CreditCheck2Service.class)) .getCreditCheck2Port ();
}

/**
@param args
*/
Public Shared Sub main (String [] args) {}
try {}
nl.ordina.ws.client.CreditCheck2PortClient myPort = new nl.ordina.ws.client.CreditCheck2PortClient ();
System.out.println ("calling" + myPort.getEndpoint ());

String username = "weblogic";
String password = "weblogic";

String clientKeyStore = "d:/oc4jssl.jks";
String clientKeyStorePass = "Welcome";
String clientKeyAlias = "oc4jssl";
String clientKeyPass = "Welcome";
String serverCertFile = "d:/demoidentity.cer";


List CredProviders = new ArrayList();
X509Certificate serverCert = (X509Certificate), CertUtils.getCertificate (serverCertFile);

CredentialProvider cp = new ClientBSTCredentialProvider (clientKeyStore,
clientKeyStorePass,
clientKeyAlias,
clientKeyPass,
"JKS"
serverCert);
credProviders.add (cp);
CP = new ClientUNTCredentialProvider (username, password);
credProviders.add (cp);

Heel heel = myPort._port (heel);

stub._setProperty (WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders);
stub._setProperty (StubPropertyBSTCredProv.SERVER_ENCRYPT_CERT, CertUtils.getCertificate (serverCertFile));

stub._setProperty (WSSecurityContext.TRUST_MANAGER,
new TrustManager() {}
{public boolean certificateCallback (X509Certificate [] string, int validateErr)
Returns true;
}
} );


Add your own code here

} catch (Exception ex) {}
ex.printStackTrace ();
}
}

JDeveloper gives you the opportunity to select the type of proxy you want to generate.
You have found this exception because you try to use the heel on a proxy of JAX - WS.
You must either use a JAX - RPC proxy, if you want to use the same code
OR
If you want to use JAX - WS proxy, you must change your code for:
Import javax.xml.ws.BindingProvider;
:

Card rc = (port) .getRequestContext ((BindingProvider));
RC.put (WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders);

whenever you use something like:

stub._setProperty (WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders);

Because your service is JAX - WS, I suggest you create JAX - WS only proxy and change your code and try.
In the case of JAX - WS, you don't need
Heel heel = myPort._port (heel);

Tags: Java

Similar Questions

  • XPS 730 x company vista plug-and-play does not recognize the dell aio 962 printer

    XPS 730 x company vista plug-and-play does not recognize the dell aio 962 printer

    It is usually best to install the drivers before connecting the printer. Use the printer installation disk, if you have one, or follow the procedure here:

    http://support.Dell.com/support/topics/global.aspx/support/DSN/en/document?c=us&l=en&s=Gen&DN=TT1092882

  • Win 7 Backup and Restore does not recognize the USB flash drives.

    Win 7 Backup and Restore does not recognize the USB flash drives for a backup image or a recovery disc.  Given that Windows 7 Starter Edition is used in many, if not most of the netbooks and netbooks have no optical drive, support for flash (thumb) drives would be very handy, especially for repair and recovery.

    Back up and restore: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

    You can't save backups to a flash drive, you need an external USB hard drive.

    JS
    http://www.PAGESTART.com

    Never be afraid to ask. This forum has some of the best people in the world to help.

  • Download of song in MP3 of cloud but it downloads to the amz format and it does not recognize the media player. How can I down the cloud song in Media Player so that it goes to my library and plays?

    After that I chose to download for my song in the clouds and he starts the process, options for the download location include no access to the Media Player, Media Center or any other media program.  There is no media choice program in the screen "save in", only the documents and the file downloads to the amz instead of MP3 format.  Cloud does not address this issue in their help section. How correctly to download music from the clouds to a multimedia program on my PC?

    This should help you:

    http://www.ehow.com/how_6085305_windows-support-_amz-MP3-format.html

    Amazing to see what you are looking for on Google ;-))
    See you soon
    Jerry
  • My bevel and Emboss does not recognize the right choice

    So I found a model online. I imported into PS, I then used the perspective deformation tool to stretch it in place. Now I would like to in bevel and Emboss the holes, however, after the selection, he in bevel and grit the model itself. And it is pixelated. I don't know what is happening.

    Screen Shot 2015-05-16 at 11.46.20 AM.png

    selected holes...

    Screen Shot 2015-05-16 at 11.47.15 AM.png

    See how it's cut the whole Board? I don't know what is happening. I want that the holes to be cut.

    Thanks in advance,

    Tom

    After you make the selection, choose Cmd + J to put this item on its own layer. Then you apply bevel & Emboss. That should give you the result you are after.

  • 5 c does not recognize the sim card

    I got a plan on the development of media and 5 c. Phone is unlocked and now does not recognize the sim card. What should do?

    What is the error message you get?

  • Photosmart HP 6520 does not recognize the envelopes in Word for Mac

    I've been printing envelopes #10 my Mac from word on my old HP 309n-c with no problems.  I now have the HP 6520 and it does not recognize the envelope size.  I was in and made sure the print properties were positioned and I still get the error message that I have not match the paper size.  Any suggestions?

    Hello

    Choose file > Page Setup. Choose Page attributes from the settings menu, and then choose any printer from the Format pop-up menu for. Choose any printer ensures that your document can print on any printer that supports the paper size that select you.

      • If the Page Setup is not available, choose file > print. If the print dialog contains only two pop-up menus and some buttons on the bottom, click the triangle beside the printer pop-up menu.

    1. Choose Manage sizes custom from the paper size pop-up menu.

    2. Click the Add (+) button.

    3. Double-click the name of the paper size, and then type a new name.

    4. Enter values in the fields the paper size and margins of the printer and then click OK.

      Note: Make sure that the envelope is placed in the center of the printer with the flap upward

  • OfficeJet J4680 does not recognize the password wireless

    Hello!

    Our wireless printer is grateful is no longer the password wireless. It will print if connected via FireWire/USB and it does not recognize the network, but he thinks that the password is wrong. There is no Ethernet port, so I can't connect it to the modem or the router to see if it would work like this. I restarted the modem, the router and the printer, but nothing seems to work. The password is correct. What can I do else?

    Sharron

    Nevermind - I went stupid but now solved the problem.

  • Windows does not recognize the .themepack files

    Hello

    Microsoft, I downloaded several .themepack files.  I have Windows 7 Home Premium (32 bit), and it does not recognize the files.  In other words, when I click on the files, they do not open and install.

    " Strangely, when I click the .themepack file properties, it says"Opens with"the" Windows Shell common DLL. "Still more strangely, when I go in the file Extensions Manager in Control Panel, the .themepack extension does not appear.

    I tried to reboot, etc.  Is there a way to fix this?  Otherwise, there is a long workaround solution that I can do to get funds from the .themepack file and install it manually?

    Hi harpsichord,.

    Can you check something:

    1. Press the Windows key + R > type regedit and press enter
    2. Go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.themepack
    3. Make sure that there is no key UserChoice (subfolder)
  • Laptop does not recognize the usb mouse or the internal speakers.

    The laptop does not recognize the USB mouse. I have re installed the drivers from the site of the constructor (HP), but it still does not work.

    In addition, the internal Laptop speakers no longer work. There is no sound coming out of the laptop and it does not recognize the external headphones plugged into the headphone jack.

    I ran several troubleshooting utilities (audio playback, FixIt) and they are no help.

    Hello

    Thank you for keeping us posted.

    Sorry for the late reply.

    I imagine the inconvenience that you are experiencing. However, I appreciate your efforts to resolve the issue.

    I would suggest trying the following methods and check if it helps.

    Method 1:

    How to use the tool File Checker system to repair missing or corrupted system files,

    Please follow the steps in the link provided below.

    https://support.Microsoft.com/kb/929833?WA=wsignin1.0

    Note: System File Checker is a Windows utility that allows users to find corruptions in Windows system files and restore the damaged files. This article describes how to run the system (SFC.exe) to File Checker tool analyzes your system files and to repair the system missing or corrupt files in Windows or Windows 8 8.1. If a Protection of resources Windows (WRP) file is missing or is damaged, Windows may not behave as expected.

    If the problem persists, follow method 2

    Method 2:

    Run a full scan of the computer with the Microsoft Safety Scanner to make sure that the computer is virus-free.

    Microsoft, security scanner please follow the steps in the link provided below.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: data files that are infected must be cleaned only by removing the file completely, which means there is a risk of data loss.   

         

    If the problem persists, follow method 3

    Method 3:

    I suggest you try the steps from the following link and check if it works.

    No sound in Windows.

    http://Windows.Microsoft.com/en-us/Windows/no-sound-help#no-sound=Windows-8&V1H=win8tab4&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    For the problem with the USB mouse, there could be a possibility that there is a conflict of material with the mouse.

    I suggest you to try some other USB mouse with the laptop and check if it works.

    I hope this information is useful.

    Please let us know if you need more help, we will be happy to help you.

  • Is there a bug in 9 Captivate, which does not recognize the click of the mouse for the title text?  Mac question

    I just installed 9 Captivate on my Mac, and it does not recognize the double click of the mouse to enter text in a title area.  Subtitle text works, but the text is not title.  I work in a reactive mode.

    Hi rayhoskins,

    We have not encountered such a problem. Can you please clear Captivate preferences and try again. .

    Captivate preferences can be erased by double-clicking the following file: Applications\Adobe Captivaate 9\utils\ClearPreferencesMac

    If you still face the issue please provide the Machine config?

    -Derrick

    Captivate the engineering team

  • 6 Lightroom does not recognize the raw files of Nikon D800

    I have a nikon D800 and Lightroom does not recognize the raw files yet of this camera.  I've updated the LR software to 6.1.1 yet still cannot import files.

    Can you help me

    Thank you

    Ruben

    The D800 has been supported since Lightroom 4.1.

    You use an earlier version of the Nikon software to transfer files from camera to computer? Older versions are known to make Raw files unreadable by Adobe software.

    Try to download a version update of Nikon. Or use a different card for example reader method.

  • I have a My Passport to the top by car and I get error messages on this to be ejected (although it was still connected). Now my computer does not recognize the drive. All solutions?

    I have a My Passport to the top by car and I get error messages on this to be ejected (although it was still connected). Now my computer does not recognize the drive. All solutions?

    Drive, interface in the crankcase of training controller, or the USB port or the cable may be faulty.

  • Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    Kev2012 wrote:

    Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    It would depend on what you're trying to link to?

    Here are the supported Bluetooth profiles an Apple device can connect to iOS: Bluetooth profiles supported - Apple Support

  • Account Internet preferences system does not recognize the password for my AOL account... and so mail does not read the email in my AOL account

    Account preferences Internet system does not recognize the password for my AOL (Internet) account... and so Mail does not read the email in my AOL account

    Mail asking me to "Enter your password for [my AOL account] in Internet accounts."

    When I enter my password Internet accounts says it is "Impossible to verify the account name or password."

    iMac (24 inch, early 2009)

    Processor clocked at 2.66 GHz Intel Core 2 Duo

    Memory 8 GB 1067 MHz DDR3

    OS X 10.11.1 (B 15, 42) El Capitan

    Remove the password in Keychain Access (Applications/Utilities). While there, menu Keychain Access of relief.

    The problems of Keychain - see post of khati

Maybe you are looking for

  • Tecra 730cdt - upgrade the processor?

    I own and like an old but venerable Tecra 730cdt p150mhz; y at - there any upgrade processor which is possible, or no sense?I already brought up the ram of 32 to 80 MB, with pleasurable effects.Any suggestions much appreciated.

  • Watch NumericTextBoxDouble - 0 instead of 0

    There is something odd happens: I put NumericTextBoxDouble in the form, set its value to 0, and it shows - 0. Of course, it should be 0. Measurement Studio 2013 / VS 2010/2013

  • the structure of the case support

    Well guys, I want to just do one simple thing here, but I'm having a problem here: I have 2 Boolean types, and if one of them is '1' my business structure should work until I have click on stop. But I'm clicking on the Boolean value of the program to

  • appearance of Windows xp p3 disappeared

    By accident, some windows updates are removed from my PC after my office very different look. The icons are very small, but I can not reset because when I open the properties to the Office I couldn't find any tab choose the appearance settings, theme

  • WAG 120N as switch

    A big hello to the community. How are you? Hope that all is well with you all. Can I ask for help, please? I have a router WAG120N and I want to use as a switch. My setup is the following: NETGEAR DG2200N modem-router and wireless on the 1st floor (I