Sending vectors over an Http connection

Hello, I want to send vectors from my midlet over a http connection to a servlet. Is it possible by using a DataOutputStream in combination with an ByteArrayOutputstream? is it possible to send a vector over an http connection from j2me to jsee?

I guess what you're saying is that you'd like to use a ByteArrayOutputStream wrapped by a ObjectOutputStream, marshal in the java.util.Vector, get the byte array and send it via HTTP somehow, and then do the reverse on the other side.
That will work if you need to use HTTP. Otherwise, you could setup a non-HTTP connection or use a higher level system like RMI or RMI-IIOP.
- Everett

Similar Messages

  • Sending Vectors Over Web Services?

    Can you transfer a Vector over WebLogic web services? I have been able to transfer
    an array of JavaBeans, but not a vector.
    Please advise,
    Dave

    The WLS web services documentation mentions the types you can exchange using RPC
    style web services. They are
    Java primitives
    Java primitive wrappers
    Java bean instances (nested beans as well)
    Arrays of the above except prmitive wrappers
    Document, Element and DocumentFragment
    This means you can't exchange vectors or collection. This may be for supporting
    inter-operabibility with other SOAP toolkit providers.
    Thanks
    Meeraj
    "David Mrozek" <[email protected]> wrote:
    >
    Can you transfer a Vector over WebLogic web services? I have been able
    to transfer
    an array of JavaBeans, but not a vector.
    Please advise,
    Dave

  • Cant send MMS over 3G when connected to WiFi

    In australia with Virgin.
    3GS, latest OS
    MMS setting on.
    I cannot send an MMS over 3G if the phone is connected to a WiFi network. Have to turn off WiFi to send MMS. Regular text messages fine, but if i try to send pics, it hangs then get the red exclamation that the message could not be sent.

    when i was running 4.3.x on my iphone 4 i noticed that from time to time the wifi would actually mysteriously disconnect and my iphone 4 would not try to reconnect just continue to do whatever it was doing, like watching videos on 3g gobbling up my data plan. it became so frequent i turned off cellular data entirely. since i went to ios 5 i have not seen this problem come back. even on wifi if you turn off cellular data you don't get visual voice mail!! hmm
    maybe if see a genius they might be able to explain what is going on
    i complained to at&t and they gave me a one time credit and removed the overage charges on my account

  • Using Flyer to send files over a Bluetooth connection

    import mx.utils.Delegate;
    import com.flyer.Bluetooth;
    var connection_str:String = “127.0.0.1″;
    var port_num:Number = 9100;
    var connection_bt:Bluetooth = new Bluetooth();
    var filePath_str:String = “E:\\photo_001.png”;
    function sendFile():Void {
    connection_bt.connect(connection_str, port_num);
    status_txt.text = “Connecting to Python…”;
    function onBluetoothConnect(success_bool:Boolean):Void {
    if (success_bool) {
    status_txt.text = “Sending file…”;
    connection_bt.send(”sendFile” + “|”
    + filePath_str);
    } else {
    status_txt.text = “Connection failed.”;
    function onBluetoothData(source_str:String):Void {
    status_txt.text = source_str;
    function onBluetoothClose():Void {}
    connection_bt.onData = Delegate.create(this,
    onBluetoothData);
    connection_bt.onConnect = Delegate.create(this,
    onBluetoothConnect);
    connection_bt.onClose = Delegate.create(this,
    onBluetoothClose);
    sendFile()

    is is possible to use a filestream to send files from
    client to server? If so could someone show me some
    example code or point me to a good internet
    reference. i have done some searching and reading
    but haven't found anything that showed it well.
    thanks for the help in advance.The API descriptions for the 2 filestream classes gives the answer:
    FileInputStream - A FileInputStream obtains input bytes from a file in a file system.
    FileOutputStream - A file output stream is an output stream for writing data to a File or to a FileDescriptor.

  • Problem while sending idoc over xml http

    Hello all,
      We have developed a scenario to send the idocs from SAP to Java(Tomcat) web server. Its was working fine. But SOMETIMES the idoc status will be set to 03(Data passede to port OK) on the SAP side, but no data(no xml string) received in the web server. is this depends on the size of the idoc? or due to some JVM settings of webserver??Could someone suggest us a way to identify the problem.
    Thanks in advance
    Regards,
    Vishu.

    Asit Purbey,
      i have send 2 idocs  with different number of segments. idoc with 2 segments is successfully received in the webserver, but the idoc with 100 segments didnt received in the webserver. Then i processed RBDMOIND but both the idocs remain in status 03.. Please help me to figure out the problem......
    Regards,
    Vishu.

  • Sending video over an Http Server

    Hi,
    I'm not sure if this is the right forum for it but Google was really helpful.
    I've been working on a webserver. There are some .avi's and .mpg's on it. If the users requests on of the video's, it simply downloads the entire file and then starts playing it, instead of buffering a part and playing as it goes. Does this require any special format/coding on my side or is it Windows Media Player?
    Many thanks in advance

    Since these are two different platforms, it's possible
    that java.util.Vector objects are not serialization
    compatible across j2me and j2se. Have you
    investigated that possibility?I'd totatly agree with this. In general, unless you are using the same platform on both ends of the pipe, don't use the Serialization mechanism. It tends to not work.
    Create your own Serialization mechanism. That's really the only way to go, IMO.

  • Class not found error over HTTPS connection

    Problem: Facing problem in downloading signed JAR file over HTTPS connection.
    While downloading the jar file over a https connection, i get a certificate with following message
    " Do you want to accept the certificate from web site <server name> for the purpose of exchanging encrypted information? "
    If i accept the ceritificate immediately without any delay, all goes fine. The jar file gets downloaded and the applet runs withoput any problem. But if we accept the certificate after some delay say after one or two minutes i get "Class not found error"
    Has anybody come across any such issue ?
    Thanks in advance.
    Rohit

    I got the same error. I believe the ssl connection has a short timeout.
    But I don't think this is a bug because there is no sense in letting a ssl connection open in the initial state before accepting the server's certificate.

  • How to prevent packet forwarding over non-MPLS connection.

    I'm wondering if it is possible to configure Cisco ESR to not forward packet over non-MPLS connection(VPI/VCI=0/32) when an LSP for its destination has not been established, while allowing control packets(BGP, LDP, OSPF) to be sent over non-MPLS connection. The reason why I ask about is as follows.
    Referring to the following network configuration,
    R1 --- Cisco_ESR --- ATM_LSR --- LER --- R2
    <--> non-MPLS connection
    ----------------------->
    LSPs
    ----------------------->
    In the ordinary operation, when a packet arrives at Cisco_LER from R1, it gets forwarded over an LSP if available, while getting forwarded over non-MPLS connection(VPI/VCI=0/32) if the corresponding LSP is not available. In the configuration mentioned above,ATM_LSR does software-based packet processing for incoming packet through non-MPLS channel, while doing cell-switching for LSP traffic. Thus if ESR sends packet over non-MPLS connection, e.g, STM-1c, the ATM_LSR could get crashed or time-critical control traffic could be delayed or lost, thereby resulting in BGP/LDP session failure between ESR and ATM_LSR or LER.
    In summary, my question is how to prevent Cisco_ESR from forwarding packets over non-MPLS connection when LSPs for their destinations are not available due to LSP failures.
    Thanks.
    Yongjun.

    It already is, except for Aliens, they have access to everything on your phone(they always have had this access) .

  • Preview failed because Adobe Muse could not make a connection over HTTP. The most common cause of this is Firewall software which prevents HTTP connections. You may need to change Firewall settings to allow Adobe Muse to make connections.

    Preview failed because Adobe Muse could not make a connection over HTTP. The most common cause of this is Firewall software which prevents HTTP connections. You may need to change Firewall settings to allow Adobe Muse to make connections.
    no firewall at all, in win 8.1, turned it off for all networks
    ftp and publish works just fine

    Hi,
    Please take a look at this post : Re: Adobe Muse - Preview Failed
    Regards,
    Aish

  • The dialogs doesn't show up over HTTPS connection.

    JWS usually shows Version check and Launching dialog when it start up.
    But when it started over HTTPS connection, those dialogs doesn't show up.
    When we use HTTP connection, the application launch by following step.
    1. Java loading dialog shows
    2. Version check dialog shows
    3. Launching application dialog shows
    4. Application launched
    However, in the case of HTTPS connection, step2, 3's dialog doesn't show up.
    (It might be skipped? What's going on?)
    I think that the step1,2,3 are processed by JavaWebStart.
    Is there any way to show these dialogs when we use HTTPS connection?
    Client: Windows XP(SP2), JDK: 1.4.2_06
    Web Server: WebLogic(ver.8.1)

    When running over http or file protocol, these dialogs are shown if the update check takes more than 1500 ms, when application must be updated before launching (due in 1.5.0 to offline-allowed not being specified, or setting <update check="always" /> in 6.0) (assuming target isn't using basic authentication). If the update check can complete in less time than that, then the dialogs will not be shown.
    For https, there is a probability that the attempted https connection will cause https security dialogs, which would then always cause the check to take more than 1500 seconds (or whatever timeout is configured) so webstart won't show the download progress dialog untill it knows there is an update.
    This should be a bug, since it is handled beter in BasicAuthentication case.
    If you are using Authentication, the download dialog will show up only after 1500 ms if the JAuthenticator chalange dialog is not being shown.
    Similarilly, using https, he dialog should show after 1500 ms (or whatever timeout) if the https security dialog, or host mismatch dialog is not showmin.
    /Andy

  • RFC to send an idoc PEXR2002 using HTTP connection to an external server

    Hi,
      Iam working on RFC to send an idoc PEXR2002 using HTTP connection to an external server. first time iam working on this particular scenario on http connections. please clarify on this and explai me in detail about this.
    Points will be rewarded **
    Thanks & Regards,
    Ravi

    HI Jagruthi,
    Have you loaded the metadata into the XI system by using IDX2?
    If it is done then try to delete once and do once again.
    And also delete the IDoc from IR and reimport the IDoc and activate it once again.
    Regards
    Goli Sridhar

  • Configuring Sender HTTPS Connection -- Server/Client Authentification

    Hello together,
    I need to configure an HTTPS Sender Connection with client and server authentication. I have already check the documentation however I am still not sure about the particular steps. My questions are as follows:
    - Do I configure the HTTPS connection on the ABAP or JAVA stack?
    - Is it necessary to setup an HTTP sender communication channel
    - How does the URL look like (compared to HTTP connection)?
    I have provided XI certificates to the client and the client has provided the certificates to me already. So I guess I have to import them somehow on XI.
    Any help is appreciated!
    Thank you very much.

    Hi
    Please follow below steps for HTTPS configuration as sender
    You need to use either SOAP adapter or XI Adapter for HTTPS connectivity.
    Here configure the Security Check for Inbound Messages.
    Refer below links
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/0a1640a991c742e10000000a1550b0/frameset.htm
    XI3.0: Soap Sender with HTTPS
    SAP Security Guide XI, HTTP and SSL
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/97/818a4286031253e10000000a155106/frameset.htm
    No configuration is required in the adapter-specific sender channel configuration (inbound) of the Integration Directory.
    The authentication/authorization is performed by the J2EE Engine and therefore needs to be configured with the Visual Administrator. This configuration is described in the J2EE Engine Administration Manual and is outlined in the following section.
    When a message is to be sent to the Adapter Engine (and ultimately to the Integration Server), the J2EE Engine serves as the SSL Server and presents its server certificate to the client as part of the SSL handshake procedure.
    Client-Side Configuration (Required)
    The public certificate of the trusted authority (CA) that signed the public certificate of the SSL server needs to be imported to the list of trusted certificates of the SSL client. This allows the SSL client to accept the certificate of the server in the SSL handshake.
    Server-Side Configuration (Optional)
    If basic authentication is used, no additional configuration is required on server side.
    If client certificate authentication is requested or required by selection of the corresponding option in the SSL service and configuration of the ClientCertLoginModule in the SecurityProvider service (using the J2EE Administration Tool), additional configuration steps are required.
    If the server certificate check on the client side is successful, the client sends its public certificate to the server as part of the SSL handshake (when requested). The server needs to map the certificate to a user for authentication and will then check the authorization based on the security roles of the user.
    Perform the following steps to allow the J2EE engine to map the client certificate to a user:
           1.      Import the CA cert of the client certificate to the list of trusted certificates (TrustedCAs keystore view in the keystore service) and import the client cert to an arbitrary keystore view.
           2.      Map the client certificate to an existing user with role SAP_XI_APPL_SERV_USER by using the Visual Administrator, SecurityProvider service, UserManagement tab page.
    Refer below link
    Here u go
    http://help.sap.com/saphelp_nw04/helpdata/en/65/6a563cef658a06e10000000a11405a/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/2de3be0382df45a398d3f9fb86a36a/frameset.htm

  • Sending BufferedImage type objects over a network connection

    I recently started a program to remotely control a computer through the use of Robot, socket connections, and MouseInfo. I would like to be able to display an image of the subject's screen on my computer, but the only solution I thought of was to save the screen capture to the computer, send it using a BufferedOutputStream, save it to a file, then load it with ImageIO and display it. There has to be a way to streamline this process. Any help?

    Well you're on the right track but why are you saving it to a file? Capture their screen then send it over a stream straight to the other machine. There's no reason to create a file.

  • Sending Mail from iPhone over SSL-encrypted connection

    Hi,
    when I synced my mail accounts to the iphone I had to accept the invalid certificate (it is self signed) once and that made imap work.
    When I tried to send a mail over an encrypted connection to the smtp server, using the same certificate, it never asked me anything but refuses to send out the mail. It just stays in the outbox.
    On server side I see in the logs:
    lost connection after STARTTLS from <My Iphones Ip>
    Is it possible to send mail using self signed certs with the iPhone these days. Or do I have to wait (or get an signed cert). Is there something like keychain management on the phone?
    Thank you in advance.
    Christian

    Hi!
    I am suffering from the same problem. Did you found a solution already?

  • Can we send  XML  over HTTPS ?

    Can we send XML over HTTPS ?

    malcolmmc wrote:
    meacod wrote:
    rabbits?
    Rabbits
    http://www.rabbitmq.com/
    They wrote
    +RabbitMQ is designed from the ground up to interoperate with other messaging systems: it is the leading implementation of AMQP, the open standard for business messaging, and, through adapters, supports XMPP, SMTP, STOMP and HTTP for lightweight web messaging.+
    They mentioned only HTTP ....Does HTTPS implied here ?

Maybe you are looking for

  • Error in domain creation in weblogic portal 10.3.4

    Hi, I am new to portal development. I've installed weblogic portal 10.3.4. I have created a domain and while creation, it asked for datasource selection, I changed the default data source(Derby) to Oracle. All the connection test were successful. I c

  • Displaying Current Date and Time in JSP

    Hi, I need to insert the current date time in Ms SQL Server Database using jsp page. The format of the code willbe insert into table(update_date) values ('2007-01-01 10:02:21'); But i am not getting how to display the current date and time ie. 2007-0

  • Not able to display users from Opneldap in Weblogic 8.1 Portal Admin

    Hi           I had configured openldap for multiple authentication in weblogic 8.1. I am able to see users and groups from openldap in weblogic admin console but when i go to Portal Administration i am not able to see those users and groups. Also as

  • Hi Gurus please advise .......

    Hi Gurus, I am very new to SAP and don't know where to start and i am interested in learning SAP BASIS Administration as my background is Administering Oracle Applications..Request your advise on where to start ?? What is sap basis (is it different f

  • Product list/database in flash

    I'm in the planning phase of building a product database/list in flash. It is suppose to be a pop-up from a HTML page and is only to contain product information. The key elements are: - Product name - Product image - Description - Article number(s) -