How To Use Client Side Certificate to access the SOAP service

HI,
I am client side and need to access a remote SOAP server side using a certificate.
I don't know how to add the certificate in my Java code, although I can get it using X509Certificate. The following is my code.
Thanks for any help
public class Dash911 {
public static void main(String args[]) throws IOException {
try {
     //I have a Cert class that generate the cert          
X509Certificate certificate = (new Cert()).getCertificate();
String targetURI= "http://schemas.ecs.telefinity.com/webservices/postal/";
String methodName = "FindStreet";
String encodingStyleURI = Constants.NS_URI_SOAP_ENC;
Vector params = new Vector();
     String[] names = {"Westcorp", "35805"};
     params.addElement(new Parameter("names", names.getClass(), names, null));
     String endpointURL = "https://prototype.test.telefinity.com/integrationprovisioning/postal.asmx";
     makeCall(targetURI, methodName, encodingStyleURI, null, params, endpointURL);
     } catch (Throwable t) {
     }//main          
Thanks a lot

Keystore or Truststore may be rigtht the same file, the matter is how you use it
at each time: if you need to authenticate yourself (no matter wether you are a
server or a client), you will have to initiate your SSLcontext with such file
managed by TrustManager. On the other hand, you just do same but
indicating your file is shall be managed by a KeyManager.

Similar Messages

  • How to use a Geotrust certificate with standalone forms/reports services

    Hi!
    I have successfully installed the standalone version of Oracle Forms and Reports Services (10.2.0.2). I'm trying to configure things so I can use SSL. I used Wallet Manager to create a CSR and then obtained a certificate from Geotrust. When I try to import it, I get the following message:
    User certificate import has failed because the CA certificate does not exist"
    I don't think I've got a CA certificate. Am I doing this process correctly for the standalone version of Forms and Reports?

    Hi,
    You have to import the CA root certificate into your wallet first. Check with your certificate provider.
    HTH,
    Jim

  • Client side certificates with OpenScript

    Hello there,
    Is there any information on using client side certificates with OpenScript?
    What types of certificates can it handle? .P12-files?
    Regards

    I run a serlvet using jsdk1.2 in a system........
    But clients who r accessing this site.. some are able to go through ..
    but some people who r in our LAN but at different places couldnt conect to serlvet.....
    and they get the followwing errror
    can yu help me in solving the problemmmmmmmm...(mail me to vijai_tata @ yahoo.com )
    java.net.SocketException: Software caused connection abort: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at sun.servlet.http.HttpOutputStream.writeOut(HttpOutputStream.java:483)
    at sun.servlet.http.HttpOutputStream.flushBytes(HttpOutputStream.java:35
    7)
    at sun.servlet.http.HttpOutputStream.flush(HttpOutputStream.java:343)
    at sun.servlet.http.HttpOutputStream.finish(HttpOutputStream.java:181)
    at sun.servlet.http.HttpOutputStream.close(HttpOutputStream.java:421)
    at sun.servlet.http.HttpResponse.finish(HttpResponse.java:338)
    at sun.servlet.http.HttpServerHandler.handleConnection(HttpServerHandler
    .java:133)
    at sun.servlet.http.HttpServerHandler.run(HttpServerHandler.java:90)
    at java.lang.Thread.run(Thread.java:534)

  • How to use a deployable proxy to consume a web service?

    HI Gurus,
    I am following this article below which helpfully explains how to create a proxy. So far so good. I have been able to create a proxy. However, the article only describes how to build a proxy.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c7d0f7-153d-2a10-5d96-d334b67cd771
    In the concluding part of the document the author says "In my next article I will tell you how to use this deployable proxy to consume the web service in web application."
    I have looked around the SDN but have not been able to get the next part of this document.
    I have a JSPDynpage application which is required to consume a webservice. I want to use this proxt to consume the webservice.
    Any help or any other document that explains how to use a deployable proxy to consume a web service will be helpful.
    Thanks,
    SB

    Hi,
    Here is an example how to consume the deployable proxy in web application:
    http://help.sap.com/saphelp_nw70/helpdata/EN/ca/c8efe3e8a64163b01924ad4ccd706d/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/5c/971740198d8f5ce10000000a155106/frameset.htm
    Regards,
    Praveen Gudapati

  • How to copy a page( webpart page) with its content using client side.

    How to copy a page(in my case  webpart page) with its content(it may contain webparts) using client code (i mean using SPservices or ECMA script).
    What i am planning is ,to give end user a page where it will contain text box to specify  name of page and a button with the help of  content editor webpart.
    where on click of button we need to write client side code such that it should create a new page from a existing page in a library with given name by user.
    Any suggestion would be helpful. For your information we can do it through UI with the help Site Actions / Manage Content and Structure.But i want to automate it using client side code.Server side code is restricted.
    or can we create a template of an existing page with content without the help of sharepoint designer.
    Thanks in advance
    with regards Ravichandra

    This is good example
    http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/
    Create web service
    http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/. Create method "Create Page" http://www.learningsharepoint.com/2010/09/17/create-publishing-pages-sharepoint-2010-programmatically/
    Build your Java Script. You can use Content Editor Web Part if you want to avoid custom web part development http://www.codeproject.com/Articles/544538/JQuery-with-SharePoint
    Oleg

  • How to use CLIENT-CERT authentication?

    Hi,
    I would like to know how to use client authentication.
    I used a web application with CLIENT-CERT authentication.
    And I accessed to the application from browser, then I had the following error
    message:
    Incorrect or missing client certificate.
    I used OpenSSL to generate keys.
    Could you tell me the information of the setting?
    Especially, I don't know theentry of CertAuthenticator.
    Could you tell me?
    Regards,
    Kuniaki Hagiwara - HP Japan

    Thank you for your response.
    Yes we have added the client certificate file (.pfx) in the Firefox browser Certificate manager / Store. It's also showing the certificate in the View Certificate window. We could not resolve it yet.

  • Using Client Side Extensions (SWF) to call external Web Service

    Hi,
    I'm using .swf files to extend my CRMOD application, and one of my requirements is to be able to show information on a custom applet using the Client Side Extensions. This information is coming from an external system, so i'm trying to call this external web service using .swf.
    When i create my swf application and i run it locally, i can access the web service and receive the results into my browser, but when i do the same call from the custom web applet in CRMOD i don't get any results.
    Can someone tell me if this is possible? And if so, how to do it?
    Best Regards,
    NF

    Post Author: luke
    CA Forum: Data Integration
    Yes. I  have figured out the way to do it.
    Luke.

  • Import TermSet CSV using client side object model

    Hello,
    I want to import CSV in TermStore using client side object model. Unfortunately there is no ImportManager here.
    Is there any other way (Other than reading from CSV and adding term one by one to term store)?
    Regards, Nanddeep Nachan

    Hi,
    Here is a tool(server-side) from codeplex for your reference:
    SharePoint 2010 CSV Bulk Taxonomy TermSet Importer/Exporter
    If you want to import termsets  from CSV in Client-Side, we can refer the tool above.
    You can develop a windows form application and use .Net Client Object Model to achieve it. The following articles is about how to operate the termset using Client Object Model for you reference:
    http://sundarnarasiman.net/?p=87 (Download)
    http://code.msdn.microsoft.com/office/SharePoint-2013-Synchronize-d40638d1/sourcecode?fileId=72317&pathId=166025385
    http://www.c-sharpcorner.com/Blogs/10853/how-to-create-a-term-set-for-the-specified-group-using-clien.aspx
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Cross Site Collection lookup using client side object model

    I have to do Cross Site Collection lookup using client side object model or Odata ,
    no servier side.. any ideas experts?

    Did you read about cross site publishing feature in SP 2013?
    Check this out
    http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1038
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2012/09/18/sharepoint-2013-cross-site-publishing.aspx
    http://blog.helloitsliam.com/Lists/Posts/Post.aspx?ID=89
    http://blogs.msdn.com/b/ritazh/archive/2012/09/26/sharepoint-2013-how-to-setup-cross-site-publishing-enable-catalog-use-managed-navigation.aspx
    http://stackoverflow.com/questions/1151036/sharepoint-lookup-column-across-site-collection-boundary
    You will need custom code for this, but since the amount is minimal and this is Stack Overflow I assume that won't be a problem. You will want to make your own listview web part that queries the list using ListViewByQuery. An example can be found here:
    http://blogs.msdn.com/b/ramg/archive/2009/04/21/implementing-a-simple-cross-site-collection-list-view-webpart.aspx

  • How U Perform Client Side Validations In Webdynpro?

    Hi experts,
    explain me abt How U Perform Client Side Validations In Webdynpro?
    Thanks in advance
    Sreenivas

    Hi ,
    As the javascripts used for client side validations are not supported in Webdynpro, All the validation written in a code take a complete cycle at runtime.
    You need to write the validations in the corresponding eventhandler i.e. action.
    Regards
    Deepak

  • How to use self-signed Certificate or No-Check-Certificate in Browser ?

    Folks,
    Hello. I am running Oracle Database 11gR1 with Operaing System Oracle Linux 5. But Enterprise Manager Console cannot display in Browser. I do it in this way:
    [user@localhost bin]$ ./emctl start dbconsole
    The command returns the output:
    https://localhost.localdomain:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ... ...
    I open the link https://localhost.localdomain:1158/em/console/aboutApplication in browser, this message comes up:
    The connection to localhost.localdomain: 1158 cannot be established.
    [user@localhost bin]$ ./emctl status dbconsole
    The command returns this message: not running.
    [user@localhost bin]$ wget https://localhost.localdomain:1158/em
    The command returns the output:
    10:48:08 https://localhost.localdomain:1158/em
    Resolving localhost.localdomain... 127.0.0.1
    Connecting to localhost.localdomain|127.0.0.1|:1158... connected.
    ERROR: cannot verify localhost.localdomain's certificate, issued by `/DC=com/C=US/ST=CA/L=EnterpriseManager on localhost.localdomain/O=EnterpriseManager on localhost.localdomain/OU=EnterpriseManager on localhost.localdomain/CN=localhost.localdomain/[email protected]':
    Self-signed certificate encountered.
    To connect to localhost.localdomain insecurely, use `--no-check-certificate'.
    Unable to establish SSL connection.
    A long time ago when I installed Database Server Oracle 11gR1 into my computer, https://localhost.localdomain:1158/em in Browser comes up this message:
    Website certified by an Unknown Authority. Examine Certificate...
    I select Accept this certificate permanently. Then https://localhost.localdomain:1158/em/console/logon/logon in Browser displays successfully.
    But after shut down Operating System Oracle Linux 5 and reopen the OS, https://localhost.localdomain:1158/em/console/logon/logon in Browser returns a blank screen with nothing, and no more message comes up to accept Certificate.
    My browser Mozilla Firefox, dbconsole, and Database Server 11gR1 are in the same physical machine.I have checked Mozilla Firefox in the following way:
    Edit Menu > Preferences > Advanced > Security > View Certificates > Certificate Manager > Web Sites and Authorities
    In web sites tab, there is only one Certificate Name: Enterprise Manager on localhost.localdomain
    In Authorities tab, there are a few names as indicated in the above output of wget.
    My question is: How to use self-signed certificate and no-check-certificate in Mozilla Firefox for EM console to display ?
    Thanks.

    Neither problem nor solution do involve Oracle DB
    root cause of problem & fix is 100% external, detached, & isolated from Oracle DB.
    This thread is OFF TOPIC for this forum.

  • Full mask permission in SharePoint using Client Side Object Model

    Full mask permission in SharePoint using Client Side Object Model does not include all the base permission while it does have all base permission in server side . Is this a bug ? 
    Or do we have any workaround for this.
    BasePermissions.Set(PermissionKind.FullMask);  is not updating all the permissions. 
    It seems that there is some limitation with Microsoft.SharePoint.Client.dll as mentioend at below link . Do we have any workaround here.
    http://break962.rssing.com/browser.php?indx=7116806&last=1&item=9
    Ashish Baranwal || To know what you know and what you do not know, that is true knowledge

    You can write your own loop to upload multiple files via an individual call.
    http://sharepoint.stackexchange.com/questions/108525/multiple-file-upload-with-metadata-using-rest/108532#108532
    More reference: http://sharepointfieldnotes.blogspot.com/2014/04/uploading-documents-and-setting.html
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Copy one list items new list using client side object model

    Hi,
    I have a requirement like i need to copy one list information to new list with createdby and modified by fields.I need to use client side object model code.Can u please send me the code sample.
    Regards,
    Praveen

    Hi,
    According to your post, my understanding is that you want to copy one list items new list using client side object model.
    You can use console application.
    Here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/28a43891-7505-4d34-b513-fdd66773c2a3/copy-list-item-to-another-list-using-client-object-model-in-console-application?forum=sharepointdevelopmentprevious
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • I cannot open a website that I could open yesterday. I used a different computer to access the same website, and it worked. How do I fix my computer?

    I cannot open a website that I could open yesterday. I used a different computer to access the same website, and it worked. How do I fix my computer?

    What happens when you try to access the site? Can you access it from a different computer on the same network? Your profile says you have a Mac Pro, but you posted in the MacBook Pro area. If you have a MacBook Pro, can you access the site from another network, such as a public hotspot?

  • ReRender using client-side dom id

    Is it possible to use client-side DOM ids for rerendering. I have noted that JSF/Richfaces only accepts server-side DOM names.
    e.g.
    <h:form id="myForm">
        <h:outputText id="testData" value="#{testAction.testData}" >
        <a4j:commandButton id="updateData" value="Update Data"
                                 action="#{testAction.updateData}" reRender="testData"/>
    </h:form>client-side DOM id: testData
    server-side DOM id: myForm:testData
    Is there some method on the server (maybe in rerender phase) that I call to achieve this i.e. reRender="myForm:testData"
    Thanks,
    Philip

    The problem that I've posted is just an example. The real jsf page is extremely complex which is made up repeating data that is nested multiple levels deep. I'm trying to minimize the amount of data being rerendered as the page is over 1.5MB in size as it stands, but still needs to be extremely interactive and responsive.
    The form lives within the repeating rich:dataGrid to minimize the amount of data being submitted to the server. In the real application this repeat is nested within a few other repeats multiple levels deep. I also use ajax regions to minimize the amount of processing on the server side.
    The problem I'm trying to solve is as follows:
    1) I have page with lots of repeating data multiple levels deep. At each data level content is represented in a set of panels/forms.
    2) Changing one value in one of the forms can initiate a complex set of events, where data needs to be rerendered in other areas outside the current form (but on the same page).
    3) The data across all these tables can be sorted by the end user, which means that I have lost the original link between the backing data and the client-DOM component i.e. if you sort data, the data changes its position, but the DOM components remain unchanged. This is problematic as I need to know down to a single field what needs to rerendered.
    The solution that I am trying to employ:
    1) As the page loads (or is subsequently rerendered on a post-back) I store a unique identifier (based on pk of the backing component - ejb entity) and the client dom id of the component back in a map on the server (pk to client dom map). I only need to do this for a select set of fields that I know might change during step 2 above. If one element is changed that causes a data change in another area of the screen, I can get to the client ID by doing a look up on pk/client dom map.
    2) I am using the ajaxKeys property combined with the field name to calculate the exact component that needs to be renrendered. However, to get at this I need to parse the client ID to figure out the ajaxKeys and field name. I then need to set these keys for every table that is a parent of the current field that I am trying to rerender. One issue that I am faced with using this approach is: if I need to update more than one field within the same rerender but is based on different ajaxKeys - still trying to figure this one out.
    This process would be so much easier if I could just tell JSF to rerender based on the set of client IDs that I know need to be rerendered.
    Thanks for the advice.
    Philip

Maybe you are looking for

  • WD My Book Studio FireWire 800 External Hard Drive & Mountain Lion

    I just recently purchase a 2 TB WD My Book Studio FireWire 800 External Hard Drive (model #WDBC3G0020HAL-NESN) to perform backups of my 1TB iMac which currently is running OS X Lion 10.7.5.  The packaging says the external hard drive is compatible wi

  • Sort image files by average luminance and by average hue?

    Hi.  I would like to be able to sort images by average luminance and by average hue.  Is there anything in OS X that will let me determine the average luminance or average hue of an image, and save that datum to the image? Ultimately, I would like to

  • Purpose of .jar

    Hello,All ! I am a begaining of java learner.I want to know about the purpose of .jar file. And which way I should use for changing .jar file in eclipse platform.If you know,please tell me. Thanks.

  • WDA Error : An instance of popup view already exists in the application

    Dear Experts, I have used a popup in my WDA application which gets opened on the click of the button. Whenever the application is launched for the first time and when I click on the button to display the pop up I get the error "An instance of popup v

  • Fresh install onto new Hard Drive

    Hey people, I have recently upgraded my iBook G3 300Mhz with a 60Gb hard drive and 512 Mb RAM. The Hard drive I put in was brand new - nothing on it whatsoever. I have been trying to install an OS on the hard drive and started with a Panther disc I h