Communicating with a external application through tcp/ip

Hi all,
I have set up a procedure to communicate with a external application. I have used util_tcp to set up this connection. The process I undertake is i send some packets to a remote port XXXX on a particular ip address .
i.e util_tcp.open_connection(host_ip_address,host_port).
I then wait for data coming back, from this external application.
I then close the connection.
All is fine when I execute this procedure from a AIX server, I get all the required packets back.
But when I execute this procedure from a windows server I manage to send packets of data out to the remote port but i can't read data from the port. When i telnet to the remote machine i could see the packets being sent back but i just can't seem to reas the data/packets. the utl_tcp.available is zero. BUT when i run the same procedure from aix server it works fine.
If anyone can help, much appreciated.
thankyou
nahim

Sorry I think I may have not been very clear about what I am asking.
On AIX Server:
Has Oracle Database 8 on it.
-I connect to remote port 7097 - c := utl_tcp.open_connection('XXX.XXX.XXX.XX',7097,null,null,null,null,null,null);
-I send out packets to External App(Schedular) through above connection -      li_return_value := utl_tcp.write_line(c, lc_ClientPacket);
-Schedular sends back Packets through above connection
-Oracle Database 8 checks for data on port
utl_tcp.available(c) > 1
-Data is available so start to read data
lc_RawData := UTL_TCP.get_text(c,li_lenOfRawData);
On Windows Server:
Has Oracle Database 9i on it.
-I connect to remote port 7097 - c := utl_tcp.open_connection('XXX.XXX.XXX.XX',7097,null,null,null,null,null,null);
-I send out packets to External App(Schedular) through above connection -      li_return_value := utl_tcp.write_line(c, lc_ClientPacket);
-Schedular sends back Packets through above connection
-Oracle Database 8 checks for data on port
utl_tcp.available(c) > 1
- BUT THE DATA IS NOT AVAILABLE so cannot read data. Its as if the packets vanish in thin air or windows is not liking the packets.
When telnet to the remote machine I can see the packets i send going into the port and the packets coming back from sideinwder ready for me to read. But for some reason I can't read.
Its a very odd problem, if the eact same code works from AIX, why not windows. I thought it might be something between Oracle database and windows that needs to be set up. But how can any configuration on the oracle database or the windows platform effect communication on the remote host.
Any ides please help
Thankyou for the help provided so far, much appreciated.
Nahim

Similar Messages

  • Call external application through Abap WD application

    Hello All,
    We are trying to call an external application using ABAP.  The details are as below
    1) SAP server on AIX OS
    2) External Apps server: Windows OS
    The external apps takes a file located on windows as input and generates a file on windows as output. The external appls is installed on the windows OS.
    We are unable to trigger the VC apps from ABAP.( AIX OS).
    Appreciate if you can guide and give some examples. Please note that the OS are different.
    Questions:
    1)  How to access windows file system to execute external appls from ABAP ( AIX)
    2)  Would a RFC be required to be made between ABAP and the windows server where external appls is hosted
    3) Any sample code/links is really help ful
    We were able to get it working when the applications was hosted on local file system ( desktop) . Two problems are getting the appls executed on remote and different OS accessing windows file system through unix ( AL11 should help here i guess)
    Regards
    PN

    Hi Lekha
    I want to start a *.bsp page in a new external window and POST Parameters to this *.bsp page.
    So it is not actually showing a bsp in a ABAP WD.
    Kind regards
    Paul
    PS: create_external_window is alway a GET Method and I do not want to show Parameters in the URL.

  • Your Question:  Karaoke with HDMI & external Mic through a Macbook Pro

    Your Question:
    I have a Macbook Pro, with a miniDisplay to HDMI, which I connect to my TV, after setting output sound and mirroring the display, I can show and hear Karaoke streamed from the internet, but I can't get a microphone to work through the system. I have a mic, with a qtr to eigth adapter in mic port - no sound. Tried mic to a USB port, macbook recognises mic, but no sound out to surround system, just the karaoke music - help

    I about pulled my hair out trying to figure out how to do this, so today I made a phone call to a professional musician friend. He said that I need a mixer to go between the computer and the tv. A mixer gives multiple input and output options. He said a friend of his that is a DJ uses this one and recommends it to everyone -
      VocoPro DA-1000PRO 3-Channel Karaoke Mixer
    I ordered one today along with some Shure SM58 Mics.
    Hopefully, it all works out...I'll let you know.

  • Creating Deskband for Windows 8 using C++ and its communication with C++/Qt application

    I've already found described way of creating deskbands here -- http://msdn.microsoft.com/en-us/library/windows/desktop/cc144099%28v=vs.85%29.aspx and respective sources on SDK like https://github.com/theonlylawislove/WindowsSDK7-Samples/tree/e8fe83b043727e71f5179da11fc6228475e7973c/winui/shell/shellextensibility/deskbands
    But can't find any simple and straight article on how to use it for example in/from Qt-written application.
    Can someone recommend any resource where I can find way to implement own deskband for own application, please.
    Thanks.

    There is no API for creating or showing menus on desk bands written by others, with the exception that a task bar button representing an application
    written by yourself, in that case you can use the Windows 7 Jump lists API (right click menu) or WM_SYSCOMMAND (shift+right click menu) to control the context menu of your own application. How other
    deskbands handle menus are completely up to their authors. 
    A deskband is an in-process COM server which means you must build a 64 bit version if you want to use it in 64 bit Windows Explorer.
    Visual C++ MVP

  • Integrating BI Publisher with an external application.

    Hi All,
    I have a created a small web application and now from this web application i want
    to access the reports generated using the BI Publisher( XMLP ). When i actually see the reports, i dont want the Oracle logo or any of the things related to that visible. So what is the way i can actually integrate Oracle BI Publisher with my application.
    Can anyone help on this???

    Did you mange to integrate or not. We are trying to do the same.

  • Lost communication with DAQ (NI-6008) through labview

    I currently use four USB-6008 devices through labview as part of a teststand. While troubleshooting a separate issue I lost the ability to communicate with the devices but only through labview. Using other NI software I can use the analog I/O but not from my labview program. I am a chemical engineer so I've already exhausted my limited computer knowledge, any help would be greatly appreciated.

    If MAX can see the devices, and collect data thru them, then your hardware is OK.
    (Max is the Measurement and Automation Xplorer program).
    Assuming that's the case, then I would suspect a naming change.  You can rename the devices in MAX, perhaps when you didn't mean to.
    Check your ERROR outputs of the NI-DAQ calls.  That's what they're there for. Put a probe on the ERROR outputs of INIT TASK, START TASK, whatever you're using.
    The more professional programs expect those errors and handle them, if you're doing a one-off kind of thing, it's easy to think you don't need them, since it worked the first time out, but they really will give you info that you need right now.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Communicating with HP signal Generator through labVIEW

    Hi I need to know the Command String for recieving a numbered string from an HP function Generator which is comma delimetered and can be used to plot a graph in labVIEW 7.1. It would be usefull if I could also get the command string to recieve the same result from an Agilent Oscilloscope. I have tried several recommended command strings, however all of them return an error. Any help would be greatly appreciated!! Thank you 

    How can anyone provide you with the command for an instrument when you don't even mention the model of the instrument.
    Do you have the instrument manuals? The commands are all listed there and if you don't have the manual, go to www.agilent.com and do a search for them. Have you tried to find a driver for the instruments? NI has thousands of drivers already written. Go to http://www.ni.com/devzone/idnet/ and search.

  • DMS BAPI RFC Open DMS document from external application

    Hello,
    I want open a document stored in DMS through RFC BAPI, from an external application (for example .NET)
    EasyDNS run OK: I have included the bapi Z_EASYDMS_ECL_OPEN_DOCUMENT (code from a SAP note)  in the system and I can open ECL/EAI & local documents (pdf, word, ...)
    If I run Z_EASYDMS_ECL_OPEN_DOCUMENT from SE37 run OK: I can see every document, document is downloaded to local system and then open.
    But when I call bapi Z_EASYDMS_ECL_OPEN_DOCUMENT from my external application through RFC I don't receive any result: document is not download to local system.
    I have debugged the bapi (with SM50) and I have see that the calling entry in bapi, run and then ... crash.
    I have detected the fail in OLE_FLUSH_CALL: system has a dump.
    Summary:
    - EasyDMS run Ok
    - SE37 Z_EASYDMS_ECL_OPEN_DOCUMENT run ok
    - Z_EASYDMS_ECL_OPEN_DOCUMENT dump at OLE_FLUSH_CALL
    Any idea?
    thanks in advance,

    Hello,
    it is possible to extract DMS's file to application server directory:
    FUNCTION Z_DMS_VIEW.
    ""Interfase local
    *"  IMPORTING
    *"     VALUE(DOC_NUMBER) LIKE  BAPI_DOC_DRAW2-DOCUMENTNUMBER OPTIONAL
    *"     VALUE(DOC_PART) LIKE  BAPI_DOC_DRAW2-DOCUMENTPART OPTIONAL
    *"     VALUE(DOC_TYPE) LIKE  BAPI_DOC_DRAW2-DOCUMENTTYPE OPTIONAL
    *"     VALUE(DOC_VERS) LIKE  BAPI_DOC_DRAW2-DOCUMENTVERSION OPTIONAL
    *"     VALUE(ORIGINAL_PATH) LIKE  BAPI_DOC_AUX-FILENAME OPTIONAL
    *"  EXPORTING
    *"     VALUE(P_RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
    *"  TABLES
    *"      DOC_FILES STRUCTURE  BAPI_DOC_FILES2 OPTIONAL
      CLEAR:   doc_files.
      REFRESH: doc_files.
      DATA: i_doc_files like bapi_doc_files2.
    DATA: i  type i.
    i = 2.
    while i = 2.
       i = 2.
    endwhile.
      CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'
        EXPORTING
          DOCUMENTTYPE    = DOC_TYPE
          DOCUMENTNUMBER  = DOC_NUMBER
          DOCUMENTPART    = DOC_PART
          DOCUMENTVERSION = DOC_VERS
          DOCUMENTFILE    = i_doc_files
          GETSTRUCTURE    = '0'
          GETCOMPONENTS   = 'X'
          ORIGINALPATH    = ORIGINAL_PATH
          HOSTNAME        = ' '
          GETHEADER       = 'X'
          PF_HTTP_DEST    = 'SAPHTTPA'
          PF_FTP_DEST     = 'SAPFTPA'
        IMPORTING
          RETURN          = P_RETURN
        TABLES
          DOCUMENTFILES   = DOC_FILES.
    ENDFUNCTION.
    ORIGINAL_PATH must be a directory of application server.
    By background is not possible (I don't know how can we do that) download thsi file to PC.
    Then with the file in application server we can :
    - to map application server directory in a drive unit of Pc
    - to transfer with a ftp client from Pc
    - rfcexec
    But always the bapi can not download the file: it must be a process in Pc who transfer the file.

  • How do you pass an ActiveX Variant from an external application to LabVIEW?

    Background: I created a LabVIEW ActiveX server. I can access it with my external application (Matlab). I have a control variable in my LabVIEW executable. I want to use Active X to set the value of my control variable from my external application.
    Documentation: The only reference in the documentation for this task is in the Using ActiveX with LabVIEW in the LabVIEW 2009 help. It simply says "Use the variant control and indicator to pass data to or from ActiveX controls." I also went through all the ActiveX examples in the example finder and did not find any vis that passed variables using ActiveX.
    Questions:
    What should my control variable look like in LabVIEW? Should it be a refnum, a variant, or a data type? Does it have to be wired to a vi connector?
    Do I need to do any magic on this variable, such as change its properties?
    How do I pass the value from my external application to the variable in my LabVIEW executable?
    Thank you.

    Hello Lyn,
     The control variable should be a refnum and it would have to be wired to Automation Open with the correct reference.
    Here are some great examples of using ActiveX Server in LabVIEW
    LabVIEW Executable Used as ActiveX Server in LabVIEW
    http://decibel.ni.com/content/docs/DOC-9647
     Calling ActiveX Code from LabVIEW
     http://decibel.ni.com/content/docs/DOC-9073
    Andy Chang
    National Instruments
    LabVIEW Control Design and Simulation

  • Submit webform content to external database through webservices

    Hi 2 all,
    we need to achieve the following :
    - create a webform where user insert his main details (name, company, email etc.)
    - in the webform there is a script that generates two random number to be used as username and password
    - all data of the webform shall be sent to an external database through the webservices provideb by the external site
    - the external site validates the form and send a TRUE/FALSE reply to BC
    - based on TRUE / FALSE reply the user see a webpage with different content and receives an e-mail with username and password if the reply of the external site is TRUE (as per random generated numbers above)
    is it possible to achieve those functionalities with BC an if not, someone knows if anybody faced a similar project so to read a tutorial or so?
    thanks
    Franco

    what we need to achieve is to send to the external database some data (username and password) to create a user in that application, if the username and password meet the requirements, the webservice send a TRUE / FALSE reply that will tell BC to send to user's e-mail a different message (if TRUE, send the username and password generated by the webform as described in my first message, if FALSE tells the user to resubmit the form, but since the parameters for creating USERNAME and PASSWORD are not directly edited by the user, the FALSE case shall be almost equal to none).
    we need to communicate with external database because the BC webform shall send the data to generate a username/password in the external application
    hope these new infos can help.
    we are really try to understand if a BC webform can send data to an external application through their webservices
    and in addition if it is possible within a webform to generate a random username and password to be included in the webservice XML structure
    if you need more infos we can have a chat on Skype or other ...
    Thanks

  • URL based portlet from external application

    Hello,
    I'm trying to integrate a forms 6i patch 10 application into SSO.
    First, I created an external application, passing it the correct parameters.
    Everything went ok, and I can successfully call it by entering
    "Administer Enternal Application" link on Oracle Portal.
    Now I want to make a portlet from this external application. For that I'm
    using PDK URL Services. So I reused the urlexternalauth provider which is
    included in the latest PDK. The provider.xml is included below. I successfully
    registered the provider, by following the wizard "Register Portlet Provider" on
    Oracle Portal. But when I call the portlet, the html startup file for the form
    is base.htm. When I call the external application through the "Administer Enternal Application" link,
    I get the right html startup file, which is basejini.htm.
    So I need basejini.htm called from the portlet, and not base.htm.
    Thanks,
    Andri.
    provider.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.http.URLProviderDefinition">
         <providerInstanceClass>oracle.portal.provider.v2.http.URLProviderInstance</providerInstanceClass>
         <session>true</session>
         <authentication class="oracle.portal.provider.v2.security.Authentication">
              <authType>ExternalApp</authType>
              <userFieldName>username</userFieldName>
              <userPwdName>password</userPwdName>
              <errorPageMessages>Error Message!</errorPageMessages>
         </authentication>
         <proxyInfo class="oracle.portal.provider.v2.ProxyInformation">
              <httpProxyHost>proxy.br.odebrecht.com</httpProxyHost>
              <httpProxyPort>8080</httpProxyPort>
         </proxyInfo>
    <portlet class="oracle.portal.provider.v2.http.URLPortletDefinition">
    <id>1</id>
    <name>iCorporate</name>
    <title>iCorporate</title>
    <description>iCorporate - aplicacao Forms6i</description>
    <timeout>100</timeout>
    <timeoutMessage>iCorporate time out</timeoutMessage>
    <acceptContentType>text/html</acceptContentType>
    <showEdit>false</showEdit>
    <showEditToPublic>false</showEditToPublic>
    <showEditDefault>false</showEditDefault>
    <showPreview>false</showPreview>
    <showDetails>false</showDetails>
    <hasHelp>false</hasHelp>
    <hasAbout>false</hasAbout>
    <passAllUrlParams>true</passAllUrlParams>
    <inputParameter class="oracle.portal.provider.v2.URLPortletParameter">
    <name>config</name>
    <displayName>config</displayName>
    <value>icorp</value>
    <isMandatory>true</isMandatory>
    </inputParameter>
    <inputParameter class="oracle.portal.provider.v2.URLPortletParameter">
    <name>database</name>
    <displayName>database</displayName>
    <value>server1</value>
    <isMandatory>true</isMandatory>
    </inputParameter>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <showPage class="oracle.portal.provider.v2.render.http.URLRenderer">
    <contentType>text/html</contentType>
    <pageUrl>http://server1.rjo.br.odebrecht.com:7780/servlet/f60servlet</pageUrl>
    </showPage>
    </renderer>
    <securityManager class="oracle.portal.provider.v2.security.URLSecurityManager">
    <authorizType>public</authorizType>
    </securityManager>
    </portlet>
    </provider>

    Andrea,
    Could you tell me if FORMS 6i authentication process is based on cookies? The reason being, URL based portlets SSO feature is primarily driven by External Application's cookies, which act as authentication tokens. Once a valid user information is submitted to the External Application, cookies (if any) are received and stored so that they can be re-used in further connections. A typical flow of events can be summarized as follows :
    At provider level :
    1. Connect to External Application.
    2. Submit user information to url specified by External Application's login URL.
    3. Fetch cookies
    4. Store them for future use.
    At portlet level :
    1. Read cookies fetched through provider, pertaining to this portlet.
    2. Open connection to url specified by <pageUrl> tag in provider.xml
    3. Read content and display in the portlet.
    From the provider.xml, I can see that we are trying to show content given by http://venezuela.rjo.br.odebrecht.com:7780/servlet/f60servlet servlet, which has two parameters called {config and database}. This makes the resulting URL as http://venezuela.rjo.br.odebrecht.com:7780/servlet/f60servlet?config=icorp&database=venezula. I guess when this URL is accessed directly, FORMS servlet will redirect the user to base.htm file. Important point to note here is that when URL based portlet makes connection to the above URL, user information is not directly sent along with the request. Instead, cookies fetched from External Application, if any, are sent. But when the same application is viewed through portal's External Application, user information is directly submitted to the login URL. So, before deciding on something, it is important to know how different is the loginURL specified through portal's External Application details, from <pageUrl> of URL based portlets?
    -aMJAD.

  • How do I register Multiple External Application IDs

    How do I register Multiple External Application ID's in a single WEBCLIPPING provider....

    Hi Java,
    You cannot have multiple External Application associated with a single Provider , you need to register diffrent providers with respective External Applications
    Thanks
    Vineet

  • External system to XI through TCP/IP

    Hi Experts,
    I have a scenario where the external system can send messages thru TCP/IP. That will be mapped CC thru RFC
    which adapter has to be used for this scenario??? ne suggestions??
    Regards,
    Teja

    >>I have a scenario where the external system can send messages thru TCP/IP. That will be mapped CC thru RFC
    All transport protocols are working on TCP/IP network. You need to ask the external system's transport ability. Even File can be ftped through TCP/IP network.
    >>which adapter has to be used for this scenario??? ne suggestions??
    Basic protocols are File and HTTP. If you need synchronous communication with RFC. You can try SOAP or HTTP on the sender side too.

  • Labview was blocked when building communication through TCP/IP

    I am trying to transfer data between a Labview system with Win2k and a RT system on PXI controller through TCP/IP. A problem is that when the Labview program started to build the communication to RT, the other Labview programs are all blocked. Howerver, the other application programs except Labview are running properly.  

    Thank you Mike.
    I am trying to transfer data through TCP/IP and Ethernet. The source is a Labview RT program in a PXI controller, and the receiver is a Labview 6.1 program in a workstation with Win2k, and here we focus on the program in the workstation. Besides the communication program, some other Labview programs are also running in the workstation in the mean time.
    The problem occurred at the beginning of the TCP connection: during the following several seconds after the communication program started, I cannot access any of the Labview programs (no response when click on any Labview program). Meanwhile, I found that the CPU usage and memory usage were in normal level and I can access any other windows application program properly. So it seems that the communication program held up all the LabVIEW programs when it started to build connection. Do you have any idea?
    Pierce

  • Flexiable Communication through TCP/IP or RS-485 using VISA

    I am trying to create a flexiable distributed application that can communicate over RS-485 or TCP/IP visa.  The application has a basic Host / Client(Listener) type of Architecture.  What I would like to be able to do is simply to change my Visa resource name from [Com4] to [TCP::192.168.1.10::3000::socket] and seemlessly change communication protocals.  The problem I am running into is creating a flexiable visa listener.  I tried using the visa events vi's, but I don't know what the syntax of the visa string should be.  Any thoughts or clarifing questions would be apprecaited.

    Hi,
    I am using Compact FieldPoint 2120 with analog I/O to control a robot arm and i am trying to interface a third party device such as a mobile phone (using Java) to program and control the rotation of each joint of the robot arm. I understand this process can be done through TCP/IP or usign DSC software.
    For example:
    Hosting on TCP port (?) and use the syntax
    [newline]::[joint number]::[degree of freedom]::[set to angle in degrees]::
    [arm number] = an ascii value 1 or 2 to determine which arm.
    [joint number] = an ascii number value.
    [degree of freedom] = ascii value x,y or z.
    [set to angle in degrees] = ascii value between 0 and 360.
    The true is that i have no clue how to set up the interface steps and i will appreciate if someone can suggest an easy way of doing the above steps and which software to use. I am currently using LabVIEW 8.20 for building the control model for the robot arm.
    Many thanks
    Bakari

Maybe you are looking for

  • Mountain Lion Mac OS 10.8 degraded my HDTV 1080p display

    I just upgraded to Mountain Lion today on my Mac Mini (2.4GHz, Intel Core 2 Duo - 8GB RAM) which is connected to 40" 1080p HDTV. The display quality degraded. The quality with Lion 10.7 was great. Text was sharp. After this upgrade, it kind of blurry

  • I want to get improved with i5/ 8GB

    I have purchase one Thinkpad X 220 from one individual (Used Thinkpad 35 months old,fairly used).Its configuration is as follows'Intel i5 v Pro' processor,8 GB DDR3 RAM,320GB HDD,Windows 7 proffessional. After getting it I had restored this by using

  • Weblogic 8.1 & Sun Java Studio Creator

    I'm in a new position where I need to deploy web apps created in Sun's Java Studio Creator to Weblogic 8.1, that hits an Oracle 8i back end. I'm curious to see if anyone on this board is using a similar mix of technologies. If so, what drivers are yo

  • MacBook Pro is not starting up.

    I can turn my macbook pro on but it doesn't start up. I did a hardware test and it said 4cdv/1/40000003:videocontroller. Apparently the hardware test failed with an error. Does anyone know what to do ? Thank you in advance.

  • Adobe tv video not playing

    running os: windows 7 x64 tried on browsers: firefox v3.6.13, ie8 x32, safari 5.0.3 flashplayer v 10.2.152.26 - have uninstalled and re-installed a number of times specific for all three browsers, has installed correctly. atv player v 2.1.0340 The pr