Asynchronous Communication fails

Hi,
I am using Visual Basic.NET 2003 and measurement studio together with National Instruments NI-VISA(TM) Software for Windows. Version 3.0.
Synchronous communication with GBIP instrument (ESG E4438C from Agilent) works fine but I have a problem with asynchronous I/O.
I always get an error like "Unable to queue the asynchronous operation (usually due to the I/O completion event not being enabled or insufficient space in the session's queue)."
What went wrong?
Here is my code:
Private Sub btGo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btGo.Click
AxCWVisa.RsrcName = "visa://149.204.55.39:3537/GPIB0::19::INSTR"
AxCWVisa.Open()
AxCWVisa.WriteAsync("*idn?")
End Sub
Private Sub AxCWVisa_IOC
ompletion(ByVal sender As Object, ByVal e As AxCWVisaLib._DCWVisaEvents_IOCompletionEvent) Handles AxCWVisa.IOCompletion
MsgBox("IO completed")
End Sub
I have tried to Enable Events
AxCWVisa.EnableEvent(CWVisaEventTypes.cwvisaEventIOCompletion)
but all without success.
Thank you for your help,
Markus

Hi Dan!
Thank you for your answer.
I have tried again the EnableEvent method but this fails. Here is my code:
AxCWVisa.RsrcName = "visa://149.204.55.39:3537/GPIB0::19::INSTR"
AxCWVisa.Open()
AxCWVisa.EnableEvent(CWVisaEventTypes.cwvisaEventIOCompletion)
After calling the EnableEvent method I get an exception with the following message:
"Additional Information: Configuring Device
The specified mechanism is not supported for the given event type."
Since this is visaconnection across a network I have tried the asynchronous access at the local maschine - but with the same error message. So the network access should not be the problem.
Using NISpy I get the following Info:
1. viOpenDefaultRM (0x001AEC58)
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:12.838 Call Duration: 00:00:00.421
Status: 0 (VI_SUCCESS)
2. viParseRsrc (0x001AEC58,"visa://149.204.55.39:3537/G...",1 (0x1),0 (0x0))
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.259 Call Duration: 00:00:00.110
Status: 0 (VI_SUCCESS)
3. viClose (0x001AEC58)
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.369 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
4. viOpenDefaultRM (0x001AEC58)
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.369 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
5. viOpen (0x001AEC58,"visa://149.204.55.39:3537/G...",0 (0x0),0 (0x0),0x001DD1E0)
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.369 Call Duration: 00:00:00.219
Status: 0 (VI_SUCCESS)
6. viSetAttribute (0x001DD1E0,0x3FFF001A,2000 (0x7D0))
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.588 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
7. viSetAttribute (0x001DD1E0,0x3FFF0005,5000 (0x1388))
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.588 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
8. viSetAttribute (0x001DD1E0,0x3FFF0007,0 (0x0))
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.588 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
9. viSetAttribute (0x001DD1E0,0x3FFF0177,-1 (0xFFFF))
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.588 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
> 10. viSetAttribute (0x001DD1E0,0x3FFF0021,9600 (0x2580))
> Process ID: 0x00000A40 Thread ID: 0x000009D8
> Start Time: 09:54:13.588 Call Duration: 00:00:00.000
> Status: 0xBFFF001D (VI_ERROR_NSUP_ATTR)
> 11. viSetAttribute (0x001DD1E0,0x3FFF00B3,2 (0x2))
> Process ID: 0x00000A40 Thread ID: 0x000009D8
> Start Time: 09:54:13.588 Call Duration: 00:00:00.015
> Status: 0xBFFF001D (VI_ERROR_NSUP_ATTR)
Any idea what went wrong?
Thank you for your help!
Markus

Similar Messages

  • Is in PI7.1 possible asynchronous communication between SOAP and ABAPProxy?

    Hi,
    when method execute_asynchronous has disapeared since XI/PI 7.1, is
    there still way how to use ABAP proxy in asynchronous way?
    We need to build asynchronous connection SOAP->PI->ABAP_Proxy.
    In PI, both interfaces are defined as asynchronous (outbound for SOAP and
    inbound for ABAP Proxy).
    Despite of this fact, when message is sent, it is processed
    synchronous way.
    I have set breakpoint in my implementation of method for ABAP Proxy
    message processing. When message is sent and breakpoint is reached,
    whole connection stays open (between SOAP and PI and between PI and
    ABAP Proxy) and waits for processing method (the breakpointed one) to
    return. Only when processing method returns, is connection finelly
    closed.
    If i understand it correctly, this is synchronous behavior. In
    asynchronous behavior, as i understand it, should be connection
    between PI and ABAP Proxy of application server closed immediately
    after message has been delivered. This mean before my processing
    method is even called.
    The same could be said about SOAP and PI communication. Connection
    should be closed immediately after PI has received message. From
    definition of asynchronous communication of PI is obvious, that PI
    should receive message correctly and close connection to sender system
    even when receiver is unreachable. It should deliver message later
    when, receiver system is back on line. So why it keeps connection to
    sender system open while it waits for receiver?
    Why is this happening, when both interfaces are defined as
    asynchronous? Could be the reason for this, if APPLICATION
    ACKNOWLEDGEMENT is set on by default? If so, how can i change it
    to SYSTEM ACKNOWLEDGEMENT, or disable it at all?
    Or is this kind of asynchronous communication even possible since
    XI/PI 7.1 ?
    Processing of message we are sending can take some time, so we dont
    want connection pending open while waiting for finish of
    processing. Thats the reason why we have chose asynchronous model to
    use.

    Quote from How to Use the J2EE SOAP Adapter:
    "If you select Best Effort, the Web service client will receive a response
    message in the SOAP body. Otherwise, the Web service client will not receive a
    response message if no error occurs."
    "if no error occurs" - that is the problem. In either case he still
    waits if some error occure or not. I dont want it. Once PI has
    received message, I want the connection with sender to be closed. If
    there will be error in communication between PI and reciever, I want
    to see it only in PI log. That mean no notification to sender to be
    send about that error.
    Is that possible?

  • Synchronous and asynchronous communication tcp/ip

    Hello all:
    it is common to make synchronous communication between client and server by socket tcp/ip. But I'm needing now to establish an asynchronous communication. I mean:
    0.- The server is a multithread process that has the property to establish one connection for each client that wants to send him messages.
    1.-The client process sends message permanently to server.
    2.- The server processes the request, but don't have to respond to the client.
    3.-Only when the user want it, he sends messages to client by web application reusing the same communications that are opened between client and server process.
    I hope to explain my problem.
    Regards.

    Hello all:
    it is common to make synchronous communication
    between client and server by socket tcp/ip.A socket tcp/ip can be synchronous or asynchronous or both.
    But I'm needing now to establish an asynchronous
    communication. I mean:Is this purely asynchronous or can it be either.
    0.- The server is a multithread process that has the
    property to establish one connection for each client
    that wants to send him messages. Fine, any mode would be okay.
    1.-The client process sends message permanently to server. By permanently do you mean;
    - it is deleted from the client,
    - it is store on the server is a write once read many media. i.e. it is permenetly on the server and cannot be deleted/altered.
    2.- The server processes the request, but don't have to respond to the client.The server should never have to respond to the client. e.g. the server can go down so the client nees to live with the possibility it won't get a reply.
    Synchronous or Asychronous describes how the reply is send. No reply means it is neither.
    3.-Only when the user want it, he sends messages to client by web application reusing the same communications that are opened between client and server process.Are you using socket or a web application server ie. HTTP.
    You wan to be able to reuse the connection. You can do this in any of the case mentioned so far.
    >
    I hope to explain my problem.I hope you will explain your problem too.

  • RFC Sender to SOAP receiver through asynchronous communication

    Hi all,
      I have a requirement where I need send data from SAP HR system(through RFC) to webservice asynchronously.  For this I preferred RFC as a sender and SOAP as a receiver. Can anybody tell me whether it could be possible because I have gone throught the blog
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    accordingly I did the configuration and then i gone through the blog
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    and
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    in which they are communication synchronously.
    But in my case i need to communciation asynchronously.  so when i am creating Interface mapping system is not able to pickup my mapping program.  I mapped source message as RFC request with Target structure.
    Please let me know if asynchronous communication is possible how i have to may between RFC and SOAP. 
    Regards,
    Dhill

    Hi Satish,
    Thank you very much it is working fine now.  But I need some more clarification that for this scenario to execture we need a report from SAP side.  Instead is there any other method for XI to receive data.  I think it could be possible through proxies if yes can you send some link which would be very useful for me.
    Otherwise is there any other way to do it by avoiding to write the code in abap but to call the RFC.
    Regards,
    Dhil.

  • Asynchronous Communication - R/3 - XI

    I'd like to get your opinion on the best method of Asynchronous communication between R/3 and XI given the following assumptions:
    •     ABAP Proxies are not an option. SAP R/3 is version 4.6C with Basis 4.6D
    •     Standard IDocs are only available for a few of the interfaces (10%)
    Options:
    1.     Standard IDocs when available and custom IDocs for other interfaces.
    Pros
    •     Guaranteed one-time delivery
    •     Record of data sent from R/3
    •     Performance is manageable at multiple stages
    •     Excellent monitoring, and retry ability
    Cons
    •     Requires creating custom IDocs
    2.     Transactional RFCs
    Pros
    •     Guaranteed one-time delivery (with tRFC)
    •     Faster to implement than custom IDocs
    Cons
    •     No record of data sent from R/3
    •     Performance isn’t as manageable as with IDocs
    •     Limited ability to monitor and retry
    Points will be rewarded...
    Thanks,
    Jesse

    Jesse,
    I think the best option is to use RFC adapter for your requirements where the standard IDoc is not available.
    The reason for this is, someone needs to develop ABAP function modules for RFC as well as IDocs. If it is a custom IDoc, then you have to create custom IDocs and all of its components (segments, IDoc types, Message types, partners, process codes etc.) to execute a function module which is a custom code. Instead of going through all this hassle, better use RFCs.
    In some cases you need to use IDoc where you want to reprocess the data instead of getting it from the source again.
    If you need more information let me know.
    regards
    Shravan

  • Asynchronous reserveFinally failed

    We have implemented an NWDI (NW2004s SP10) server, the problem we experience is caused due to an old test configuration in the begin of the project. The default trace is full of the following errors:
    asynchronous reserveFinally failed
    I know where this error is comming from and how to solve it. The problem however is that the namereservation list shows four entries on the state FINALIZE_PENDING for a server 'http://FQDN:443'. And that is where our prolem lies... when you try to temporary add this URL to the nameserver list (on the URL https://FQDN/dtr/system-tools/administration/NameServerConfiguration) then you get the error message:
    Name Server data is invalid. Error: Precondition invalid-name-reservation-data check failed.: CIM_ERR_FAILED: HTTP error: Invalid begin of response [expected: 'HTTP', found: '(']
    So the problem is that it is pointing to an http URL on port 443 :S.....
    Does anyone knows if it is possible to delete those namereservation entries? They are absolutely not necessary anymore but need to be removed since we are experiencing problems as long as these name reservations stay open...
    Thanks in Advance,
    Nico van der Linden

    Well just to give an update (in case other people experience the same problems).
    According to the there is an bug in all NWDS versions below SP12 with regards to using an SSL connection to the nameserver. Instead of reserving names for https://<fqdn> it registers them for http://<fqdn>:443 (so the http protocol instead of the https protocol). This caused all our name reservations to get stuck on the state Finalize_pending.
    SAP recommended to use NWDS SP12 instead and confirmed that it was supported to use NWDS SP12 in combination with NWDI and portal on SP10. I downloaded NWDS SP12 and tried to connect to the DTR but I was not able to get an connection at all, no error and no response :S
    So I went back to SAP and (again) they confirmed that this is caused due to an bug in NWDS in combination with SSL connections. The Namereservation problem is solved but instead they gave a free bug back with regards to SSL connections to the DTR........
    SAP will provide an patch for NWDS SP12 to us, but we decided to stay on NWDS SP10 on the landscapes where the portal and NWDI are also on SP10 and just use HTTP connections for name reservations for a while. We enable https connections for the namereservations on all landscapes that are on SP12 and then we apply the patch that SAP will provided.
    I would recommend everyone NOT to turn on SSL connections to the nameserver when you are on NWDS below SP12. All namereservations that were on an incorrect state had to be deleted with an SQL delete statement directly on the database tables since SAP does not provide another way for it. After that we also had to delete all our DC's and recreate them again to make the names reserved again....
    Hope that this makes everything clear, otherwise just let me know.
    Cheers,
    Nico van der Linden

  • Question on Asynchronous Communication

    Hi all,
    Tell me which of this is true
       In SAP XI in async communication
    1. We don't have a response message
    2. We have a response message but we don't get it immediately(in that case how to check for this message)
    I am asking this question because in normal programming(C#, Delphi etc) usually async communication means that the server will respond after it is done with processing  and then throw a event which the client catches it and provides a handler for that event.

    Hey Sonia,
    your comment totally makes sense, because literally asynchronous means "not at the same time". So, an asynchronous communication should mean a message which is sent but whose response is not sent right away.
    Also, strictly speaking, in any EAI-like program, to develop an asynchronous communication means to develop two 1-way communication. Of course, for a server system to send back information to a client system, there must be, in some point of time, an event generated by client system requesting that information (apart for some exceptions, such as the scheduled automatic scenarios, for example).
    Hence, in EAI typical vocabulary, the action of developing an asynchronous communication means developing 1-way integrations (1 or more).
    Regards,
    Henrique.

  • RFC Asynchronous communication

    Hi Experts,
    I am doing a scenario in which data is passed using RFC via Proxy to PI and from PI to JMS queue(Target system).
    My problem here is i am new to SAP PI 7.1  and i have never worked on RFC before.
    Can anyone suggest some blogs so that i can refer and understand the RFC Asynchronous communication process.
    Thanks in Advance

    Hi,
    we cannot suggest blogs as you need to try the search functionality first
    but once you get a more detailed question which cannot be answered by using search
    come back to us and we will gladly help you ok ?
    thank you,
    Regards,
    Michal Krawczyk

  • J2EE asynchronous communication protocol

    Hi
    In my project, im supposed to program software agents and they are suppose to communicate to each other asyncrhonously. I need some directions to it as im quite new to J2EE stuffs and many of the java components.
    eg like RMI, JMS, ...
    Thanks

    JMS (Java Message Service) is a standard for asynchronous communication via a message queue.
    See http://java.sun.com/products/jms/index.html
    Jesper

  • Synchronous and asynchronous communication

    Hi all
    i am very new to jms and java. I have the task of developing an application for communication for a global company. The application must support most if not all of the following features:
    -synchronous messages
    -Asynchronous ('offline') messages
    -Authentication/identification
    -Saving a log of all conversations
    -Conference rooms
    -Secure (encrypted) communication
    -User information database (e.g. postal addresses, email addresses, -pictures, etc)
    -Sophisticated GUI
    -Resilience to network breakdown
    -Multimedia messages (styled text, pictures, file attachments)
    -Shared document editing
    -Shared whiteboard facility
    what can I use to develop this application...will JMS be able to do this??
    thank you

    This appears to be more like a user coomunication application. I would look for the architecture of commonly available instant messaging applications, such as MSN, Yahoo, Jabber.
    I would think of JMS to be used for transmitting business messages, like stock quotes, etc. Creating a PTP connection or a Topic in a pub-susb message would be an over-kill for such a usage scenario.

  • How will I know, if the asynchronous message fails in XI? Acknowledgment?

    Hi guys,
    I have a FILE->XI->FILE scenario and sometimes the inbound message failsin XI (bad structure or whatever esle).. Is it possible to receive some message, that the original message failed?
    I have read topics about acknowledgments, but I didn't find it out, where to configure it.
    Could you give me some advice, how to set it up in my scenario?
    Thanx, Peter

    Peter,
    first go to the Integration Builder: Configuration
    access by, the design -> Environment -> Integration Builder(Configuration).
    1. Go to Scenarios
    2. Create a new Configuration Scenario by rightclick and NEW
    3. choose language and save
    4. on the left tree choose your created scenario
    5. choose Receiverdetermination
    6. Enter Service = sender System
    7. Choose Interface = your Interface File(Structure) from Design
    8. Choose Namespace if not filled
    9. create
    10. open the new Receiverdetermination
    11. tab"Configured Receivers" enter Service = receiving System and maybe a condition
    12. save
    13. Tab"Configuration Overview for Receiver Determination" open the new Receiver Service. The should be a text like "not defined".
    14. click at thew first symbol(Interface Determination) Dropdown and select new
    15. go on with create
    16. choose Inbound Interface and Mapping
    17. save and close
    18. Goto ReceiverAgreement and click at NEW from the symbol-line.
    19. go on with create
    20. enter sender Service and communication channel
    21. save, activate and good luck
    I hope it helps you to setup your communication.
    Feel free to contact me if you´re having problems.
    Gordon

  • Communication Failing with Corrupted Chars . Sql Server 2000 and AS400

    Hi Experts,
    I am facing this below error after 9 yrs. sql server 2000 and As400 on prod server. while on dev and stage it's running properly. Here username is ABCD, while it's showing BCD
    The OLE DB provider "MSDASQL" for linked server "" reported an error. Authentication failed. [SQLSTATE 42000] (Error 7399) Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "xxxxx".
    [SQLSTATE 42000] (Error 7303)  OLE DB provider "MSDASQL" for linked server "" returned message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed".
    [SQLSTATE 01000] (Error 7412)  OLE DB provider "MSDASQL" for linked server returned message "[IBM][iSeries Access ODBC Driver]Communication link failure. comm rc=8001 - CWBSY0001 -
    User  BCD on server does not exist, Password length = 8, Prompt Mode = Never, System IP Address = "xxxxx". [SQLSTATE 01000] (Error 7412).  The step failed.
    Here ABCD user is also disabling/locking the profile on AS400 server.
    When we tried on Dev server, linked server through DSN working properly. Last time when it appeared 2 yrs ago, it resolved automatically. but now more than 10 days passed and still Failing.
    Please Guide Me.
    Regards,
    Manish

    So this setup has worked for nine years, and all of a sudden stopped working with this error message? Does not look trivial...
    What does Here ABCD user is also disabling/locking the profile on AS400 server mean? Is ABCD able to log in directly on the AS400 box?
    One possibility is that the user ABCD has been dropped or disabled, and then there is a bug in the ODBC driver where the first character of the username is distorted in the error message. I note that there are two spaces between "User" and "BCD".
    The other possibility is that the AS400 is receiving a login attempt from BCD (or something that ends in BCD with an invisible leading character). This sounds very difficult to troubleshoot...
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Seed Demo Community Failes

    Hi Im new To the BPM and SOA suite. I currently have it running however now Im required to configure my server for a tutorial. Im trying to seed a demo community and Understand very little what has to be done. here what ive managed to do:
    go to :
    Cd c:\Oracle\DemoCommunitySeedApp
    c:\Oracle\DemoCommunitySeedApp> setAntEnv.bat
    Failed: "C:\Oracle\Middleware\jdev_bpm11g\jdk160_18"\lib\tools.jar does not exist
    PLease set your JAVA_HOME to a JDK home.
    I then set JAVA_HOME from environment variables to
    C:\Oracle\Middleware\jdk160_24
    I run the code and the same Failed line of command appears how do I go about it??? how can I make it run??
    I actually have no idea where to begin with were do I go into to configure the server? the console? or same place where I configured the domain?
    thanks in advance!

    Hi
    1. Inside this folder c:\Oracle\DemoCommunitySeedApp, or search here for a file named "SOATestDemoApp.ear".
    2. Start your SOA Domain. If you have Admin and Soa ManagedServer. Start both the servers. Incase if you have only one AdminServer with soa also deployed, just start admin server.
    3. Login into Weblogic Admin Console using something like http://youradminhost:adminport/console. Login with domain username/password. On left side, click on Deployments and on right side, click on Install and follow the screens to install the above "SOATestDemoApp.ear" app to the SOA Managed Server. This is important, as it has to be deployed on SOA Server only. If you have only one admin with soa modules, then deploy to that admin server only. Make sure you hit Activate button or look for this file in deployments list on right side with status as Active.
    4. Open a new browser, type this below url. Again host, port should be the one that has soa modules deployed.
    http://soahost:soaport/integration/SOADemoCommunity/DemoCommunitySeedServlet
    Select the xml file and hit the button, and you should be all set. Go back to console, and under Security -> myrealm -> Users and Groups, you should see all the Demo users and groups.
    NOTE: There is no need to run ant script or recompile it, if you already have the EAR file. Read the readme.txt file that came with the zip file.
    Thanks
    Ravi Jegga

  • Asynchronous communication using HSDIO

    All-
    I am trying to create an application for asynchronous serial communication using a PXI-6541 HSDIO card.  I have one RX and one TX line to/from the device I'm trying to communicate with. The device uses 25-bit words with the first 3 bits representing "labels" or commands.  There are only 7 labels that can be transmitted to the device and 2 that the it uses in response.  I currently have a sniffer set up so I can monitor the 2-way communication.  I am oversampling the data in WDT for viewing purposes but I am having a hard time extracting the data into something useable.  Has anyone used HSDIO for asynchronous communicaton and if so, can you send me some examples on how you triggered the data?  
    The serial bus is similar to Arinc429 http://en.wikipedia.org/wiki/ARINC_429 if that helps.  Any suggestions are appreciated.  
    Thank you!
    -Jason

    I was wondering, have you taken a look at the built-in examples under LabVIEW»Help»Find Examples»Browse»Hardware Input and Output»Modular Instruments»NI-HSDIO (High-Speed Digital I/O)? Under the Demo folder, there's one example called Dynamic Acquisition Hardware Start Trigger.vi. It has a pattern match start trigger option. 
    Just a thought...
    Nathan S.
    Applications Engineer
    National Instruments

  • ProcessChain-asynchronous execution fails but synchronous execution pass

    Hello Experts,
    I am having a problem in the execution of our process chains in Prod. When executing thru rspc, Process chain stops at intermediate point & does not execute and status is red. When I execute it synchronously, it passes. Not sure why it is failing when running thru rspc. Looking at the logs in SM37, I only see logs for the non-synchronous executions and the status of the individual steps in PC is canceled and their log shows "Job or process BI_PROCESS_COMPRESS, waiting for event   is unknown" as the error for all steps. What is the difference b/w asynchronous and synchronous execution, and what could be the reason for the above problem. The process chains were running fine until recently.
    Some more info:
    In the rsprocess log, the actual_state has 'J- Framework error upon completion' and the PC runs has meta_api as blank (it was 'X' until recently).
    Thanks.

    Antonio,
    The code has some problem ...
    Change
    if (descriptor = tpacall(service_name,
    (char *)sendbuf,
    sendlen,
    0) == -1)
    To
    if ((descriptor = tpacall(service_name,
    (char *)sendbuf,
    sendlen,
    0) )== -1)
    It should be ok.
    Wayne
    <Antonio Rodriguez> wrote in message news:[email protected]..
    Hi,
    I have a problem with asynchronous messages. When my program calls
    tpacall() this function always returns 0. This is a invalid descriptor to
    tpgetrply() and my program fails. If I use TPGETANY flag then my program
    works well, but I would like to use the descriptor.
    Why tpacall function always returns 0? Can I know when the reply is
    available without calling tpgetrply function? While the reply isn't
    available, my program has to continue its execution. Does tpgetrply function
    block the program execution?
    My Tuxedo version is: BEA Tuxedo, Version 8.0, 32-bit, Patch Level 306
    I find enclosed some program code line
    Thanks,
    ANTONIO.
    int descriptor;
    FBFR32* sendbuf,recvbuf;
    long sendlen,recvlen;
    << call tpinit() >>
    << sendbuf = allocated with tpalloc() >>
    << recvbuf = allocated with tpalloc() >>
    if (descriptor = tpacall(service_name,
    (char *)sendbuf,
    sendlen,
    0) == -1)
    userlog("tpacall() fails");
    return -1;
    if (tpgetrply(&descriptor,
    (char**)&recvbuf,
    (long*)&recvlen
    ,0) == -1)
    userlog("tpacall() fails");
    return -1;
    tpfree(sendbuf);
    tpfree(recvbuf);
    << call tpterm() >>

Maybe you are looking for