How to create JmsBytesMessage in C-API
Hi,
I am having some issues with extended (accented) characters in the body of Text Messages. I therefore need to use a different encoding (UTF-8) and use a JmsBytesMessage instead of a JmsTextMessage.
But how do I do that using C-API (from .Net C#)?
I would have expected to be able to do the following:
JmsBytesMessage bytesMessage;
retCode = JmsBytesMessage.JMSSessionBytesMessageCreate(_session, body, out bytesMessage, 0);
_producer.JMSProducerSend(ref producerOptions, bytesMessage, 0);
But this will not compile for 2 reasons:
1) Unlike the similar method on the JmsTextMessage class, JmsBytesMessage.JMSSessionBytesMessageCreate is NOT STATIC and can only be called on an instance of JmsBytesMessage. (I have tried creating an instance using the "new" constructor and calling the method from there, but that doesn't work either)
2) The method "JmsProducer.JMSProducerSend" only accepts a JmsTextMessage parameter. What do I need to use to send a JmsBytesMessage?
Is the C-API perhaps only available for Text Messages? Or is the version I'm using not complete, and is there a full version available somewhere, with support for BytesMessages?
Thanks
Mat
Hi Mat,
There are two versions of the C-client: a dev2dev version, and a very similar fully supported version thats supplied in the WebLogic 9.0+ install. If the doc doesn't help you find the latter, you can search this newsgroup for more info.
I don't know the answers to your other questions.
Tom
Similar Messages
-
How to create Approval Policies using API - OIM 11g R2
Hi,
Could you please let me know how to create the Approval Policies using java API code in OIM 11g R2.
ThanksHi Karthik,
Thanks for sharing the link. Could you please let me know how to specify the rule condition while creating the Approval Policy using the API given in this link. -
How to create numeric attribute using ABAP API
Hi experts
I'm trying to create a numeric attribute for a taxonomy table. In the how-to-examples there are only ways to create text attributes.
Those who have tried, please let me know the steps.
I have given below the code snippet which i tried to create numeric attribute. Please let me knw the missing link.
ls_num_attr_val-rating = 500.
APPEND ls_num_attr_val TO ls_ext_attr_info-characteristics.
ls_ext_attr_info-attr_info-attr_id-id = lv_attribute_id.
APPEND ls_ext_attr_info TO lt_ext_attr_info.
GET REFERENCE OF lt_ext_attr_info INTO lv_data.
ls_namevalue-value = lv_data.
ls_namevalue-code = 'ACCT'.
APPEND ls_namevalue TO ls_parameter-name_value_pairs.
lv_string = 'Customer 12'.
GET REFERENCE OF lv_string INTO lv_data.
ls_namevalue-value = lv_data.
ls_namevalue-code = 'CUST_NAME'.
APPEND ls_namevalue TO ls_parameter-name_value_pairs.
CALL METHOD lr_api->mo_core_service->create
EXPORTING
iv_object_type_code = 'ACCT_TYPE'
is_parameter = ls_parameter
iv_parent_id = 0
IMPORTING
ev_new_internal_id = lv_key.
Thanks
SwarnaDeepika
Edited by: SwarnaDeepika on Dec 19, 2009 4:38 PMHello Ashok,
[here|https://help.sap.com/javadocs/MDM/current/com/sap/mdm/examples/CreateField.html] is the Java API of the needed command.
There is also an example of how to create a field. You can use the class by replacing the strings for the server, repository, table, etc. to your needs.
If you want to create more than one field, simply use a loop, like the for-loop, while-loop, etc.
Hope this helps.
Best regards
Dominik -
How to create a new User / Contact using APIs
I am not able to figure out how to create a new User / Contact in WLPS using APIs
. Is there a factory class ?
Thanks,
AJHi Bala,
Try using these function modules
SUSR_BAPI_USER_CREATE
BAPI_USER_CREATE
BAPI_USER_CREATE1
BAPI_USER_INTERNET_CREATE ( This internally calls BAPI_USER_CREATE1)
Please read the FM documentation for more information. -
How to create the Frame object with API in 6i?
do i create an item using d2fitmcr_Create, and then set the type or style to frame? or is it a graphics item that i have to create using a different function? ive tried various combinations with no luck.
ive looked at the frame object in the GUI, and cant figure out how to duplicate it using the API (the frame object is the thin line box with a label used to groups items visually on a form)
thanks!
[email protected]Frame is a type of graphic d2fgracr_Create() (d2fgra.h) then set the type as required using d2fgras_graphics_typ():
Definition of Graphics types is in d2fdef.h
** Graphics Type (D2FP_GRAPHICS_TYP)
** [BPT]
#define D2FC_GRTY_ARC 0 /* Arc */
#define D2FC_GRTY_IMAGE 1 /* Image */
#define D2FC_GRTY_LINE 2 /* Line */
#define D2FC_GRTY_POLY 3 /* Polygon */
#define D2FC_GRTY_RECT 4 /* Rectangle */
#define D2FC_GRTY_RREC 5 /* Rounded Rectangle */
#define D2FC_GRTY_TEXT 6 /* Text */
#define D2FC_GRTY_GROUP 7 /* Group */
#define D2FC_GRTY_FRAME 8 /* Frame */All the various properties for setting up the associated block etc (if required) can be set through macros in d2fgra.h -
How to create an update listener using event notification in MDM Java2 API.
Hi folks,
I need some help on how to create an update listener for Customer updates in MDM using notification API. Could some one point me to where I should start. We are still using SP5.
Thanks
-SaiHi All,
I need to create update listener with notifications and it is giving this error.
Nov 14, 2008 12:26:21 PM com.sap.mdm.internal.net.ConnectionImpl finalize
INFO: Disconnect was not called. Cleaning up connection in finalize.
Nov 14, 2008 12:26:21 PM com.sap.mdm.internal.net.ConnectionImpl finalize
INFO: Disconnect was not called. Cleaning up connection in finalize.
Nov 14, 2008 12:26:21 PM com.sap.mdm.internal.net.ConnectionImpl finalize
INFO: Disconnect was not called. Cleaning up connection in finalize.
I am still using SP05 and noticed that some mentioned that MDM4J.jar has to be used. Can someone throw some pointers how to do this with MDM4J.jar. Can I include MDM4J.jar in the same project along with mdm-admin.jar, mdm-core.jar, mdm-common.jar, mdm-protocol.jar or I shoudl have only MDM4j.jar to create this listener. Any help is appreciated.
Thanks
-sai -
How to create a listener using the new MDM API
Does anyone have an example on how to create a addrecord listener using the new MDM API?
Refresh!
Hi all,
Looking for some sample codes on the same
Best regards,
Arun prabhu S -
How to create a project templace using a API?
Hi all,
I can create a project using API PA_PROJECT_PUB.create_project, but how to create a project templace using a API?
thanks for your any effort.
CarilHi Caroline:
If sub projects are not supported currently, does the EDK API support creating the project folders under a project? Please let me know.
Thanks.
Bhanu -
How to create autofilter in excel page using jxl api?
Hi Friends,
I am using jxl api for excel generation. Its no problem
but i need to set auto filter options. I am search in this API package but i can't find it.
Any one know how to create autofilter in excel page using jxl api?.
Please ..... Its urgent.... ...
ThanksHi,
Please mail me on [email protected] if u will find any solutions, i will do the same if i will find any...
Thank u in advance, -
How to create all Integration Directory with Directory API
How to create all Integration Directory
elements (Receiver determination, Interface Mapping, Communication channel Etc ) using Directory API
Can we upload multiple elements in ID from list in Excel sheetTake a look to this "How TO", can be really helpful for your requirements:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0336199-d3c7-2c10-c983-f8a945a4588c?QuickLink=index&overridelayout=true -
How to create Detailed API? urgent!!!!!
Hi all
I know how to create API using javadoc. but in that case it shows me the list of methods and fields. but i want to have some details of all the things. so can you tell me how to do that. do i need to give some details in my .java file or anything else?
please do reply fast...
thanx so much
jhelamIf you're trying to look at the documentation of java files and want to know everything about them w/o opening each file yourself you are probably going to need to write your own code to examine each .java file on a text level. As far as I know there isn't any special classes or API's out there that will automate the documentation process for every variable and method (including private ones) and also standard comments. If this is what you are trying to do then you will probably need to create it yourself. The other aspect is trying to decompile the class files but that too can be misleading and incorrect many times.
-
hi plz let me know how to create API for user defined class
Well what do you want to know exactly? The topic of this thread leaves a lot to the imagination.
- To create documentation for your API: use the command line javadoc tool that comes with the SDK, or use an IDE like Netbeans to generate the javadocs.
- to create an API you basically just create your own package of classes (plus documentation, or how else is anybody going to use your API?). To easily distribute this API you should put all those classfiles in a jar using the jar command line tool or again an IDE to make the job easier. -
How to create snapshot portlet and snapshot query using server API
How to create snapshot portlet and snapshot query using server API
Regards
DheerajHi Sebastian,
I have used the query and it is working fine. but, How could i include the headers of the query also in to the Excel Sheet.
RehaanKhan. M
see the method discussed here
http://sqlblogcasts.com/blogs/madhivanan/archive/2008/10/10/export-to-excel-with-column-names.aspx
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How to Create RMA Based on Sales order using OE_ORDER_PUB api
Hi,
Can any one pls help me how to create a RMA based on the sales order using oe_order_pub.process_order APi.
Thanks.Creating RMA is very similar to creating an Order. You need to make sure you're passing the correct order_type, line_type which'll be setup as 'RETURN' (or 'MIXED') category in transaction type definition.
For the API to automatically create a reference on your RMA lines to the original Order lines, you need to pass the following
l_line_tbl (l_line_tbl.COUNT).return_reason_code := 'RETURN'; -- Mandatory for RMA
l_line_tbl (l_line_tbl.COUNT).reference_line_id := v_ref_line_id; -- Original order line_id
l_line_tbl (l_line_tbl.COUNT).reference_header_id := v_ref_header_id; -- Original order header_id
l_line_tbl (l_line_tbl.COUNT).return_context := 'ORDER';
l_line_tbl (l_line_tbl.COUNT).return_attribute1 := v_ref_header_id; -- Original order header_id
l_line_tbl (l_line_tbl.COUNT).return_attribute2 := v_ref_line_id; -- Original order line_id
Once the RMA gets created, query the order and navigate to Lines>Returns tab. You can see the original order number and line number.
Thanks
Gopal -
How to create Downpayment Invoice using DI API in SAP B1 2005 version?
Hi there,
I appreciate anyone that can suggest me how to create a down payment invoice using DI API in SAP B1 2005 version? What is the object that we need to use? I can't find any object to achieve this
Many Thanks,
Harianto Ngthe object is SAPbobsCOM.BoObjectTypes.oDownPayments, but if i remember correctly this object wasnt exposed in DI for 2004 and maybe for 2005 too.
Maybe you are looking for
-
Hi all, I use top of page to print page number for ALV report. When i run my report in backgrond and see the spool, the page is always started from page 2. These does not happen when I use non-ALV report, report prints the header starting from page 1
-
Since my iPod isn't responding to my touch, I can't switch it off or restart it as I normally would. I've tried doing the hold-down-the-sleep-button-and-the-home-button-for-ten-seconds thing but when the Apple logo appears, it's either completely pin
-
Hi there, I'm getting this error when opening Firefox 5: FATAL ERROR : The dynamic C library contained in the extension file could not be found. I've never seen this error before... First time it happened was immediately after DLing Firefox 5 yesterd
-
Read header text from vf01 and print in script main window
Hi Gurus, I need to read text from vf01 header note 1, there user type max 10 lines i want to read that 10 lines and print in sap script main window after line item printed. i used read text but one line only fetched. i declare variable
-
Why don't my contacts sort the same way they are sorted in Outlook? We are a business, we need to sort by a company name not by contact name. Please help.