Send data complext to Net Webservice

Hello, I need to send array of array to Net webservice (rest) but the webservide respond the error:
{"Exception":"Object reference not set to an instance of an object.","StackTrace":"
I have an sample how can I send the with PHP and works but I try to send with CF code and I can not.
This is the PHP
$agent = array(
                    array(
                         ramoTecnico => 1,
                         codAgente => 5095
$parameters->emissionRequest = $agent;
My CF code:
     <cfset emissionRequest = {}>  
    <cfset emissionRequest.agente = []>
    <cfset emissionRequest.agente[1] = {}>
    <cfset emissionRequest.agente[1].ramoTecnico = "1">
    <cfset emissionRequest.agente[1].codAgente = "5095">
or
  <cfscript>  
     emissionRequest = {
                         agente =[ {
                                        codTipoPoliza = "2",
             ramoComercial = "5"
</cfscript>
what is the correct form to send it? I already tried a lot of forms and any works.
The net programmer modified the Webservice to receive a single array and I send only the struct and ir works but when enable the second array and I send array and struct not works.
Somebody have any hint?

Thanks BKBK.
I already tried a lot of different ways to send the object/parameters and I can't do it.
If I send the agente struct empty, it the webservice detects the array.
    <cfset param= structnew() >   
    <cfset param.emissionRequest = {}>
    <cfset param.emissionRequest.codSuc = "30">
    <cfset param.emissionRequest.producto = "200">
    <cfset param.emissionRequest.poliza = {}>
    <cfset param.emissionRequest.poliza.codTipoPoliza = "2">
    <cfset param.emissionRequest.poliza.ramoComercial = "5">   
    <cfset param.emissionRequest.agente = {}>
struct
EMISSIONREQUEST
struct
AGENTE
struct [empty]
CODSUC
30
POLIZA
struct
CODTIPOPOLIZA
2
RAMOCOMERCIAL
5
PRODUCTO
200
{"Exception":"Index was out of range. Must be non-negative and less than the size of the collection.Parameter name index","StackTrace":" at System.ThrowHelper.ThrowArgumentOutOfRangeExceptionExceptionArgument argument ExceptionResource resource at System.ThrowHelper.ThrowArgumentOutOfRangeException at System.Collections.Generic.List1.get_ItemInt32 index at System.Linq.Enumerable.ElementAtTSourceIEnumerable1 source Int32 index at GMXIntegrationService.EmissionService.createPolicyEmission emissionRequest in CUsersgmx.DocumentsVisual Studio 2008ProjectsGMXIntegrationServiceTestGMXIntegrationServiceEmissionService.csline 30"}
but if I send values in the Agente struct display the next error
    <cfset param= structnew() >   
    <cfset param.emissionRequest = {}>
    <cfset param.emissionRequest.codSuc = "30">
    <cfset param.emissionRequest.producto = "200">
    <cfset param.emissionRequest.poliza = {}>
    <cfset param.emissionRequest.poliza.codTipoPoliza = "2">
    <cfset param.emissionRequest.poliza.ramoComercial = "5">   
    <cfset param.emissionRequest.agente = {}>   
    <cfset param.emissionRequest.agente.ramoTecnico = "10">
    <cfset param.emissionRequest.agente.codTipoAgente = "15">
struct
EMISSIONREQUEST
struct
AGENTE
struct
CODTIPOAGENTE
15
RAMOTECNICO
10
CODSUC
30
POLIZA
struct
CODTIPOPOLIZA
2
RAMOCOMERCIAL
5
PRODUCTO
200
{"Exception":"Object reference not set to an instance of an object.","StackTrace":" at GMXIntegrationService.EmissionService.createPolicyEmission emissionRequest in CUsersgmx.DocumentsVisual Studio 2008ProjectsGMXIntegrationServiceTestGMXIntegrationServiceEmissionService.csline 30"}
I don't know how can I resolve this problem. I can't believe that the CF can do send complext data to Net webservice (restfull).

Similar Messages

  • Socket not sending data.

    I am new to Flex and I am trying to use the Socket class using v4 beta of flex to send data to a .NET server written in C#.
    I can make the connect to the server ok using the flex client built as an air application but I cannot send any data.
    I do not get any exceptions thrown.
    I have written a Java client and it can send data using sockets to the server without any problems which means the server is ok.
    The server is running on the same box as the client which is a Windows XP system.
    Has anyone any ideas?

    Something like Wireshark (www.wireshark.org) can be useful in troubleshooting these sorts of issues. It will let you see when the data is actually sent and you can examine the packet to tell whether the client or the server is at fault for the garbled string.

  • Is it possible to create a Webservice in BI which takes XML as an input and gives PDF as output with an additional requirement that Siebel expecting the XSD from BI to send data in the BI requested format

    Is it possible to create a Webservice in BI which takes XML as an input and gives PDF as output with an additional requirement that Siebel expecting the XSD from BI to send data in the BI requested format. Siebel wants to send the data as xml to BI but not sure of the BI capabilities on giving WSDL embedded with XSD (input is a hierarchical)

    Hi All,
    I am able to fulfil above requirement. Now I am stuck at below point. Need your help!
    Is there any way to UPDATE the XML file attached to a Data Definition (XML Publisher > Data Definition) using a standard package or procedure call or may be an API from backend? I am creating an XML dynamically and I want to attach it to its Data Definition programmatically using SQL.
    Please let me know if there is any oracle functionality to do this.
    If not, please let me know the standard directories on application/database server where the XML files attached to Data Definitions are stored.
    For eg, /$APPL_TOP/ar/1.0/sql or something.
    Regards,
    Swapnil K.

  • Calling External WebService to send data from SharePoint O365 Aspx page

    Hi ,
    There is a Public Website on O365 environment. which has  Apply Now Page on this User enters Name, email and Message and click Submit button., we want to pass these  All three fields data value  to External WebService , Which is
    developed in Asp.Net,
    Please suggest Best approach which will work in SharePoint O365 , to call Webservice and  pass the User entered data.
    Also Share reference code and Links.
    With Regards

    Hi Genius,
    Thanks for posting your query, Kindly browse the below mentioned URLs to get the code for posting data on extranal web Service
    http://blogs.msdn.com/b/sharepointdev/archive/2011/05/12/connecting-to-sharepoint-online-web-services.aspx
    http://blogs.msdn.com/b/cjohnson/archive/2011/05/14/part-2-headless-authentication-with-sharepoint-online-and-the-client-side-object-model.aspx
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • How to send data to a Webservice

    Hello everyone. I have a very simple example of sending data (2222) to a existing webservice as following:
    topmostSubform.Page1.SEND::click - (JavaScript, client)
    var url="http://Localhost:8080/4DWSDL";
    var serv = SOAP.connect(url);
    app.alert("hello ");
    serv.MethodeSOAP(2222);
    app.alert("hello 2");
    However, it works great in Acrobat but not in Reader. Is it possible to make it work?
    Also, although in this example the data to send is only the value 2222 but my purpose is to send all the information of the form to a webservice. Anyone has tried it before or is there any other way easier to do this? I will appreciate any suggestion from you. Thanks

    Hi,
    Data connections via web service calls will not work in Reader, unless the form has been Reader enabled in LC Reader Extensions ES2:
    I have a summary here:
    http://www.assuredynamics.com/index.php/2010/11/using-livecycle-forms-in-acrobat-and-reade r/
    Hope that helps,
    Niall
    Assure Dynamics

  • Using RFC Function Module to send data to NON SAP Application

    Hi friends,
    Please guide me how can I send data from SAP -> Dotnet Applcation using Dotnet Connector through RFC function module from SAP side. In my scenerio, I Run Z transaction  to executte RFC function module which create some data to pass to dotnet connector.
    Regards,
    Rajesh Kumar

    Hi,
    You can make use of Dotnet connector to read the content of SAP RFC .. (eaiest of all)
    The RFC can be executed using connector , and can read the data simultaneously.. u need to code in dotnet for this..
    else create a webservice and read it from dot net ..
    Regards
    Renu Gusain
    Edited by: Renu Gusain on Jan 25, 2010 12:55 PM

  • Sending data to xport doesn't work correctly

    Dear programmers,
    For my thesis I have to send data from a computer to a microcontroller trough TCP/IP. So I've written a program in java dat sends the data, but it goes wrong. This is my code:
    import java.io.*;
    import java.net.*;
    public class Connection {
         private Socket socket = null;
        private PrintWriter output = null;
        private BufferedReader input = null;
        private BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));;
         public boolean createConnection(String ip, int port) {
            boolean connect = false;
            try {
                socket = new Socket(ip, port);                                                            // Maakt socket aan naar gegeven poort en ip
                output = new PrintWriter(socket.getOutputStream(), true);                         // Output naar de server
                input = new BufferedReader(new InputStreamReader(socket.getInputStream()));     // Ontvangen gegevens van server
                connect = true;
            } catch (UnknownHostException e) {
                connect = false;
                 System.err.println("Kan geen verbinding maken naar ip-adres: " + ip);
                System.exit(1);
            } catch (IOException e) {
                 connect = false;
                System.err.println("Kan geen input/output verkrijgen van ip-adres: " + ip);
                System.exit(1);
            return connect;
         public boolean sendMessage(String message) {          
              output.println(message);
              output.println("\r\n")
              return true;
         public String receiveMessage() {
              String message = null;
              try {
                   message = input.readLine();
              } catch (IOException e) {
                   e.printStackTrace();
              if(message.equalsIgnoreCase("HTTP/1.1 0 ERROR")) {
                   message = "#ERROR#";
              return message;
         public boolean getStatus() {
              if(socket.isConnected()) {
                   return true;
              else {
                   return false;
         public void closeConnection() {
              try {
                   output.close();
                   input.close();
                   stdIn.close();
                   socket.close();
              } catch (IOException e) {
                   e.printStackTrace();
    }The first time I send something it goes correctly, but when I try to send the second data it goes wrong.
    So as example I send 100 times the number 512 to the xport.
    1st time: 512
    2nd time: 5
    3th time: 52
    4th time: 5125
    So only the first time it sends the data correctly. It's my program and not the xport because trough hyperterminal the data is sended correctly. I hope you guys can help me.

    Okay, thanks for your reaction. Now I changed my Connection.java code into:
    import java.io.*;
    import java.net.*;
    public class Connection {
         private Socket socket = null; 
        private BufferedOutputStream ostream = null;
        private BufferedInputStream istream = null;
         public boolean createConnection(String ip, int port) {
            boolean connect = false;
            try {
                socket = new Socket(ip, port);
                ostream = new BufferedOutputStream(socket.getOutputStream());
                istream = new BufferedInputStream(socket.getInputStream());
                connect = true;
            } catch (UnknownHostException e) {
                connect = false;
                 System.err.println("Kan geen verbinding maken naar ip-adres: " + ip);
                System.exit(1);
            } catch (IOException e) {
                 connect = false;
                System.err.println("Kan geen input/output verkrijgen van ip-adres: " + ip);
                System.exit(1);
            return connect;
         public boolean sendMessage(String message) {
              byte[] buffer = new byte[10];
              try {
                   buffer = message.getBytes();
                   ostream.write(buffer, 0, message.length());
                   ostream.flush();
              catch(Exception e) {
                   e.printStackTrace();
              return true;
         public String receiveMessage() {
              String message = null;
              byte[] readBuffer = new byte[40];
              try {
                   int message_int = istream.read(readBuffer, 0, 40);
                 message = new String(readBuffer, 0, message_int);
              } catch (IOException e) {
                   e.printStackTrace();
              if(message.equalsIgnoreCase("HTTP/1.1 0 ERROR")) {
                   message = "#ERROR#";
              return message;
         public boolean getStatus() {
              if(socket.isConnected()) {
                   return true;
              else {
                   return false;
         public void closeConnection() {
              try {
                   ostream.close();
                   istream.close();
                   socket.close();
              } catch (IOException e) {
                   e.printStackTrace();
    }Do you think this was the problem? Maybe it was. Let's hope so. I will let you know something when I tested it tomorrow in school.

  • How to send data to bam data object through java code

    how to send data to bam data object through java code

    I've made a suggestion in other thread: https://forums.oracle.com/thread/2560276
    You can invoke BAM Webservices (Using Oracle BAM Web Services) or use JMS integration using Enterprise Message Sources (http://docs.oracle.com/cd/E17904_01/integration.1111/e10224/bam_ent_msg_sources.htm)
    Regards
    Luis Fernando Heckler

  • Problem with &amp while sending xml as string to webservice

    Hi I am also facing a problem I want to send a string to my sap webservice into the following format
    <DATA><STRUCTURE VAL="FLASH"><VALUEPART VAL="40100"></VALUEPART></STRUCTURE><STRUCTURE VAL="FLEX"><VALUEPART VAL="2000"></VALUEPART></STRUCTURE></DATA>
    But whenever I am sending this string to my webservice in webservice it is reading this data like
    &amp;lt;DATA&gt;&amp;lt;STRUCTURE VAL="FLASH"&gt;&amp;lt;VALUEPART VAL="40100"&gt;&amp;lt;/VALUEPART&gt;&amp;lt;/STRUCTURE&gt;&amp;lt;STRUCTURE VAL="FLEX"&gt;&amp;lt;VALUEPART VAL="2000"&gt;&amp;lt;/VALUEPART&gt;&amp;lt;/STRUCTURE&gt;&amp;lt;/DATA&gt;
    Please help me to solve the problem .

    Thanks for your reply but now I am using escape(srting) and server side script reading it as
    %3CDATA%3E%3CSTRUCTURE%20VAL%3D%22FLASH%22%3E%3CVALUEPART%20VAL%3D%2240100%22%3E%3C/VALUEP ART%3E%3C/STRUCTURE%3E%3CSTRUCTURE%20VAL%3D%22FLEX%22%3E%3CVALUEPART%20VAL%3D%222000%22%3E %3C/VALUEPART%3E%3C/STRUCTURE%3E%3C/DATA%3E
    I have to send this as
    <DATA><STRUCTURE VAL="FLASH"><VALUEPART VAL="40100"></VALUEPART></STRUCTURE><STRUCTURE VAL="FLEX"><VALUEPART VAL="2000"></VALUEPART></STRUCTURE></DATA>
    any other option ?

  • Problem sending data with HTTPS  using client authentication.

    Hi,
    I�m tryingto send a message to a secure server using for this client certificate, apparently if I make a GET of "/" (server root) , everything works fine (authentication, and data received), from the moment that I try to ways send data to the "/pvtn " directory i obtain the following error.
    This is a sample of the code i�m using:
    import com.sun.net.ssl.KeyManagerFactory;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.Writer;
    import java.net.Socket;
    import java.security.*;
    import java.security.GeneralSecurityException;
    import java.security.Principal;
    import java.security.PublicKey;
    import java.util.Collection;
    import java.util.Date;
    import javax.net.ssl.SSLSocket;
    import javax.net.ssl.SSLSocketFactory;
    import javax.security.cert.*;
    import javax.security.cert.X509Certificate;
    public class Test
    public static final String TARGET_HTTPS_SERVER = "mymachine.mydomain.pt";
    public static final int TARGET_HTTPS_PORT = 443;
    public static void main(String[] args) throws Exception
    System.setProperty("javax.net.ssl.trustStore","/certificados/truststore.txt");
    System.setProperty("javax.net.ssl.trustStorePassword","trustpwd");
    System.setProperty("javax.net.ssl.keyStore","/certificados/truststore.txt");
    System.setProperty("javax.net.ssl.keyStorePassword","trustpwd");
    java.security.Security.removeProvider("SunJSSE");
    java.security.Security.insertProviderAt(new com.sun.net.ssl.internal.ssl.Provider(),2);
    KeyManagerFactory kmf= KeyManagerFactory.getInstance("SunX509", "SunJSSE") ;
    //Socket
    SSLSocket jsslSoc = (SSLSocket) SSLSocketFactory.getDefault().createSocket(TARGET_HTTPS_SERVER, TARGET_HTTPS_PORT);
    String [] ciphers = jsslSoc.getSupportedCipherSuites() ;
    //// Select the ciphers you want and put them.
    //// Here we will put all availabel ciphers
    jsslSoc.setEnabledCipherSuites(ciphers);
    //// We are creating socket in client mode
    jsslSoc.setUseClientMode(true);
    //// Do SSL handshake
    jsslSoc.startHandshake();
    // Print negotiated cipher
    System.out.println("Negotiated Cipher Suite: " + jsslSoc.getSession().getCipherSuite());
    System.out.println("");
    X509Certificate[] peerCerts = ((javax.net.ssl.SSLSocket)jsslSoc).getSession().getPeerCertificateChain();
    if (peerCerts != null)
    System.out.println("Printing server information:");
    for(int i =0; i < peerCerts.length; i++)
    System.out.println("Peer Certificate ["+i+"] Information:");
    System.out.println("- Subject: " + peerCerts.getSubjectDN().getName());
    System.out.println("- Issuer: " + peerCerts[i].getIssuerDN().getName());
    System.out.println("- Version: " + peerCerts[i].getVersion());
    System.out.println("- Start Time: " + peerCerts[i].getNotBefore().toString());
    System.out.println("- End Time: " + peerCerts[i].getNotAfter().toString());
    System.out.println("- Signature Algorithm: " + peerCerts[i].getSigAlgName());
    System.out.println("- Serial Number: " + peerCerts[i].getSerialNumber());
    else
    System.out.println("Failed to get peer certificates");
    try
    Writer out = new OutputStreamWriter(jsslSoc.getOutputStream(), "ISO-8859-1");
    //THIS WAY WORKS FINE
    out.write("GET / HTTP/1.1\r\n");
    // HERE COMES THE TROUBLES
    //out.write("GET /pvtn?someparameter=paramvalue HTTP/1.1\r\n");
    out.write("Host: " + TARGET_HTTPS_SERVER + ":" + TARGET_HTTPS_PORT + "\r\n");
    out.write("Proxy-Connection: Keep-Alive\r\n");
    out.write("User-Agent: SSL-TEST \r\n");
    out.write("\r\n");
    out.flush();
    BufferedReader in = new BufferedReader(new InputStreamReader(jsslSoc.getInputStream(), "ISO-8859-1"));
    String line = null;
    while ((line = in.readLine()) != null)
    System.out.println(line);
    finally
    jsslSoc.close();
    the ssl log until sending the GET is
    main, WRITE: SSL v3.1 Handshake, length = 36
    main, READ: SSL v3.1 Change Cipher Spec, length = 1
    main, READ: SSL v3.1 Handshake, length = 36
    Plaintext after DECRYPTION: len = 36
    0000: 14 00 00 0C 71 AB 40 CC 6C 33 92 05 E9 69 4B 8F [email protected].
    0010: D1 77 3F 6E 3C DB F0 A0 B7 9C CF 49 B6 6D C8 17 .w?n<......I.m..
    0020: 7E 03 52 14 ..R.
    *** Finished, v3.1
    verify_data: { 113, 171, 64, 204, 108, 51, 146, 5, 233, 105, 75, 143 }
    %% Cached client session: [Session-1, SSL_RSA_WITH_RC4_128_SHA]
    [read] MD5 and SHA1 hashes: len = 16
    0000: 14 00 00 0C 71 AB 40 CC 6C 33 92 05 E9 69 4B 8F [email protected].
    Negotiated Cipher Suite: SSL_RSA_WITH_RC4_128_SHA
    When i send the GET
    Plaintext before ENCRYPTION: len = 247
    0000: 47 45 54 20 2F 70 76 74 6E 3F 41 30 33 30 3D 4D GET /pvtn?A030=M
    main, WRITE: SSL v3.1 Application Data, length = 247
    main, READ: SSL v3.1 Handshake, length = 24
    Plaintext after DECRYPTION: len = 24
    *** HelloRequest (empty)
    %% Client cached [Session-1, SSL_RSA_WITH_RC4_128_SHA]
    %% Try resuming [Session-1, SSL_RSA_WITH_RC4_128_SHA] from port 3535
    *** ClientHello, v3.1
    RandomCookie: GMT: 1131988975 bytes = { 45, 113, 241, 212, 81, 255, 244, 169, 74, 41, 160, 227, 197, 210, 155, 211, 47, 237, 18, 179, 238, 47, 28, 86, 30, 253, 157, 253 }
    Session ID: {208, 18, 243, 174, 216, 156, 80, 201, 121, 136, 63, 162, 31, 196, 186, 95, 193, 143, 238, 172, 173, 79, 64, 219, 17, 149, 14, 138, 53, 95, 18, 96}
    Cipher Suites: { 0, 5, 0, 4, 0, 9, 0, 10, 0, 18, 0, 19, 0, 3, 0, 17, 0, 2, 0, 1, 0, 24, 0, 26, 0, 27, 0, 23, 0, 25 }
    Compression Methods: { 0 }
    [write] MD5 and SHA1 hashes: len = 105
    Plaintext before ENCRYPTION: len = 125
    main, WRITE: SSL v3.1 Handshake, length = 125
    main, READ: SSL v3.1 Handshake, length = 94
    Plaintext after DECRYPTION: len = 94
    *** ServerHello, v3.1
    RandomCookie: GMT: 1131991620 bytes = { 205, 194, 212, 113, 37, 213, 41, 13, 60, 142, 135, 68, 17, 78, 227, 251, 176, 211, 133, 203, 153, 173, 153, 195, 93, 7, 87, 123 }
    Session ID: {108, 85, 45, 208, 104, 124, 209, 24, 247, 113, 156, 134, 28, 154, 75, 198, 64, 181, 167, 9, 149, 223, 162, 21, 225, 32, 168, 31, 190, 48, 241, 195}
    Cipher Suite: { 0, 5 }
    Compression Method: 0
    %% Created: [Session-2, SSL_RSA_WITH_RC4_128_SHA]
    ** SSL_RSA_WITH_RC4_128_SHA
    [read] MD5 and SHA1 hashes: len = 74
    main, READ: SSL v3.1 Handshake, length = 3154
    Plaintext after DECRYPTION: len = 3154
    *** Certificate chain
    stop on trusted cert: [
    Version: V1
    Subject: CN=GTE CyberTrust Global Root, OU="GTE CyberTrust Solutions, Inc.", O=GTE Corporation, C=US
    Algorithm: [MD5withRSA]
    Signature:
    [read] MD5 and SHA1 hashes: len = 3134
    main, READ: SSL v3.1 Handshake, length = 479
    Plaintext after DECRYPTION: len = 479
    *** CertificateRequest
    Cert Types: RSA, DSS,
    Cert Authorities:
    [read] MD5 and SHA1 hashes: len = 455
    *** ServerHelloDone
    [read] MD5 and SHA1 hashes: len = 4
    0000: 0E 00 00 00 ....
    *** Certificate chain
    *** ClientKeyExchange, RSA PreMasterSecret, v3.1
    Random Secret: { 3, 1, 19, 223, 230, 65, 59, 210, 10, 69, 239, 178, 185, 5, 52, 57, 44, 160, 163, 239, 85, 64, 173, 16, 132, 234, 33, 228, 0, 8, 134, 52, 20, 190, 196, 15, 205, 35, 169, 39, 14, 160, 143, 74, 210, 74, 43, 181 }
    [write] MD5 and SHA1 hashes: len = 141
    Plaintext before ENCRYPTION: len = 161
    main, WRITE: SSL v3.1 Handshake, length = 161
    SESSION KEYGEN:
    PreMaster Secret:
    .CONNECTION KEYGEN:
    Client Nonce:
    Server Nonce:
    Master Secret:
    Client MAC write Secret:
    Server MAC write Secret:
    Client write key:
    Server write key:
    0000: FE 94 DF 4C 1A 9F FA CE 0C E9 A6 DB 31 53 E5 FD ...L........1S..
    ... no IV for cipher
    Plaintext before ENCRYPTION: len = 21
    0000: 01 0D 16 E6 49 18 36 AF E1 52 9C 2F 72 EE CA DF ....I.6..R./r...
    0010: 41 71 68 30 06 Aqh0.
    main, WRITE: SSL v3.1 Change Cipher Spec, length = 21
    *** Finished, v3.1
    verify_data: { 243, 49, 247, 150, 113, 86, 182, 125, 244, 163, 245, 243 }
    [write] MD5 and SHA1 hashes: len = 16
    0000: 14 00 00 0C F3 31 F7 96 71 56 B6 7D F4 A3 F5 F3 .....1..qV......
    Plaintext before ENCRYPTION: len = 36
    0000: 14 00 00 0C F3 31 F7 96 71 56 B6 7D F4 A3 F5 F3 .....1..qV......
    0010: 1A 7C 8F D9 51 CB 6F 47 2A 7C 90 81 20 EE 97 64 ....Q.oG*... ..d
    0020: FF 47 35 CA .G5.
    main, WRITE: SSL v3.1 Handshake, length = 36
    main, SEND SSL v3.1 ALERT: warning, description = close_notify
    Plaintext before ENCRYPTION: len = 22
    0000: 01 00 F0 F4 AC 3C B2 DE 95 98 0E B4 ED B1 24 3B .....<........$;
    0010: 54 6C 8B DC F3 1F Tl....
    main, WRITE: SSL v3.1 Alert, length = 22
    java.net.SocketException: Connection aborted by peer: socket write error
         void java.net.SocketOutputStream.socketWrite(java.io.FileDescriptor, byte[], int, int)
              native code
         void java.net.SocketOutputStream.write(byte[], int, int)
              SocketOutputStream.java:96
         void com.sun.net.ssl.internal.ssl.OutputRecord.a(java.io.OutputStream)
         void com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(com.sun.net.ssl.internal.ssl.OutputRecord)
         void com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush()
         void com.sun.net.ssl.internal.ssl.Handshaker.sendChangeCipherSpec(com.sun.net.ssl.internal.ssl.HandshakeMessage$Finished)
         void com.sun.net.ssl.internal.ssl.ClientHandshaker.c()
         void com.sun.net.ssl.internal.ssl.ClientHandshaker.a(com.sun.net.ssl.internal.ssl.SunJSSE_o)
         void com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(byte, int)
         void com.sun.net.ssl.internal.ssl.Handshaker.process_record(com.sun.net.ssl.internal.ssl.InputRecord)
         void com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(com.sun.net.ssl.internal.ssl.InputRecord, boolean)
         void com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(com.sun.net.ssl.internal.ssl.InputRecord)
         int com.sun.net.ssl.internal.ssl.AppInputStream.read(byte[], int, int)
         int java.io.InputStream.read(byte[])
              InputStream.java:91
         int java.io.InputStreamReader.fill(char[], int, int)
              InputStreamReader.java:173
         int java.io.InputStreamReader.read(char[], int, int)
              InputStreamReader.java:249
         void java.io.BufferedReader.fill()
              BufferedReader.java:139
         java.lang.String java.io.BufferedReader.readLine(boolean)
              BufferedReader.java:299
         java.lang.String java.io.BufferedReader.readLine()
              BufferedReader.java:362
         void Teste3.main(java.lang.String[])
              Teste3.java:109
    Exception in thread main
    Debugger disconnected from local process.
    Process exited with exit code 1.
    One more thing if if make the same thing via browser (https://mymachine.mydomain.pt/pvtn?someparameter=somevalue) and works fine too (obviously i pre installed the client certificate in the browser and choose the certificate when the pop up show up)
    It seems like the handshaking fails when i send data to /pvtn...
    Regards,
    Paulo.

    I amhaving the another problem very similar, I am struggling with client authentication with IIS 5.0, and receiving the 'Remote Host closed the connection' error.
    Is there any help me in this. I truly apprecaite it
    Thanks

  • Connecting and sending data to web service

    Hi,
    I have to implement the functionality in PDF document to connect with the web service and send the form data in xml format on Click event of a button inside the form.
    During the initial development and testing I have found that document can only connect with the Web Service from within LiveCycle Designer or Adobe Pro. It doesn't work with the Reader.
    After surfing the internet I have come to know that Reader extensions are required along with Adobe Reader to communicate with the web services. Am I right?
    Furthermore, what I have to do is to distribute the PDF form to a number of people who will fill the form and submit the form data by clicking the Submit button (which will internally communicate with the web service to send data) on the form. So if extensions are required to communicate with web services from Reader, then what I am assuming is that all those people must have extensions installed on their machines along with Reader.
    On some forum I have also read that you only need to install the Extensions on the Designer machine and they are not compulsory to be on every client machine. i.e. Exntesions enable the web services communication features in the PDF form during design time. Is it true?
    Thanks in anticipation,
    Qarshi

    Be careful, your question should be posted in "LiveCycle Reader Extensions" forum. LiveCycle Data Services doesn't deal with these features.
    Nevertheless, to use webService calls from a PDF opened in the free Adobe Reader, you need to Reader extend your form.
    You can use Acrobat Pro to extend it if the PDF will not be used by more than 500 people.
    If you plan to reach more than 500 people, then you must consider LiveCycle Reader Extensions. This limitation is explained in the Acrobat EULA.
    The final users only need the Adobe Reader, they won't have to install any extension or plug-in.

  • How to send data back to the server

    i create a program to send data back to ther server using j2me.
    its work well on emulator but when i install the application on sony ericsssin p910i or k700i or nokia 7710 then its not working and simply hang.
    here is sample code which is run well on emulator but not on mobile.
    what is the problem in that or how can this code run in mobile is there any mobile specific setting or internet setting.
    Pls reply asap.
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    * An example MIDlet to invoke a CGI script.
    public class ThirdExample extends MIDlet {
    private Display display;
    // String url = "http://www.javacourses.com/cgi-bin/getgrade.cgi?idnum=182016";
    String url = "http://sampler.infopro.stpn.soft.net/midletdata.asp?name=name";
    public ThirdExample() {
    display = Display.getDisplay(this);
    * Initialization. Invoked when we activate the MIDlet.
    public void startApp() {
    try {
    getGrade(url);
    } catch (IOException e) {
    System.out.println("IOException " + e);
    e.printStackTrace();
    * Pause, discontinue ....
    public void pauseApp() {
    * Destroy must cleanup everything.
    public void destroyApp(boolean unconditional) {
    * Retrieve a grade....
    void getGrade(String url) throws IOException {
    HttpConnection c = null;
    InputStream is = null;
    OutputStream os = null;
    StringBuffer b = new StringBuffer();
    TextBox t = null;
    int x = 5, y =7;
    try {
    c = (HttpConnection)Connector.open(url);
    c.setRequestMethod(HttpConnection.GET);
    c.setRequestProperty("IF-Modified-Since", "10 Nov 2000 17:29:12 GMT");
    c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
    c.setRequestProperty("Content-Language", "en-CA");
    os = c.openOutputStream();
    String str = "?idnum=182016";
    byte postmsg[] = str.getBytes();
    for(int i=0;i<postmsg.length;i++) {
    os.writeByte(postmsg);
    os.flush();
    is = c.openDataInputStream();
    int ch;
    while ((ch = is.read()) != -1) {
    b.append((char) ch);
    System.out.println((char)ch);
    t = new TextBox("Final Grades", b.toString(), 1024, 0);
    } finally {
    if(is!= null) {
    is.close();
    if(os != null) {
    os.close();
    if(c != null) {
    c.close();
    display.setCurrent(t);
    }>

    i create a program to send data back to ther server using j2me.
    its work well on emulator but when i install the application on sony ericsssin p910i or k700i or nokia 7710 then its not working and simply hang.
    here is sample code which is run well on emulator but not on mobile.
    what is the problem in that or how can this code run in mobile is there any mobile specific setting or internet setting.
    Pls reply asap.
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    * An example MIDlet to invoke a CGI script.
    public class ThirdExample extends MIDlet {
    private Display display;
    // String url = "http://www.javacourses.com/cgi-bin/getgrade.cgi?idnum=182016";
    String url = "http://sampler.infopro.stpn.soft.net/midletdata.asp?name=name";
    public ThirdExample() {
    display = Display.getDisplay(this);
    * Initialization. Invoked when we activate the MIDlet.
    public void startApp() {
    try {
    getGrade(url);
    } catch (IOException e) {
    System.out.println("IOException " + e);
    e.printStackTrace();
    * Pause, discontinue ....
    public void pauseApp() {
    * Destroy must cleanup everything.
    public void destroyApp(boolean unconditional) {
    * Retrieve a grade....
    void getGrade(String url) throws IOException {
    HttpConnection c = null;
    InputStream is = null;
    OutputStream os = null;
    StringBuffer b = new StringBuffer();
    TextBox t = null;
    int x = 5, y =7;
    try {
    c = (HttpConnection)Connector.open(url);
    c.setRequestMethod(HttpConnection.GET);
    c.setRequestProperty("IF-Modified-Since", "10 Nov 2000 17:29:12 GMT");
    c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
    c.setRequestProperty("Content-Language", "en-CA");
    os = c.openOutputStream();
    String str = "?idnum=182016";
    byte postmsg[] = str.getBytes();
    for(int i=0;i<postmsg.length;i++) {
    os.writeByte(postmsg);
    os.flush();
    is = c.openDataInputStream();
    int ch;
    while ((ch = is.read()) != -1) {
    b.append((char) ch);
    System.out.println((char)ch);
    t = new TextBox("Final Grades", b.toString(), 1024, 0);
    } finally {
    if(is!= null) {
    is.close();
    if(os != null) {
    os.close();
    if(c != null) {
    c.close();
    display.setCurrent(t);
    }>

  • Send Data back to the Server

    Hi.
    how to send data back to the server using J2ME or how to communicate with server using J2ME

    i am using http its work well on emulator but when i install the application on sony ericsssin p910i or k700i or nokia 7710 then its not working and simply hang.
    here is sample code which is run well on emulator but not on mobile.
    what is the problem in that or how can this code run in mobile is there any mobile specific setting or internet setting.
    Pls reply asap.
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    * An example MIDlet to invoke a CGI script.
    public class ThirdExample extends MIDlet {
    private Display display;
    // String url = "http://www.javacourses.com/cgi-bin/getgrade.cgi?idnum=182016";
    String url = "http://sampler.infopro.stpn.soft.net/midletdata.asp?name=name";
    public ThirdExample() {
    display = Display.getDisplay(this);
    * Initialization. Invoked when we activate the MIDlet.
    public void startApp() {
         try {
    getGrade(url);
         } catch (IOException e) {
         System.out.println("IOException " + e);
         e.printStackTrace();
    * Pause, discontinue ....
    public void pauseApp() {
    * Destroy must cleanup everything.
    public void destroyApp(boolean unconditional) {
    * Retrieve a grade....
    void getGrade(String url) throws IOException {
    HttpConnection c = null;
    InputStream is = null;
    OutputStream os = null;
    StringBuffer b = new StringBuffer();
    TextBox t = null;
    int x = 5, y =7;
    try {
    c = (HttpConnection)Connector.open(url);
    c.setRequestMethod(HttpConnection.GET);
    c.setRequestProperty("IF-Modified-Since", "10 Nov 2000 17:29:12 GMT");
    c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
    c.setRequestProperty("Content-Language", "en-CA");
    os = c.openOutputStream();
    String str = "?idnum=182016";
    byte postmsg[] = str.getBytes();
    for(int i=0;i<postmsg.length;i++) {
    os.writeByte(postmsg);
    os.flush();
    is = c.openDataInputStream();
    int ch;
    while ((ch = is.read()) != -1) {
    b.append((char) ch);
    System.out.println((char)ch);
    t = new TextBox("Final Grades", b.toString(), 1024, 0);
    } finally {
    if(is!= null) {
    is.close();
    if(os != null) {
    os.close();
    if(c != null) {
    c.close();
    display.setCurrent(t);

  • How to rollback a traansacation if we got any problem while sending data to

    how to rollback a traansacation if we got any problem while sending data to a webservice...

    Is it SOA or OSB? Which version you are in..

  • Is it possible to create a virtual TCP port and send data to it?

    Is it possible to create a virtual TCP port and send data to it?
    My application is this:   I am reading a constant stream of waveform data from a device via a LabVIEW VI set and I need to get that streaming data to a .NET application.  I can poll a TCP port in .NET easily so is there a way I can create a virtual TCP port in LabVIEW and send the data there?

    Have a look at the example called simple data server and simple data client and see what you can get from that. I'm not really familiar with TCP myself.
    Joe.
    "NOTHING IS EVER EASY"

Maybe you are looking for

  • Installing Ubuntu 12.04.1 on a partition MacBook Pro?

    Hi, I am attempting to install Ubuntu 12.04.1 on my internal hard-drive on a brand new MacBook Pro. I have managed to partition the hard drive ok. But when it cam to attempting to install the alternative operating software on it. I arrived at a purpl

  • I updated an iphone 3g and it does not want to restore after the backup.

    i have an old iphone 3g and there was an update available from my itunes. i updated and it went through the whole process, but when it started to restore and update i get a message saying that device was unable to restore unknown error (1015) i have

  • How to create a document library with the attachments of a task list?

    Hi! Basically, I need to create an event handler, that in the time when a file is attached to a task, make a copy of the file in the document library. Unfortunately this requires knowledge in programming and is not even possible for me to install the

  • HP SimpleSave external disk 1 Tb, "no access to a disk"

    HP SimpleSave 1 Tb, HPBAAD0010HBK-01, Model N: hp md1000h, S/N:[Personal Information Removed] Virtual HPLauncher disk works and program HPLauncher.exe is started also. The system (Win7) sees the HP SimpleSave 1Tb disk. In properties of the disk shows

  • Annotations lost after failed cloud save

    I had a PDF file opened for several days in Reader in my Nexus 7 tablet. I had made several annotations. At some point, after I had added a couple of annotations, I uploaded the file to Acrobat.com, and continued working with the version on Acrobat.c