Payload Structure when composite invoked from java

Can any one please let me know how the payload structure should be when composite is invoked from java program.
Any sample would be of great help
thanks
Naga

you need to construct the payload - according to your wsdl structure ..
that is the part name of the <input> message will be the key passed into the NM payload - and the element that is referred from that part will be the value of the map .. e.g.
your message might have a part named "payload" and refers to an element called "employeeRequest" - in the namespace urn:blah
so you would set into the payload map ( "payload", "<employeeRequest xmlns=\"urn:blah\"/>")
hth clemens

Similar Messages

  • OSB: When does invokation from http Business Service result into an error

    Hi,
    I want to know when does invokation from http Business Service in OSB result into an error.
    I have a http based business service which is calling an external service on http url.
    I want to know when this business service is invoke/tested, what are the cases in which the invokation will result into an error.
    What does OSB read to cause the invokation an error.
    I am aware that it reads the http-response-code. If its not 200 or 0, it will result into an error.
    Want to validate this understanding and also want to know what are the other case that will cause this happen. Is it by any way dependent on body content?
    Please help. Please share any good links for the topics related to this.
    TIA.
    Regards,
    Ashish

    Hi,
    Some info here...
    http://svgonugu.wordpress.com/2011/06/15/fault-handling-in-osb/
    Cheers,
    Vlad

  • How to access data structures in C dll from java thru JNI?

    We have been given API's( collection of C Functions) from some vendor.
    SDK from vendor consist of:
    Libpga.DLL, Libpga.h,Libpga.lib, Along with that sample program Receiver.h (i don't know its written in C or C++), I guess .C stnads for C files?
    Considering that I don't know C or C++ (Except that I can understand what that program is doing) & i have experience in VB6 and Java, In order to build interface based on this API, I have two option left, Use these dll either from VB or Java.
    As far as I know, calling this DLL in VB requires all the data structures & methods to be declared in VB, I guess which is not the case with Java (? I'm not sure)
    I experiemnted calling these function from Java through JNI, and I successfully did by writting wrapper dll. My question is whether I have to declare all the constants & data structures defined in libpga.h file in java, in order to use them in my java program??
    Any suggesstion would be greatly appreciated,
    Vini

    1. There are generators around that claim to generate suitable wrappers, given some dll input. I suggest you search google. Try JACE, jni, wrapper, generator, .... Also, serach back through this forum, where there have been suggestions made.
    2. In general, you will need to supply wrappers, and if you want to use data from the "C side" in java, then you will need java objects that hold the data.

  • Different when BPEL invoked from Console & from a JSP

    Hi All,
    I have a very Simple BPEL Process which, which when invoked from the BPEL Console is working fine, but when invoked from the JSP, throws a "SelectionFailure" Fault in the Assign activity.
    Can anyone help?
    Thanks
    Chandra

    In the audit trail, under the "receiveInput" activity, I'm able to see the values that I passed as the Input, but in the next "assignActivity", it throws this selectionFailure Fault saying the variable value is empty.
    My input is only 1 value and the XML is pretty straight forward.

  • "ReferenceError: "myIpAddr"  is not defined, when call JavaScript from java

    Hi developers,
    My java application was trying to issue a http request via proxy auto-config. So, I did below jobs
    1. Read URL of *.pac from registry
    2. Call FindProxyForURL from java, the code is like below
                   ScriptEngineManager factory = new ScriptEngineManager();
                   ScriptEngine engine = factory.getEngineByName("JavaScript");
                   engine.eval(autoProxyScript);
                   Invocable inv = (Invocable) engine;
                   Object obj = inv.invokeFunction("FindProxyForURL",
                             "http://java.sun.com/",
                             "java.sun.com");
    However, I got "ReferenceError: "myIpAddress" is not defined
    I can not change the script on server to add a function like "myIpAddress", I am wordering why IE or mozilla can call it successfully and get proxy server, while Java failed to do that.
    I got a ugly solution by calling "pacparser" by jni. But I really hope I can get a better solution.

    A .pac file is a JavaScript, but it requires some functions to be defined in the executing context to work (i.e. you must define those).
    From the example on the Wikipedia page there's at least "shExpMatch" and "isInNet". "myIpAddress" seems to be another such candidate.

  • Scrip Error when Action invoked from Bridge Image Processor

    I am running Photoshop CC and while I can create a new simple Action and execute it successfully, if the same Action is invoked from the Image processor in Bridge, the Action fails witha script error and messaeg "Sorry, I could not proecess the following file: xxxxxxxxxxxx"  In CS6 this used to be related to History entry size  but it is not the same in CC.  I can execute other actions but NOT the one I just created, no matter how simple it is.  Help! 

    After renew settings in preferences the basic set from PS is active. Go trough it and look around what you can use, explore it.
    Most important is scratch disk setting, ammount of RAM and I find it useful to change the cursor setting to the last checkboxes.
    Read the manual that came with your copy and or try one of the thousands tutorials that are available either free or for sale. There are very good DVD's that shows you the screen from the teacher on your own screen and so you can see what he or she does. Total Training is a good start but there are others.
    start here and find your way: http://www.adobe.com/training/

  • Passing values to ABAP/JAVA  webdynpro appl. when workitem invoked from UWL

    Hai,
    We are using universal worklist for invoking a workitem. The workitme may trigger a ABAP/Java based webdynpro application. I have registered the tasks associated with the workitem in universal worklist.
    I have few doubts in the integration part,
    1. When a workitem is clicked in UWL, I want to get some values from the workflow container and show it on the webdynpro application. In the webdynpro application I can call a function module to get the values from workflow container by passing in workitem id.How can I pass a workitem id to webdynpro application when a workitme is clicked.
    2. After the user open the workitem a webdynpro application is shown on the screen. Lets assume this screen is having "Approve", "Reject" and "Exit" button. When this button is clicked how to pass that information to workflow so that the workflow flow its paths.
    Please let me know how to do this.
    Thanks & Regards,
    H..K.Hayath Basha.

    Hai Chintan,
    I checked the blog, and found the below code,
    workflowrawdata =
        wd_context->get_child_node(
              'WORKFLOWRAWDATA' ).
      CALL METHOD
                  WORKFLOWRAWDATA->GET_ATTRIBUTE
             EXPORTING
                     NAME   = 'WI_ID'
             IMPORTING
                      VALUE  = wi_id.     
    I have the following doubts in the code,
    1. Where I have to put this code,
    2. Using which data element or type I have to declare, "workflowrawdata".
    3. Should I have to declare "WI_ID" in parameter tab of Webdynpro application.
    4. In webdynpro application what I did is,
    a. In the context of component controller, i have created attributes to store workflow id, and some attributes to store the value from workflow container.
    b. I created a view and in view context i have created attributes to store workflow id, and some attributes to store the value from workflow container.
    c. I created some UI elements in the view and binded that UI elements with view context.
    d. I binded view context with the context of component controller.
    e. I created a window and in the view context i have created attributes to store workflow id, and some attributes to store the value from workflow container.
    f. I did context mapping between window context and component controller context.
    g. I added the view to the window.
    h. I created a inbound plug with name "START". This creates a method called "HANDLESTART" to this method I added a importing parameter named "WI_ID" and added the below code,
    data : lo_node               type ref to IF_WD_CONTEXT_NODE,
           l_cont                 type standard table of swr_cont,
           l_cont_line            type swr_cont,
           rc                     type sy-subrc,
           l_wi_id                type sww_wiid,
           l_object               type SWOTOBJID,
           lv_workitem_attributes type swr_wihdr.
    call method wd_context->get_child_node
         exporting
           name = 'WORKFLOWRAWDATA'
         RECEIVING
           child_node = lo_node.
    lo_node->set_attribute( value = wi_id name = 'WI_ID' ).
    l_wi_id = wi_id.
    Please let me know what else i have to do to get the workflow id in ABAP-Webdynpro application.
    Regards,
    H.K.Hayath Basha.
    i.

  • UnsupportedDataTypeException when sending mail from Java application

    I try to get the Java Mail API running. I'm able to compile all sample programs delivered with the API but when I try to run e.g. msgsend, msgsendsample or a sample that I found in this discussion (zmail from zakir_sh), I always get the same error:
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.MessagingException: IOException while
    sending message;
    nested exception is:
    javax.activation.UnsupportedDataTypeException: no
    object DCH for MIME type text/plain; charset=us-ascii
    Does anybody has the same problem? What's going wrong?

    Initially, I too had difficulty with JavaMail, mainly because I did not read the documentation carefully enough.
    I bypassed msgsend, etc. and wrote a very basic program to send mail; fired up my dial-up-connection and everything worked beautifully.
    Try the same. If you don't succeed, post your code here.
    Good luck.

  • ORA-01804 when calling function from java client

    Hi All,
    we changed a PL/SQL-function that is called from a java client from using sysdate to localtimestamp. The function works fine in TOAD, but when called from the java client ist throws an ora-01804: failure to initialize timezone information.
    Any suggestions?
    Alexander

    The change was only made to a local variable in a function that was called from the original function that got the parameters from the java client.
    I changed it from localtimestamp to systimestamp and it works fine.
    Do i have to make any settings about the time zone in the jdbc thin client ?

  • How to display UTF - 8 when genereate excel from java

    I use Jsp to input chinese words as UTF-8, and store them to Oracle. When I display these words in Jsp, there is nothing wrong. But if I generate Excel through servlet, these words display as "???e????", how can I resolve this problem?
    Thank you!!!

    What library are you using to generate xls files? Then find that library's support fora.

  • Passing a structure from Java to PL/SQL Procedure

    Environment: Oracle DB, Tomcat/Apache
    How do we pass a structure (Table Record Type) from Java to a PL/SQL Stored Procedure?
    We are doing JSP-->JavaClass/Bean to communicate to DB. We have an existing PL/SQL packages/Procedure to insert records into table (These procedures have record types as in/out parameters). So is there a way to call these from Java?
    Thanks in advance.
    Ramesh

    Oracle9 i JDBC Developers Guide and Reference(page 21-16):
    It is not feasible for Oracle JDBC drivers to support calling arguments or return
    values of the PL/SQL RECORD, BOOLEAN, or table with non-scalar element types.
    However, Oracle JDBC drivers support PL/SQL index-by table of scalar element
    types. For a complete description of this, see "Accessing PL/SQL Index-by Tables"
    on page 16-21.
    As a workaround to PL/SQL RECORD, BOOLEAN, or non-scalar table types, create
    wrapper procedures that handle the data as types supported by JDBC. For example,
    to wrap a stored procedure that uses PL/SQL booleans, create a stored procedure
    that takes a character or number from JDBC and passes it to the original procedure
    as BOOLEAN or, for an output parameter, accepts a BOOLEAN argument from the
    original procedure and passes it as a CHAR or NUMBER to JDBC. Similarly, to wrap a
    stored procedure that uses PL/SQL records, create a stored procedure that handles
    a record in its individual components (such as CHAR and NUMBER) or in a structured
    object type. To wrap a stored procedure that uses PL/SQL tables, break the data
    into components or perhaps use Oracle collection types.

  • Ask toolbar wont let me open new tabs, got it from Java even when I unchecked it.

    You need to check out when an update from Java. It ask to to install Ask. I unchecked it and it still installed. Then wreaks havoc to Firefox.

    To remove the Ask toolbar, try here:
    Tools menu > Add-ons > Extensions category
    If you have a Disable button but not Remove or Uninstall button, you might need to use the Windows Control Panel to uninstall it.
    By the way, your post shows Firefox 3.6.6, which is an insecure version. You should update at least to 3.6.18. You can do that using Help > Check for updates.
    If you don't have 3.6.6, please indicate which version you actually have.

  • Invoking methods in C++ from Java

    I'm invoking the Java Virtual Machine from my C++ program like is described here: http://java.sun.com/docs/books/tutorial/native1.1/invoking/invo.html
    So, I run my C++ program (let's call it C), C invokes the JVM and starts a Java program (let's call it J). C can now invoke methods in J. Now I want J to invoke a method in C. Is this possible?

    Yes it is.
    However your C code that you want to invoke from java must be defined as "native" - that is, it is defined as the implementation for java methods that are declared native.
    The possibly most confusing part is where to put the C code and how to make the java-C linkage.
    o You can put the C code in a DLL, and use a "loadLibrary" call to make it available.
    o Alternatively, and perhaps more likely, your original C/C++program can make "registerNative" calls to the JVM to identify to it the native implementations.

  • Invoking unix executable from java

    How do I capture the RETURN VALUE from the Unix process (executable) invoked from java program

    After using Runtime.getRuntime() , and using runtime.exec(ProcessName), You get a Process object you can use waitFor() method of process. After that call process.getInputStream() and encapsulate in DataInputStream then onwards u can use readLine method to get value it is returned.
    S.M.Reddy.

  • Can external ADF application write to BPM Payload structures?

    Hi all
    New to BPM and trying to understand the best practices here.
    We have Oracle BPM 11.1.1.6.0.
    We have an external ADF application that will be used for online data entry, that comes in via public user. This data then needs to be reviewed and approved/rejected by the internal users and for this we are using BPM interface.
    I have many concerns implementing above scenario in BPM
    a) Can we login to BPM workspace via ADF application? If so, can you experts share with us some examples to look at?
    b) We dont want to use temp tables in the database, when user is doing online entry. We need to push this into BPM payload structures, when a user saves the data partially. When he does submit for approval, we need to initiate a task on the BPM side(for the reviewer). Is this possible? , especially saving the data into BPM payload structures from ADF application? Is this recommended or a good practice? Is there an example or how this can be achieved?
    I know this is a long list of questions, but going thru the web, really did not help us much. So checking with the community for the best way to get good reliable answers.
    Thanks
    SR
    Edited by: libran on Feb 28, 2013 1:29 PM

    Hi SR
    a) Can we login to BPM workspace via ADF application? If so, can you experts share with us some examples to look at?
    Not directly. BPM Application itself is a WebApplication. In high level it has 2 main things. List of Tasks with different status like Assigned, completed, active etc et.c And for each Task, click on that opens the task details page. This task details page is the ONE that can contain ACTUAL Data. Now this actual Data can be part of the process itself we call as Payload. Or this entire data can be in any other existing application or database. But the payload will just have like main PKs (Primiary keys) like order id, salesid, customer id, projectid etc etc. Using these IDs and some APIs you can use your existing application data. Coming to screen, you cannot use the existing screens as it is.
    b) We dont want to use temp tables in the database, when user is doing online entry. We need to push this into BPM payload structures, when a user saves the data partially. When he does submit for approval, we need to initiate a task on the BPM side(for the reviewer). Is this possible? , especially saving the data into BPM payload structures from ADF application? Is this recommended or a good practice? Is there an example or how this can be achieved?
    1) NO. I would NOT recommend to put your existing data filled out from online form into Payload. There is NO need for this. From online when user clicks on Submit for Approval, just pass the key information like IDs, some names, status etc. Just the core and it should like 2 or 3 at the most. Any complex data will have only couple of main primary master keys and rest are all the internal relations. Once these IDs are in paylosd, you can use ADF components to pull the full entire data set for display in the TaskForms (mostly display only). Use ManagedBeans or DataControls/EJBs that takes these IDs.
    2) From online web on Submit, YES, you can invoke automatically a BPM Process. BPM Process can be initiate in many ways: Using Workspace application, Email, scheduler, WebServices, Java based APIs etc. The ideal way is WebServices. I guess you want to do first some validation and then only create an approval instance.
    Giving a ready made example is tough. I do not have any old links on top of my head for reference. I will see if I can find them.
    My suggestion, leave the Payload as light as possible unless and untill if there is no other go.
    Thanks
    Ravi Jegga

Maybe you are looking for

  • Problem with switch

    Hi, I have a problem using switch statement. I have a class named Resources in which I declare all the final variables. I have created an instance of Resources named res in the main class. But I cannot use the final variables in the main class in the

  • Can I force the sync process without DM asking me for confirmations?

    DM is working fine with Outlook 2003, and I have the "confirm adds, deletes, changes" options disabled in the Advanced section.  Yet every time I connect my device, DM is asking me to confirm stuff. How can I force it to work in stealth mode... just

  • Is it possible to access local files with MIDP?

    Hello everyone, I am developing a mobile application using Sun One Studio 4 ME, with MIDP 2.0. I am preparing a record store as input data for my application. "Preparing" means: I try to convert a local text file present on my PC into a record store.

  • CRM and RE-Fx Integration

    HI all, imin need of some inputs where in how can i integrate CRM to RE-Fx objects im mysap erp 6.0 your suggestion in this regard will very useful for me for which i will be soo thankful. suresh s

  • After i updated to ios6 my keyboard shortcuts quit working, how do i fix it

    after i updated to ios6 my keyboard shortcuts quit working. how do i fix it