SSL over plain TCP/IP

I am trying to write a client server app and i want my calls to be encrypted via SSL.
I am using IBM JDK as my runtime is WebSphere.
     //For JSSEPrvider2 use:com.ibm.net.ssl.www2.protocol
     //For JSSE Provider use: com.ibm.net.ssl.internal.www.protocol
          System.setProperty("java.protocol.handler.pkgs", "com.ibm.net.ssl.www2.protocol");
I notice for https we have to use the packages mentioned above.
My server talks plain tcp/ip?
What should my package names be?
If somebdoy can poin tm eon how to do it in Sun JDK i can do the necessary changes for the IBM JDK .
Appreciate any assistance
Warm Regards,
Manglu

Please examine http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html to see how to use SSL/TLS over TCP.

Similar Messages

  • Whats the difference between 2 way SSL over HTTPS & 2 way SSL over TCP

    also, is there an implementation on web for 2 way SSL/TCP .
    PS: plz donot give me the definition for 2 way SSL :)

    whats the difference between 2 way SSL over HTTPS & 2 way SSL over TCP?The difference is that '2 way SSL over HTTPS' doesn't exist.
    HTTPS is HTTP over SSL, so SSL over that would be SSL over SSL which would be pointless.

  • Attempting to use SSL over RMI from a web application to a RMI server

    Hi,
    I am attempting to use SSL over RMI to a server. The client is the web
    application that is hosted on WebLogic and that attempts to connect to the
    server. There is no client or server verification at either the client or
    the server end. The code works outside of WebLogic 7/8 but has the following
    issues when running the web application inside weblogic:
    java.rmi.ConnectException: Connection refused to host: gkhanna1; nested
    exception is:
    java.net.ConnectException: Connection refused: connect
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
    at java.net.Socket.<init>(Socket.java:268)
    at java.net.Socket.<init>(Socket.java:95)
    at
    sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketF
    actory.java:20)
    at
    sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketF
    actory.java:115)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:494)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:79)
    at
    com.hyperion.css.spi.impl.ntlm.NTLMConnectionClient.initConnection(NTLMConne
    ctionClient.java:59)
    at
    com.hyperion.css.spi.impl.ntlm.NTLMConnectionClient.getUsers(NTLMConnectionC
    lient.java:197)
    at com.hyperion.css.CSSAPIImpl.getUsers(Unknown Source)
    at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
    at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
    at jsp_servlet._jsp._app1.__app1signin._jspService(__app1signin.java:133)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:1058)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :401)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :445)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :306)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5445)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:780)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3105)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2588)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    The code at the client that initiates the connection:
    socketFactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
    SSLSocket socket = (SSLSocket) socketFactory.createSocket(host, port);
    socket.setEnabledCipherSuites(CIPHERS);
    socket.setEnableSessionCreation(true);
    Any ideas?
    Thanks

    I don't see anything that indicates SSL was directly a factor in the
    failure.
    From the exception stack it looks like a more basic connectivity issue,
    maybe the URL for the
    RMI server is incorrect for some reason or the server was down.
    It looks like you are doing something like this:
    SSL client -> WLS server with servletA, servletA RMI client
    (com.hyperion.css) -> RMI server
    The connection failure appears to be the connection from servletA RMI client
    to the RMI server.
    Is that a correct picture?
    Tony
    "Gaurav Khanna" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I am attempting to use SSL over RMI to a server. The client is the web
    application that is hosted on WebLogic and that attempts to connect to the
    server. There is no client or server verification at either the client or
    the server end. The code works outside of WebLogic 7/8 but has thefollowing
    issues when running the web application inside weblogic:
    java.rmi.ConnectException: Connection refused to host: gkhanna1; nested
    exception is:
    java.net.ConnectException: Connection refused: connect
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
    at java.net.Socket.<init>(Socket.java:268)
    at java.net.Socket.<init>(Socket.java:95)
    at
    sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketF
    actory.java:20)
    at
    sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketF
    actory.java:115)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:494)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:79)
    at
    com.hyperion.css.spi.impl.ntlm.NTLMConnectionClient.initConnection(NTLMConne
    ctionClient.java:59)
    at
    com.hyperion.css.spi.impl.ntlm.NTLMConnectionClient.getUsers(NTLMConnectionC
    lient.java:197)
    at com.hyperion.css.CSSAPIImpl.getUsers(Unknown Source)
    at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
    at com.hyperion.css.CSSAPIImpl.initialize(Unknown Source)
    at jsp_servlet._jsp._app1.__app1signin._jspService(__app1signin.java:133)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:1058)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :401)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :445)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :306)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5445)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:780)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3105)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2588)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    The code at the client that initiates the connection:
    socketFactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
    SSLSocket socket = (SSLSocket) socketFactory.createSocket(host, port);
    socket.setEnabledCipherSuites(CIPHERS);
    socket.setEnableSessionCreation(true);
    Any ideas?
    Thanks

  • Getting error when trying to enable ssl over pop3

    We are using SunOne Messaging Server v5.2 on Solaris 9
    We followed the below steps:
    1. Create a trust database password for "Internal (Software) Token"
    2. Obtain a certificate
    3. Install the certificate along with CA certificate.
    4. The certificate is installed with the name "Server_Cert" and is shown as trusted in the "Certificate Management"
    5. configured ssl over pop3 using configutil
    6. stop and start the services.
    The Configutil changes made are as below:
    nsserversecurity = on
    encryption.rsa.nssslactivation = on
    encryption.rsa.nssslpersonalityssl = Server_Cert
    encryption.rsa.nsssltoken = "Internal (Software)"
    service.pop.enablesslport = yes
    service.pop.sslport = 995
    We saved the below in the sslpassword.conf:
    Internal (Software) Token:mypassword
    After restarting the services, pop3 over ssl is not working.We also checked "netstat -an -P tcp | grep 995" and it shows nothing.
    The logs are showing the below error:
    "[22/Apr/2006:15:46:58 -0300] mail popd[26352]: General Error: SSL initialization error: Didn't find certificate Server_Cert (-8157)"
    Please advice a solution for the same. I am unable to figure out the problem.
    Your help will be highly aperciated .
    Regards
    Ehab

    Hi,
    have you checked whether the cert is in the certsdb using certutil?
    thanks
    ndrb

  • Using control reference with a Sub-vi over a TCP VI Server connection

    I tried to use a Call by Reference Node to run a sub-vi on a remote PC through a TCP VI Server. An output of the sub-vi is connected to an indicator in the main vi using a control reference.
    The sub-vi started on the remote PC, but the information from the sub-vi was not passed to the control reference in the main vi. However, if I change the client name to the host PC, ie. running the server and client vi on the same machine, the code works as planned. I wonder if control reference is not suppose to work over a TCP VI Server connection?
    Any suggestion would be very much appreciated.
    Regards,
    Calvin Tsang
    Attachments:
    main_vi.vi ‏29 KB
    sub_vi.vi ‏20 KB

    Thank Jean-Pierre for pointing out that Refnums are local to an application and so control reference doesn't work between different applications on separate machines.
    In addition to the method shown in Jean-Pierre's example vi, I found that the use of "invoke method: GET control value" and "invoke method: SET control value" can produce similar results. See the attached files for an example. In this example, the indicator on the local vi is used to monitor the progress of the remote vi and the local control is used to stop the remote vi. So the data synchronisation between the two vi is not important here.
    However, you may notice the indicator "current counter" in main1_vi.vi doesn't properly interpret the binary string from "invoke method: GET control
    value", can someone shed some light on this, please?
    Calv
    Attachments:
    main1_vi.vi ‏48 KB
    sub1_vi.vi ‏13 KB

  • Custom sig: Non-SSL over SSL port

    I am trying to build a custom signature for detecting non-SSL traffic on a specific SSL port (let's say tcp/443). This has to do with CONNECT tunnels through an HTTP proxy. Conceptually, it's not a complicated idea. Whether or not it can technically be done effectively with the Cisco IPS I don't know.
    It seems that very early in every SSL connection, there is an SSL "client hello" message(SYN,SYN/ACK,ACK,CLIENT HELLO). There are two relevant record formats, SSLv2 and SSLv2/TLS. I would like to create a signature that fires when it DOES NOT see the client hello message very early in a given TCP session. I would want the signature to only need to check the very first n packets of any given TCP session (n = max size of connection establishment + max size of client hello packet). Has anyone created such a beast or willing to help? Here are a couple packets.
    SSLv3 Client Hello
    0000 00 00 5e 00 01 67 00 a0 8e 82 ec 5d 08 00 45 00 ..^..g.....]..E.
    0010 00 8e 33 b8 40 00 3e 06 94 16 ce c3 c3 6c 40 22 ..3.@.>......l@"
    0020 a2 49 58 27 01 bb b7 42 c6 92 fd 36 a3 d1 50 18 .IX'...B...6..P.
    0030 44 70 08 e2 00 00 16 03 00 00 61 01 00 00 5d 03 Dp........a...].
    0040 00 44 5f 9a 77 69 49 5a 85 52 a0 96 38 b3 b4 15 .D_.wiIZ.R..8...
    0050 8f db f2 0f c9 0e ea 10 f5 69 39 8c 58 87 e5 33 .........i9.X..3
    0060 70 20 ba 06 1e 3f d4 4e 3c d0 de a8 ea 4e a3 7f p ...?.N<....N..
    0070 0f 07 fd 5f 88 07 17 ef 50 ce 6b cf 10 e3 84 99 ..._....P.k.....
    0080 04 a2 00 16 00 04 00 05 00 0a 00 09 00 64 00 62 .............d.b
    0090 00 03 00 06 00 13 00 12 00 63 01 00 .........c..
    TLSv1 Client Hello
    0000 00 0f 20 6c 99 8b 00 a0 8e 82 c4 c1 08 00 45 00 .. l..........E.
    0010 00 96 a2 89 40 00 7f 06 32 b3 ce c3 c2 29 ce c3 [email protected]....)..
    0020 c6 74 0d 13 01 bb 38 17 d5 89 98 0f fc 73 50 18 .t....8......sP.
    0030 44 70 6c 75 00 00 16 03 01 00 69 01 00 00 65 03 Dplu......i...e.
    0040 01 44 5f 9a 84 8a 94 ab f3 78 e7 b1 c9 ca 04 34 .D_......x.....4
    0050 3b 95 1b 86 51 05 5f ac 9d a0 b0 69 fe 0c 27 e5 ;...Q._....i..'.
    0060 9c 20 78 08 00 00 ce c3 c2 29 58 58 58 58 58 58 . x......)XXXXXX
    0070 58 58 58 58 58 58 58 58 58 58 48 9a 5f 44 8c 4b XXXXXXXXXXH._D.K
    0080 05 00 00 1e 00 04 00 05 00 2f 00 33 00 32 00 0a ........./.3.2..
    0090 00 16 00 13 00 09 00 15 00 12 00 03 00 08 00 14 ................
    00a0 00 11 01 00 ....
    SSLv2 Client Hello
    0000 00 00 5e 00 01 67 00 a0 8e 82 ec 5d 08 00 45 00 ..^..g.....]..E.
    0010 00 82 fb a7 40 00 3e 06 cf 32 ce c3 c3 6c 9f 35 ....@.>..2...l.5
    0020 40 36 58 6d 01 bb b7 78 06 1b cd e2 e2 3d 80 18 @6Xm...x.....=..
    0030 44 70 47 6b 00 00 01 01 08 0a 31 fd f9 51 00 00 DpGk......1..Q..
    0040 00 00 80 4c 01 03 00 00 33 00 00 00 10 00 00 04 ...L....3.......
    0050 00 00 05 00 00 0a 01 00 80 07 00 c0 03 00 80 00 ................
    0060 00 09 06 00 40 00 00 64 00 00 62 00 00 03 00 00 [email protected].....
    0070 06 02 00 80 04 00 80 00 00 13 00 00 12 00 00 63 ...............c
    0080 7b af 57 75 f8 a9 72 54 23 29 32 50 bf ef 1e a9 {.Wu..rT#)2P....

    Hi mhellman:
    I can see 3 difficulties with this kind of sign.
    1) To determine the order of the packets.
    2) To determine that happen at the very begining of the conection
    3) fire when the traffic doesn't match with the signature.
    The difficulty number 3, I think, is imposible to resolve because the sensor can compare the trafic with a well defined pattern and fire when it match, but not when it doen't.
    The difficult number 2
    You need a kind of state signature because this can be classified like a machine state (first three way handshake, then hello packet) but I can't see fields in the state engine that help in this case.
    The difficult number 1 could be resolved by a Meta signature.
    You will need to create an a custom atomic signature for the syn packet, another for the syn ack, another to ack, and the last one for hellow packet.
    Then create a meta signature and add the fourth atomic singatures whith a strict order.
    but guess what...
    Meta signature doesn't permit custom signatures.
    I think this kind of signature is imposible to write.
    But I'd try.
    Regards
    Alberto Giorgi from spain.

  • Reading input stream over the tcp socket in unix

    I have a program that reads data from input stream from the socket. If the data is over 1500 bytes it is sent in multiple TCP packets. Whats weird is, if I run the program in windows environment it waits till it receives all the packets but when I run the same program in unix environment it only reads the first packet and go further without waiting for all the TCP packets!!
    The line that reads from input stream is
    datalen = inStr.read(byteBuffer);is there anyway I can make it wait till it receives all the packets on unix system? I do not understand why it works fine for windows in this case but not for unix.
    I'll appreciate any help..
    Thanks

    When the network is busy there can be any amount of dleay between packets. If this is ever 100 ms , then this will break.
    If you send more than one packet per 100 ms you will get two packets at once which will look like one longer packet. Unless you check for this the second packet may get ignored.
    The safe way is to send the packet size before sending the packet. Then on the client read the packet to the correct length. Otherwise you will have a program which just happens to work rather than one which will always work.

  • Authenticated SMTP/SSL over port 465

    Does Oracle E-mail support authenticated SMTP over SSL on port 465? - E

    Yes,
    both TLS and SSL are possible with 10.1.1. Tried myself. A little bit tweaking essmi's accordingly, applying certificates, and adjusting listener.ora for LISTENER_ES.
    Note: essmi only.
    - Torsten

  • SSL over IRC

    I'm developing an IRC applet with SSL sockets. I've reaches to make a connection with the IRC server, but when i try to send login to the server, i take the next exception:
    IOException: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
    I tried to change the mode i send info over the socket, trying it with a PrintWriter, a DataOutputStream and a Buffered Writer, but i take the same result.
    Any ideas?

    Hi,
    I had the same problem, but i didn't get any answer in that forum.
    I deinstalled the SAP Software (regard the end of the threat
    https://forums.sdn.sap.com/click.jspa?searchID=22036513&messageID=6625975) and then I installed the software again. Then the system ran and i didn't have any more problems with the message server.
    I didn't installed the MS Loopback Adapter, because i am connected to a network.
    Best regards,
    Günther Klee

  • How do I send strings over a TCP/IP LAN N/W

    I want to send string information over LANs which can be viewed on Hyperterminal in PCs on the N/W
    Pls help me out
    Solved!
    Go to Solution.

    Are you trying to broadcast a message on your LAN? If so you'd need to use UDP (since it's a connectionless protocol) and use the broadcast address for your subnet. You'd have to check with your network admin as to what that is, though it's probably x.x.x.255 or 255.255.255.255. TCP requires a connection so for TCP/IP you'd need to send the message to each individual IP address. Alternatively, if you're on Windows you could use the "net send" command using System Exec.

  • Kollmorgen AKD modbus or Telnet over ethernet TCP

    I'm a beginner using LabWindows CVI. I have a Kollmorgen AKD driver that can communicate via Ethernet using either Telnet or Modbus protocol. To make sure the hardware works, I downloaded the Kollmorgen WorkBench Software onto my laptop and went through the QuickStart guide. I set my laptops address to a static id (192.168.0.100) and then set up the Kollmorgen driver to have a static id of (192.168.0.26) using the two rotary switches (S1 and S2). In this case, I chose 2 and 6. I connected my PC to the driver using the Workbench software and was able to successfully spin the motor ccw and cw. I also was able to move the motor to specific locations (90, -90, 180, etc) in relation to the set 0 position. The Kollmorgen software uses the Telnet protocol.
    How would I go about connecting my PC to Kollmorgens AKD driver using Modbus/Telnet via Ethernet on LabWIndows CVI? Is there a modbus library or special functions?
    I went to the Modbus website and did not find any examples...
    Any help would be much appreciated.
    Badra

    There are free LabVIEW Modbus libraries, but these are API's built for LabVIEW:
    http://zone.ni.com/devzone/cda/epd/p/id/4756
    https://decibel.ni.com/content/docs/DOC-30140
    There actually is a push to implement Modbus protocol support in CVI, and you can add your thoughts to the discussion here:
    http://forums.ni.com/t5/LabWindows-CVI-Idea-Exchan​ge/Implement-Modbus-RTU-TCP-protocol-support/idi-p​...
    The Idea Exchange forum is used by R&D in order to help implement new features requested by customers in later releases. You can also try using a free C library that does Modbus protocol, since CVI utilizes C code. An example would be libmodbus:
    http://libmodbus.org/documentation/
    There is also this community example which implements Modbus RTU programming over RS232 in CVI:
    https://decibel.ni.com/content/docs/DOC-15734
    Daniel K | NI Applications Engineer | Certified LabVIEW Developer

  • How do i know the ssl over non ssl

    Hello Gurus,
    Your answer is greatly aprreciaied ;
    a)
    https://ebusdockel.9dc.com:243/DockerMasterAJX/services/DockerMaster
    b)
    http://ebusmodel.9dc.com/DockerMasterAJX/services/DockerMaster
    How do to dtermine from the above 2 URLS difference betwenn SSL and non SSL ,your answer is appreciated.

    Hi,
    There is a way within Forms to programmatically tell whether users are in SSL or not - if you're in 11g Forms. You can use the new 11g javascript built-ins to execute javascript. Javascript will pull the URL and return it to as a VARCHAR. Then you can have PL/SQL logic to see if the url contains "https" or "http", then you can execute whatever logic you want.
    The PL/SQL Built-in you want to use is: web.javascript_eval_function
    The javascript command you want to run is: document.location.href
    If you are looking for a way to force users to go to SSL, there are some options you can do with OHS(Oracle HTTP Server) - which comes with the 11g Forms.
    I hope this helps.
    Thank you,
    Gavin
    http://pitss.com/us

  • SSL Over HTTPS

    Dear All,
    we have setup our SSL setup successfully in POP , but we have small problem in https , as follows when we try to open webmail like https://ourdomain , we get pop menu to accept the ceritificate , my qyuestion is how to make the authentication of our https thru user name and password , not to get this pop window to ask to accept the certifciate .

    I have replied here so the thread can be continued in case there is another option that may be explained.
    This thread has been very informative - we are using MMP/MSG 5.2 patch level 1.26. In our case our old expired certificate was Verisign, but now we use Equifax for the CA Authority. There are two Equifax Trusted Client CA certificates in the Certificate Database. We have our own certificate listed as Server-Cert. In viewing all three of the certificates, the radio button shows "Reject" under the "Trust CA" heading. I have stopped the message server with ./stop-msg and restarted with ./start-msg which should restart the http portion we are using which should implement the "untrusted" certificates and not prompt IE6 for a certificate. However, the web browser (IE 6) still requests thru the pop up box "The web site you want to view requests identification".
    I do find the Equifax certificate in the IE 6 program by right clicking on the displayed screen after answering the prompt. Have I missed a place there is a certificate which shows as trusted for Equifax?
    I surely am missing something in this scenario.
    - Terry

  • Call XI over plain-http without calling a receirver system

    Hi,
    I´m trying to call XI over http only to cheque whether xi is still alive. So I dont need a system to call. Anybody knows how?
    Thanks in advance,
    Frank

    Hi Frank,
    Create a scenario in XI, for an HTTP sender (that means no Sender Agreement).
    Create a HTTP client, which uses a xmlhttp object from msxml2 API. Use the .send() method to send a payload.
    You can see the response in your front-end itself.
    You can use other APIs also for this.
    A SOAP client is also available in sdn, so that you can create a SOAP scenario, and test connectivity through that.
    Regards,
    Puloma.

  • Problems communicat​ing Joystick over Modbus TCP/IP: Please Help!

    I'll give the whole picture here, but I'm not very hopeful because I see other people have had similar problems with no solutions. I am using Labview 2009 and I'm not sure what version of Modbus I have, it was the newest version available in early 2009. 
    I have a joystick plugged into computer1 (Master) which does not have Labview. Computer1 is connected via Remote Desktop to computer2, which is running the MB Ethernet Example Slave in Labview.
    In order to get the joystick info from computer1 to computer2, I built an .exe that takes the joystick info and sends it over modbus. I began getting error 66 randomly while using the MB Ethernet Master Query in the .exe, which would immediately be followed by Error 62 if I tried to send another data point.
    So, I replaced the Master Query with just the MB Ethernet transmit in the .exe, since the slave is not writing anything back to the master. Now I only get error 62, and it is still random.
    I seem to be able to send a boolean value (from a switch on the joystick) without any trouble. But when I start passing the joystick position, which I have converted to U16, it errors out eventually. Sometimes I can move the joystick continuously for several seconds (30-45), and sometimes it is almost immediate.
    Also, when I view computer2 over remote desktop, the error occurrs more frequently. I know the Ethernet switch is working, and I have had this problem before when directly connecting two computers with a twisted cable.
    Can somebody please help me with this, or suggest a better way of doing it? I only need to pass one U16 and one or two booleans, so if there is something besides Modbus that I can use, I'm all ears.

    Success! The cross binding was a big part of the problem, I had forgotten I'd done that, and I was actually just guessing, so I'm not sure if the fog.... was correct either.
    SO, here is what I did to get this to work, in case anybody else comes across this (and in case I forget).
    1. I think I'm hosting the library on the Labview computer (computer2), although, it appears that this done simply by pressing run on the VI that is running on this computer. The variable in this VI is bound to the one created under the library for the .exe VI. I'm a little confused here, because they are actually the same variable, just copied and pasted inside the project explorer window. I'm not sure if I really need the two libraries, or if I even needed to bind them since they are one and the same?
    2. The .aliases file: I opened this up in notepad, and all it contains is the IP address of the computer2, which is the one that I am making the .exe on and also the one that is currently running labview and hosting the library. If, in the application builder/Advanced, I leave the check mark on Use the default project aliases file, the .exe does not work. I think it is because it tries to connect to (local host) instead of (169.254.74.250), the IP address of the local host. If, however, I open the .aliases file in notepad and save it under a new name, unchanged, and then uncheck the box and add this file, the .exe works. I think because it now looks for (169.254.74.250). Make sense? If the .exe stayed on the same machine, then local host and 169... would be the same thing, but since the .exe moved across the network, it now needs the IP address.
    I'm guessing that when I move this project to a new set of computers, I will have to open the .aliases file in the .exe folder on computer1 and change it to the IP address of computer2. Hopefully I will not have to rebuild the .exe, because computer2 will not have the version of Labview that can build an .exe.
    3. I took the invoke node out of the .exe code. There is nothing in the .exe code, or the VI running on the host computer that has anything to do with connectivity other than writing to and reading the shared variables.
    4. In application builder/Shared Variable Deployment, I DID NOT check the box that says Deploy shared variable libraries at application execution. I don't understand how this could possibly work unless I was leaving the .exe on this computer.
    So in the end, it was pretty simple, just a couple of nuances that needed sorted out. I still think the NI explanations of using shared variables with EXEs are very confusing, and I'm not sure what I will have to do to change the VI on computer1 to an EXE, although that will probably be a requirement on down the road.
    Thanks for the help and being patient.

Maybe you are looking for

  • Setup new MacBook Pro

    After creating an account it comes back to the beginning of the process. I have already done the whole process for 3 times. Was I blessed with a new MacBook Pro that came with defect from the box?

  • I just bought an album, but 1 song didn't work, how do I get that song?

    I just bought an album, but 1 song didn't work, how do I get that song? Any suggestions are appreciated, I would rather bot have to buy it all over again! Thanks!

  • Extract

    hi, What does an extract statement do in the ABAP program? thnks.

  • Synchronise digital pattern output(6533) with a external signal

    I use a PCI-DIO32HS and i want to synchronise an output pattern with an external signal(TTL;T=1.7ms). ie :every time external signal become high(every 1.7ms) my dio32HS output a define pattern on a line. How can i do this?Thanks

  • Troubles to locate where is the "I agree"

    I purchased a program from iTunes Store and when it was downloaded (the program), appeared a message that I need to agree with a TERMS AND CONDITIONS... I clicked this message, went to the page, but I CANNOT FOUND WHERE IS THE "I AGREE" term to click