Java Card 3 : Exchange Data with Other Web Servers

Hi everyone,
I hope to be happy and healthy.
I want to implement our internet voting protocol with jc3 connected edition. I mean by using NetBeans IDE (JC3 web project). what i need is that use jc3 as web service client but unfortunately jc3 does not support web service ( i test its APIs, but some people say it support restful web service, again i think it does not support restful APIs, too.
I need to have send and receive data over http. for example i want jc3 send a string value to a definite web server( electoral web application) and get response, over http. I have implemented my protocol by socketconnection but i need, send and receive done over http protocol. I use httpconnection ( javax.microedition.io.httpconnection) but i can not do that. I will be grateful if anyone can help me.
Thanks in advance for your help
Edited by: 969084 on Nov 1, 2012 11:38 PM

This may be difficult to do in the real world. I am not aware of any JC3 connected edition hardware commercially available.
Is the intent that each voter will have a smart card that they can use to securely vote? It may be easier to have a host application on the voters computer that uses the smart card as a security token for signing and encrypting and then passing this encrypted data to the voting system with a HTTP connection.
- Shane

Similar Messages

  • How to Use SOAPArray to Exchanged Data with a Web Service

    The method of a prototype Web service I created is defined to take many parameters
    and return an object of a user defined class. Furthermore, the user defined class
    includes data elements of another user defined class and the Java ArrayList class.
    This works with a Java client referencing the WebLogic created client.jar file
    but I don't know how well it will work with a non-Java client. In particular,
    with Perl which is the language that will be used by the developer who first will
    test with the prototype.
    In posts to this newsgroup use of "language-specific, generic containers" has
    been discouraged and the "language-agnostic" SOAPArray recommended. I have searched
    this newgsroup and the Web for examples of how to use a SOAPArray in a Web service
    EJB to receive parameters and return results but found none.
    Will someone refer me to an example or give an overview of how a Java Web service
    EJB running in WebLogic 6.1 would use SOAPArray to get parameter values and return
    results?
    Also, I would like confirmation that it is best to use SOAPArray to exchange data
    with a Web service to achieve the goal of a service accessible by any language.
    Thank you.

    Replies in-line:
    How are the structures, e.g. gltrans-workType, defined in the Web service?The structure is made up of nested Java Beans, but this does not mean that the
    client for your web service has to be written in Java. The WSDL that I sent contains
    everything that a .NET-based (or Perl-based, or Python-based, or VB-based, or
    C++ based) Web Service Stack needs to correctly create all the data types in the
    web services' signature! That's the beauty of XML Schema! It's programming language
    independent :-)
    In
    other words, what definition in Java resulted in the WSDL statements?The WSDL wasn't produced by WLS 6.1, but it (WLS 6.1) can consume it.
    What is the signature of method submitGLTransWorkAsJavaBean() in the
    Web service?public void submitGLTransWorkAsJavaBean(GlTransactionsCpyType glTransactionsCpyType)
    GlTransactionsCpyType is the outer-most Java Bean. WLS 6.1 does not generate
    Java Beans for you, but it will use ones that you defined. See the Java Bean tutorial
    on the Javasoft sitem for details on how to create a Java Bean.
    Was the WSDL generated using the WL tools for creating a Web service?No.
    Conclusion:
    You asked for someone to provide you with an example of how to use SOAP array
    in a WSDL, which is what the attached file contained :-) What you want to do now
    is find a tool that can generate Java Bean code from this WSDL (Apache Axis has
    a wsdl2java tool that should work), or create the Java Beans yourself. Afterwards,
    create a WLS 6.1 Web Service a expose it for a Perl or .NET client.
    Regards,
    Mike Wooten
    "Jeff Carey" <[email protected]> wrote:
    >
    Please elaborate.
    How are the structures, e.g. gltrans-workType, defined in the Web service?
    In
    other words, what definition in Java resulted in the WSDL statements?
    What is the signature of method submitGLTransWorkAsJavaBean() in the
    Web service?
    Was the WSDL generated using the WL tools for creating a Web service?
    Thank you.
    "Michael Wooten" <[email protected]> wrote:
    Hi Jeff,
    Sounds like a pretty cool prototype :-)
    I have attached a WSDL (at the bottom of this post) that contains a<schema>
    that
    uses a SOAPArray to create an array of a <complexType>.
    HTH,
    Mike Wooten
    "Jeff Carey" <[email protected]> wrote:
    The method of a prototype Web service I created is defined to take
    many
    parameters
    and return an object of a user defined class. Furthermore, the user
    defined class
    includes data elements of another user defined class and the Java ArrayList
    class.
    This works with a Java client referencing the WebLogic created client.jar
    file
    but I don't know how well it will work with a non-Java client. Inparticular,
    with Perl which is the language that will be used by the developerwho
    first will
    test with the prototype.
    In posts to this newsgroup use of "language-specific, generic containers"
    has
    been discouraged and the "language-agnostic" SOAPArray recommended.
    I have searched
    this newgsroup and the Web for examples of how to use a SOAPArray in
    a Web service
    EJB to receive parameters and return results but found none.
    Will someone refer me to an example or give an overview of how a Java
    Web service
    EJB running in WebLogic 6.1 would use SOAPArray to get parameter values
    and return
    results?
    Also, I would like confirmation that it is best to use SOAPArray toexchange
    data
    with a Web service to achieve the goal of a service accessible by any
    language.
    Thank you.

  • Labview dashboard with other web servers, like a PLC

    Hi
    Is it possible to use labview dashboard with other web servers, like a PLC?
    Regards,
    Vadie
    Solved!
    Go to Solution.

    Vadie, 
    To have Data Dashboard communicate with a PLC you will need to have a Windows PC or NI RT Target in between the two.  I hope this image helps to illustrate this.
    Mark
    LabVIEW R&D

  • How to exchange data between two web application (servlet)

    Hello, all,
    I have two servlets: SerlvetA and ServletB, they are deployed as web appA and appB in the same web container(tomcat)
    How ServletA exchange data with ServletB?
    I have tried follow methods:
    1) appA and appB could not share HttpSession, so I could not transfer data through session
    2) I write a new sigleton java class called AppBroker, servletA get AppBroker's instance, and set some data into the it. ServletB could not get the same instance of the AppBroker, because the appA and appB use different class loader.
    tell me how to?

    thanks reply, but
    1. static class can not solve the problem, it is same
    as my sigleton class method, as different web app use
    different class loaderhmm... at least in tomcat this seems not be true since i can use static classes in one webapp that are available in another web app on the same host/servlet runner.
    Maybe if you build your own classloader than the "scope" of the static class is limited to that classloader (for my understanding this shouldn't be the case since i think it depends on the instance of the jvm and not of the classloader..?!).
    2. rmi and object serialization are too expensive!
    I am working on how to use jndi to solve this problem.
    And I think this maybe a Sevlet specification's
    shortcoming: maybe a Local Method as EJB local
    interface need been introduced into servlet spec.
    could you suggestion other methods?none at the moment. i guess the basic methods are listed.
    Maybe there's just one left, a really ugly one. Depending on what kind of data and how often you have to exchange you could think of building a file-based queue, i.e. a dir where you drop files in an read out from the other web app (maybe based on a file/directory listener). But this would only be an appropriate way to go for kind of email and messaging systems i guess...

  • Integrating ucm with other content servers.

    Hi,
    Can I integrate oracle ucm with other content servers like Alfresco,Documentum etc.If possible how can i do it?

    Hi
    Yes , can do it in certain cases like Share Point where UCM has adapter components which would connect to the 3rd party CMS and data transfers can be possible .With Documentum as well I believe that there is an adapter which when installed on UCM / URM one can access to the other CMS.
    Do not have any adapters apart from these 2 as far as I know.
    Thanks
    Srinath

  • Can BEA JMS C APIs be used to communicate with other JMS servers?

    Hello,
              Can BEA JMS C APIs be used to communicate with other JMS servers?
              If yes, is it enough to download, compile the JMS C APIs, and link the C applications to the libraries (shared or static) produced?
              If not, can you point me to an open source framework that can be used to enable C applications to communicate with JMS servers?
              I have HP-UX server that has both C and Java compilers (Java 1.5).

    The JMS C client is a pre-compiled library - we don't supply the source - so C applications link to it. If I recall correctly, there is an HP version. The C client library is actually thin layer that uses JNI to directly invoke a Java JMS client running in an embedded JVM.
              The library might work with other vendor's Java JMS clients, but BEA does not officially support this usage.
              Tom

  • Will iweb continue to work with other web host after june 2012

    will iweb continue to work with other web host after june 2012

    as long as osx supports it, iweb should work beyond june 2012 as an app by itself.
    however, the some of the currently published code will break when mme servers are to shut down; unless apple comes up with a patches by then.
    most of mme features can be replaced and fully implemented on other host servers.
    Password protection
    can be implemented with apache server.
    Blog and photo comments
    with Intense Debate commenting system, ex:
    http://home.cyclosaurus.com/CyclosaurusBlog/Entries/2011/2/12_Dynamically_Resize _iFrame.html
    no need for manually resizing iframe.
    if you have comments on mme servers and value them then you should find ways to archive them, because they'll be gone:
    https://discussions.apple.com/message/15528258#15528258
    Blog search
    with google search, as long as your site is indexed with google search engines.
    Hit counter
    with statcounter and can have the same look as mme hit counter:
    http://home.cyclosaurus.com/Cyclosaurus.html
    as for photos page's popup slideshows, everything can be packaged in an installer so there is no need for editing, find+replace of anything.
    if i feel good i just may release my installer for iweb slideshow patch.

  • MathScript Nugget #19: Sharing Data With Other Applications

    In MathScript Nugget #18, we looked at ways to transfer data between MathSript and the rest of LabVIEW. In today's nugget, we'll see some of the different ways that MathScript can share data with programs besides LabVIEW.
    The most common way to share data between programs is by reading and writing files. MathScript supports several file formats that are recognized by other programs. The ones we'll touch on in this nugget are MLV, MAT, CSV, TXT, TDM(S) and XLS.
    The easiest way to bring data into MathScript is with the 'load' function. The help topic for this function does a great job of explaining it. The load function will bring in a group of variables that have been saved to a file earlier. The most common formats that load supports are:
    MLV files created with MathScript save function
    MAT files created with  version 6.0 or earlier of The MathWorks, Inc. MATLAB® software
    TDM and TDMS binary measurement files created in LabVIEW or DIAdem
    The load and save functions are great for storing off a group of variables to be used again in a future session of MathScript. You can do the same thing using the Operate>>Load Data... and Operate>>Save Data... menu items in the MathScript Window. These support the same file formats as load and save.
    The best formats to use if you want to share data with other applications are TXT, CSV, and XLS. MathScript has special funcitons to read and write each of these formats. The functions, such as fread_csv and fwrite_xls, are all members of the support class.
    The last way to read and write data files with MathScript is to use a custom file format. MathScript supports common file operations like fread and fwrite. You can use these functions to create or import files of any binary or textual format.
    There's one last way to move data out of MathScript without using files. You can copy data from the MathScript Window or MathScript Probe as tab-delimited text to your OS clipboard. You can then paste this text to a text editor or spreadsheet program.
    Hopefully now you have an idea of the many ways to move data into and out of MathScript.
    MATLAB® is a registered trademark of The MathWorks, Inc.
    jattas
    LabVIEW MathScript R&D
    ps Check out more MathScript Nuggets!

    TDM and TDMS are also excellent file formats to share your data with other applications. National Instrumenst offers free libraries and add-ins to access TDM and TDMS files with e.g. Excel, OpenOffice Calc or The MathWorks, Inc. MATLAB® software. Have a look at this page to 
    Find Resources for Reading and Writing TDMS Files in Third-Party Products

  • Many of the times my Iphone 5s shows "No Service" in the specific network area, but if the same sim card is used with other mobiles in the same network area, it shows good network.. i did restore but still not working.. please help me..

    My Iphone 5s shows "No Service" in the specific network area, but if the same sim card is used with other mobiles in the same network area, it shows good network.. i did restore,change sim card, reset all the settings but still not working... please help me..

    Please do not double post a subject. Iphone 5S  I answered your other thread.

  • When I navigate web with Firefox my Thinkpad trackpoint center button is not working. With other web browsers it works well. Where is the problem in firefox, how to enable TrackPoint center button?

    When I navigate web with Firefox my Thinkpad trackpoint center button is not working. With other web browsers it works well. Where is the problem in firefox, how to enable TrackPoint center button?

    I have exactly the same settings in Options (in both computers)
    for history, these 2 add-ons and all other stuff in Options. The only difference is that on 1 pc sessions can be saved and closed tabs can be reopened, on other main pc they stopped to work. + no any other add-on that does similar things works on this pc.
    It is also interesting that I can reopen closed visited sites from History Panel, but not by pressing the Button. For now I only manually bookmark links to a temporary folder.
    Recently (some 2 month ago) I pressed x and Firefox closed all tabs without saving them without displaying save & quit pop up.
    so I changed 4 settings in about.config
    browser.tabs.warn on close true
    browser.warn on quit true
    browser.warn on restart true
    browser.show.quit warning true
    but the problem with sessions appeared only 1 week ago.
    So I guess the problem is not with the History settings or other settings. Seems that something responsible for button or for storing info about tabs/sessions got corrupted. :(

  • Many of the times my Iphone 3G 16GB shows "No Service" in the specific network area, but if the same sim card is used with other mobile handset in the same network area its shows full network, Is this a Iphone 3G Handset problem or is network

    Many of the times my Iphone 3G 16GB shows "No Service" in the specific network area, but if the same sim card is used with other mobile handset in the same network area its shows full network, Is this a Iphone 3G Handset problem or is it a problem with network service provider for iphone in india with Airtel.

    Try to reset Network setting thru (Setting/General/Reset/Reset Network Setting - after clicking on it the phone will ask to reboot)
    According to my R&D I have experienced that one must reset the network each time when we r at home or in office or other places, the phone after resetting the network setting acquires the area specific network setting n works well, try it & if any other solution do let me known
    Calling up customer care did not help me, they do keep us in a loop with the same old answeres that “Our technical team is working on it & WILL GET BACK TO u” leaving us with no solution at the end
    Try what I suggest think to will help u

  • Session control with multiple web servers in IE

    to understand my problem do the following:
    make a page with this code:
    <%
    out.println("sessionID = "+session.getId());
    %>
    Run two (2) instance of web servers (can be a tomcat) in different ports...
    open IE and access the URL: http://localhost:8080/test/mytest.jsp
    see id number...
    access http://localhost:8081/test/mytest.jsp
    see id number...
    now access http://localhost:8080/test/mytest.jsp again
    and will see that IE lost the session and has a different session id.
    if you make this test in Nestcape it will keep the same session id when you access the 8080 server again, and is what i want :)
    anybody knows a solution to this?
    in the real world, my application has a frame with a menu that runs in 8080 server port and the application that are called by this menu will run in different ports in another frame. the problems is that when a call a application in another port, with IE i lost the session from the menu that runs on port 8080. With Netscape work perfect!
    somebody can help?

    this seems to have to do with the handling of sessoin cookies. IE creates one cookie for every browser instance whereas Netscape creates one session cookie for all browser instanced. Linke this Netscape shares a session cookie with the whole application wheres as IE does not.
    Just to make it clear: none of the both handling methodes are right or wrong. In my opinionen from the point of security, the IE solution is better.
    The only workaround i see is to implement a session id your own. Store it in the session object and the session object into a session manager that can be accessed from both application.

  • VMI   EDI  or XML  to exchange data with external customer

    Hi Gurus,
    We are in process of setting up VMI with one of our bigest customer. We are working on SCM5.0 and ECC6. But customer has non R/3 system and already have EDI infrastructure.
    This VMI implementation using APO ( that is Customer system -> APO(DP/SNP)-> ECC6 (Sales order)), Customer will be sending sales and stock data to APO and we may have to send confirmation after Sales order create in ECC6.
    My questions is what is best method to exchange data between customer, EDI or XML? If so what are the advantages using one over other?
    Regards,
    Niranjan

    Hi,
    >>This VMI implementation using APO ( that is Customer system -> APO(DP/SNP)-> ECC6 (Sales order)), Customer will be sending sales and stock data to APO and we may have to send confirmation after Sales order create in ECC6.
    in terms of VMI your customer does not need to have SAP
    there are standard EDI VMI  messages likes orders/ ordersp/invrep
    which can be used in all VMI scenarios in SAP and in non SAP env.
    so in terms of multiple customers you should be using what your GS1 org or similar is proposing
    in your country - so you can add other clients in the same way
    if you use an EDI broker they usually have a predefined standard (EDI or XML)
    which can be easily used
    Regards,
    Michal KRawczyk

  • Java card plugin problem with NetBeans 6.8

    Hi, I've got a problem with the netBeans 6.8 i couldn't add a java card plugin at all. I try to run it with the netBeans 6.7.1 and it installs the plugin and adds the java card platform, but when i try to build a sample project I've got an error:
    java.lang.NoClassDefFoundError: ${javacard/packagerClass}
    Any ideas
    Netbeans versions: 6.7.1, 6.8
    JavaCard version: JCDK3.0.2_ConnectedEdition
    OS: WindowsXP

    first idea of all: isn't there a netbeans support forum/mailing list/plugin page ?
    regards
    sebastien

  • Exchanging Data with Styles in JTextPane

    Is there any way to exchange data between two JTextPanes via a single object? (e.g., extracting Strings or byte[]s which contain both textual data and the corresponding Styles?)
    Thank you!
    Brad

    Thank you again for your suggestions.
    I have previously considered this later approach as well. However, I have no need to load the entirety of a JTextPane --- rather, only small, formatted portions. Moreover, while saving the data from one JTextPane to disk and then reading only the desired portion may seem to be a viable option, the frequency at which I hope to perform these transfers may be too great than to be effective and/or practical. Thus it would be ideal to excerpt/copy portions of JTextPane via an RTF or equivalently-encoded data model; a simple one-to-one process.
    I do appreciate the thoughts you've suggested; please send anything else you think might work.
    Thank you!
    Brad

Maybe you are looking for