How to set SSL from an Webservice EJB client

I want to invoke a web service from a stateless session EJB. How do I
configure Weblogic 9.0/8.1 so that the transport uses SSL? I have a set of
SSL related properties that I want to set e.g. Client Authentication
Enabled, Private Key file, Client Certifiicate file etc.
Note that I am NOT using weblogic native programming (i.e.e jws
files/controls and annotations) to create the web service client. It is a
simple EJB that was developed outiside weblogic and runs in the weblogic
container.
How do I set the SSL related properties in this case?
Thanks for any help.
Shantanu Sen

You configuring both the server and client side? And how exactly is you're client implemented?
A bit difficult but basic way to do this is with SSLSocket and giving that the necessary keystore which holds you're client certificate (key) and the server CA.
Then push you're soap envelope with http-headers up the socket?

Similar Messages

  • How to Set "delete from hub and server" for each account

    How can I set "delete from hub and server" differently for each account?
    I have 3 emails (2 shared, 1 personal).
    the personal is a 'hotmail' account which has device set to 'sync email', 'push', and 'Use SSL'.
    it will only sync one way (from desktop to device).
    I cannot set the global setting on the device to "delete from Hub and server" without affecting all accounts.
    I do not want to have to confirm delete on every item.
    previous to the 10.3 update this was not an issue.
    am i missing something? or is this another step backwards?

    The only other way would be to set it to prompt every time you get an email. Yeah, I know that defeats the purpose.. I guess in this aspect it is a step back

  • How to set songs from music as ringtones for contacts

    How do I set songs from my music that is on the phone as ringtones for different contacts?

    Songs and ringtones have different formats.  They are not interchangeable.  You would have to convert a song into a ringtone.
    If you have a Mac, you could use the GarageBand app to do that.  If you have a PC, there are apps to do the conversion, but I cannot name one.

  • How to set classpath from java class ??

    I have tried to use System.setProperty("java.class.path", "my class path string ") to set classpath dynamically. But it is not working. How to set it dynamically from java class ?? Thanks , gary

    Look into the java.net.URLClassLoader. You can't set the classpath after the fact but you can specify URL's that will checked when you try to load a class with that loader.

  • How to set value from one view to other view's context node attr b4 save

    HI all,
    My requirement is as below:
    There are two views in component BP_CONT.
    BP_CONT/ContactDetails    IMPL class
    BP_CONT/SalesEmployee   SALESEMPLOYEE    STRUCT.SALESEMPLOYEE
    I want to set value from first view to second view's context node's attribute.
    i get Sales Employee BP number in ContactDetails view, from here i want to set that value in to STRUCT.SALESEMPLOYEE
    of second view in the same component.
    please send me code snippet for doing the same.
    Thanks in advance.
    seema

    Hi Seema
    You can access the fields from different views by either using custom controllers or by using component controllers, in your case you can access the Sales employee BP number from the Component controller.
    first access the component controller  as below in BP_CONT/SalesEmployee  (in do_prepare_output method) or in (specific setter method)
    lv_compcontroller type ref to CL_BP_CONT_BSPWDCOMPONENT_IMPL,
    lv_partner type ref to cl_crm_bol_entity,
    lv_role type string,
    lv_partner_no type string.
    lv_employee TYPE REF TO if_bol_bo_property_access,
    lv_compcontroller  = me->COMP_CONTROLLER.
    lv_partner ?= lv_compcontroller  ->typed_context->-partner->collection_wrapper->get_current( ).
    lv_role = lv_partner->get_property( iv_attr_name = 'BP_ROLE' )
    IF LV_ROLE = 'SALESEMPLOYEE'
      lv_partner_no ?= lv_current->get_property( iv_attr_name = 'BP_NUMBER' ).
    endif.
    now set the value
    lv_employee ?= me->typed_context->salesemployee->collection_wrapper->get_current( )
    CHECK lv_employee IS BOUND.
        lv_employee->set_property( iv_attr_name = 'SALESEMPLOYEE' iv_value =  lv_partner_no  )
    Thanks & Regards
    Raj

  • How to set users from AD as UCM administrators

    Hi
    I need to set group from Active Directory as UCM administrators
    We have configured AD provider on WLS and group named MyGroup in AD
    I created role MyGroup in UCM and users from this AD group can login to UCM.
    I tried to create credentials map named "MyMap" with "MyGroup,admin" values,
    add "ProviderCredentialsMap=MyMap" to <domain>/ucm/cs/data/providers/jpsuserprovider/provider.hda
    and restart UCM
    But it not works.
    Please advice
    Thanks
    Leon

    Leon wrote:I created role MyGroup in UCM and users from this AD group can login to UCM.Try removing the role "MyGroup" you've defined in UCM from the User Admin applet. It's not needed in this case. The "MyGroup" should just "come over" from AD as a role, if you've configured the WLS AD provider correctly.
    Otherwise the mapping itself looks ok.

  • How to pass username/password through WebService proxy client to E-BS.

    Hi
    We are using ADF Webservice proxy client to integrate E-Business suite with ADF. It asks for username/password to access details from E-BS. In the generated webservice XSD file, a method is available with 2 parameters.
    1) SOAP header( Contains Username, responsibility and 2 more fields)
    2) Class object(Nested Object)
    However i didn't find "*Password*" field anywhere in it. Then how can I pass "*Password*" along with username to invoke this method?
    When i checked SOAP, the password is defined like this
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXX</wsse:Password>a
    Thanks
    Raja

    hi Dario
    Thank you for your post. It is really helpful. Now I got stuck with a doubt, in this piece of code
    final Binding binding = ((BindingProvider) servicePort).getBinding();
    List<Handler> handlerList = binding.getHandlerChain();
    if (handlerList == null)
    handlerList = new ArrayList<Handler>();
    They didn't mention properly about "*servicePort*". What object is this?
    I checked in Oracle document, even in that I was not clear with that piece of code.
    public class HandlerWS{ 
    @Resource WebServiceContext ctx;
    @WebMethod()
    public String getProperty(String propertyName) {  
    return (String) ctx.getMessageContext().get(propertyName);
    public class Main {
    public static void main(String[] args) {
    HandlerWS test;
    try {
    test = new HandlerWS(new URL(args[0] + "?WSDL"), new
    QName("http://example.org", "HandlerWS") );
    } catch (MalformedURLException murl) { throw new RuntimeException(murl); }
    HandlerWSPortType port = test.*getHandlerWSPortTypePort*();
    What is this HandlerWSPortType object???. Can you give me little more explanation about it?
    Thanks

  • How to set Value from Frame to Frame

    I am having 2 Frame. Frame A and Frame B. Frame A is having a text Field and a button. When i click on the button on the Frame A, how can pass the value inside the text field of Frame A into a text Field of Frame B which already prepared. Please help !

    Hi,
    Seems like u r not really undertand my real problem. Below is the details of my probelm.
    I have two JFrames in my application . From the first frame when
    I click the "Find" Button the second frame is instantiated which
    queries for the value to be found . My intention is that when I
    click find on the second Frame all other Column values(from the
    database) should be dispalyed in the First frame corresponding
    to the value I am searching. I am calling the set method in the
    first frame from the second frame to dispaly the values in the
    first frame. But this is not getting displayed in the first
    frame even though i am able to get the result printed in the
    console window.
    Hope you can be more understand and help me to solve the problem.

  • How to set email "from" address when sending photo

    when I send photos from my iPhone people respond to the wrong address. This just started. How do I switch the FROM address to the correct email address.

    The From address you want has to be your default account - you can set this in the Mail settings.

  • How to set ringtone from new version of itunes

    I want to sent my favorite song as a ringtone in Iphone 4s ios6 from latest version of iTunes. please anyone let me know how to do it?????

    This has never been done from iTunes.
    Ringtone is set on the device.
    Ringtones are synced to the device via iTunes the same as they always have been.  Select the content desired to sync and sync the device.

  • How to set ringtone from text message?

    I got text message from friend that contain ringtone on it. I like to set it on my iphone. How to do it? Doesn't show "save". Please help!!

    That is not a feature of the iPhone.
    You can purchase ringtones from the iTunes store or create your own on the computer and sync them via iTunes.

  • How to set showWindow from the lovValidate event in a DataForwardAction

    I created an onLovValidate data action event in a class which is derived from DataForwardAction.
    I'd like to set the showWindow parameter to true from this method but I don't know how.
    Could you show a short example?
    Thanks in advance,
    Gábor

    Please help!
    I'd like to replace the
    public static EventResult handleLovValidateEvent(
    BajaContext context, Page page, PageEvent event) throws Exception {
    EventResult result = new EventResult(page);
    result.setProperty("showWindow", new Boolean(true));
    return result;
    event handler with an event in a DataForwardAction event like this
    public void onLovValidate(DataActionContext ctx)
    throws InvocationTargetException {
    // Code before executing the default action
    if (ctx.getEventActionBinding() != null) {
    ctx.getEventActionBinding().doIt();
    // I don't know how to implement this:
    // EventResult result = new EventResult(page);
    // result.setProperty("showWindow", new Boolean(true));
    // Code after executing the default action
    Thanks in advance,
    Gábor

  • How to set jndi context to call EJB?

    Hello!
    install the j2ee sdk 1.4 on a server that has the ip address 211.83.144.48.
    then I deploy a EJB ,but I want to call the method from another pc.
    The problem is that how I initialize the jndi context? How can get the url for "Context.PROVIDER_URL"?
    thks.

    Hi there, I am having what appears to be a very similar problem.
    the code I am using for gaining the initial context is as follows:
    properties.put("java.naming.factory.initial",JNDI_FACT_CLASS_NAME);
    properties.put("java.naming.provider.url", s);
    return new InitialContext(properties);
    where these instantiated variables when pulled out of the hash are :
    java.naming.factory.initial : com.sun.appserv.naming.S1ASCtxFactory
    java.naming.provider.url : iiop://lich.ecs.soton.ac.uk:3700
    this works absolutely fine on the localhost machine, running both client and server, however when
    running on seperate machines I get the same ORB_COMM error as previously stated:
    WARNING: ORBUTIL.connectFailure
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:1739) com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:1757)
    ..etc..
    apparently this is caused by :
    java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:460)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    ...etc...
    the server is definately up and running, and can provide all other services to the remote client, using both the IP and the DNS resolved name, and JVT seems to work fine, just not corba look up's of a queue.
    I am using the Sun Application Platform Server 8 and the standard j2EE RI versions of corba , JNDI e.t.c
    if you could suggest any further reason why the localhost may be resolvable, but the remote may not I would drastically appreciate the help, as I have been scouring forums for 2 days now, and exhaused all
    other potential solutions.
    thanks
    Tim

  • How to Retrive data from db using EJB in WebDynpro

    hi...
    i m using EJB's for backend connection in WebDynpro .in which i m able to store data in sapdb .for this i followed one tutorial which i have mentioned bellow which works perfectly.Now in the same Tutorial i want to retrive the data from database and disply it in WebDynpro
    i .e i want to disply bonus when i give ssn no and also i want to disply all data in db.
    Please help me as i m totaly new to this environment and also first time i m working on EJB.its very urgent
    Thanks and Regards
    Sonal<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c</a>

    hi...
    i m using EJB's for backend connection in WebDynpro .in which i m able to store data in sapdb .for this i followed one tutorial which i have mentioned bellow which works perfectly.Now in the same Tutorial i want to retrive the data from database and disply it in WebDynpro
    i .e i want to disply bonus when i give ssn no and also i want to disply all data in db.
    Please help me as i m totaly new to this environment and also first time i m working on EJB.its very urgent
    Thanks and Regards
    Sonal<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c</a>

  • How to set queuname from the payload

    Hi,
      My scenario deals with file to Proxy, I am using sender file adapter with EOIO and I am give queue name "xyz". In integration engine monitoring i can see outbound queue of integration engine as some
    XBQ0_XYZ i.e. fine. But I need to replace xyz with some value from payload say some purchase order number. Is there anyway in UDF can I set this. Any help on this greatly appreciated.
    Thanks,
    Daniel.LA

    Hi Daniel,
    I think you can use Adapter specific message Atrributes for this.
    Use the foolowing link. May be it will be useful.
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    I have configured a scenario using it. But have not done it for queue name. Give it a try. Let me know if it works for that as well. You can check in the SXMB_MONI if the attribute can be configured for Queue Name as well. Check under the Tab Dynamic Configuration.
    Thanks and Regards,
    Sanjeev.

Maybe you are looking for

  • How to capture a parameter value in SQL QUERY of scale marker using GO URL

    Hi, Can any one please tell me how to capture the parameter value from go url inside Where clause of Scale Marker. I am trying to sift the position of scale marker based on SQL Query. Thanks-Bhaskar Gouda. Edited by: 961171 on Sep 25, 2012 12:33 AM

  • String comparision in reverse order

    Hi all i want a logic in plsql which compares string and substring and soon from last digit in the number to first digit. If condition mets gives out put for example my input is INPUT = 1234567890 TO COMPARE WITH a column has list of values like 1234

  • Unable to Restore my iPad after software update

    I just updated all Apple software and went to sync my ipad with itunes...it would not allow me to restore with my back-up information it kept saying there was an error while trying to restore. It gave me 3 options, cancel Restore to factory settings,

  • Proactive Tablespace Management

    hi, In Oracle Database 10g, by default, all tablespaces have built-in alerts that notify you when the free space in the tablespace goes below a certain predetermined threshold level. Is it True? How to check default threshholds at tablespace level in

  • Problem (need help) PL

    POLISH Mam problem. Dostałem pliki projektu abym "wyrównał marginesy" w tej publikacji do druku. To też zrobiłem, był tam zdefiniowane marginesy lustrzane więc wyrównywałem tekst odpowiednio do lewej lub prawej części strony. Jednak w dokumencie natr