How to send plain text body in HTTP Post method ?
Hi Exeperts,
I have a scenario http post - ptoxy. Sender sending the data in http post in plain text body (only field values will be in the body).
how should i capture this plain text for receiver to map..
is any udf or xsl code ?
please guide me for achieving this requirement .
find the attachment for http post body value.
Regards
Ravi
Hi Mark,
Thanks for your reply,
Please share you have any udf for this .
can you explain me how should i map to target side.
what are the configuration should i done in communication channel level
Regards
Ravinder.s
Similar Messages
-
How to send PLAIN text email from sp_send_dbmail using SQL Server 2008 R2?
I have configured Database Mail in SQL Server 2008 R2 (64) and it sends emails just fine. However the destination is recieving the body of thes message as Base 64 encoding.
Snippet:
EXEC msdb..sp_send_dbmail @profile_name='Outmail', @recipients = @recpts, @subject = @subj, @body_format = 'TEXT', @body=@body2;
As you can see I set @body_format to TEXT, but it still sends Base 64. I need to send plain ASCII text. How can I change this?I am having this exact issue too. I have a trigger that sends an email using a stored procedure. The dbmail is sending the email using the Exchange 2010 server SMTP. It does not login so the email is relayed as user = "Anonymous".
The SQL dbmail email header is showing the following:
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-Organization-AuthSource: MX01.domain.local
X-MS-Exchange-Organization-AuthAs: Anonymous
Here is the header if I send via Outlook profile using the legacy program I am trying to automate using SQL Server 2008R2:
Content-Type: application/ms-tnef; name="winmail.dat"
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-MS-Has-Attach:
X-MS-Exchange-Organization-SCL: -1
X-MS-TNEF-Correlator: <[email protected]>
MIME-Version: 1.0
X-MS-Exchange-Organization-AuthSource: MX01.domain.local
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 03
X-Originating-IP: [192.168.13.66]
Any help would be greatly appreciated! -
How to send te XML data using HTTPS post call & receiving response in ML
ur present design does the HTTP post for XML data using PL/SQL stored procedure call to a Java program embedded in Oracle database as Oracle Java Stored procedure. The limitation with this is that we are able to do HTTP post; but with HTTPS post; we are not able to achieve because of certificates are not installed on Oracle database.
we fiond that the certificates need to be installed on Oracle apps server; not on database server. As we have to go ultimately with HTTPS post in Production environment; we are planning to shift this part of program(sending XML through HTTPS post call & receiving response in middle layer-Apps server in this case).
how i can do this plz give some solutionIf you can make the source app to an HTTP Post to the Oracle XML DB repository, and POST contains a schema based XML document you can use a trigger on the default table to validate the XML that is posted. The return message would need to be managed using a database trigger. You could raise an HTTP error which the source App would trap....
-
How do you verify the size of a large ( 32K) plain text body
Hello All,
I am running GW 8.0.2 Hot Patch 3, using SOAP schema 1.04.
When I attempt to process a message, that contains only a plain text body with a size (in bytes) of 64,382 - the following sizes are reported by objects extracted from GroupWise, via SOAP calls:
Message Size: 71,425 (should be bigger than the plain text body).
Message Part [0] length: 70,854 - no idea where this value comes from
In the getAttachmentResponse object, the part has:
length: 87,772 - Which matches the Base64 encoded length, plus padding, of the plain text.
The actual size of the plain text (on disk): 64,382
I am hoping to use the HTTP GET method for extracting the large plain text object, which means that I will not have access to the getAttachmentResponse object.
So my question is, based on the MessageBody, MessagePart[0] length of 70,854 - is there a formula, or other way to determine the correct expected byte size of the plain text object to enable me to verify that the HTTP GET operation or the SOAP getAttachmentRequest completed correctly?
Regards,
Dave Stiller.Hey Preston,
Thanks for the prompt response. Not the answer that I was seeking, but none the less an answer. Thanks.
Can I suggest an enhancement for a future release, to add an additional structure to the message object that allows you to detail the available formats and byte sizes of the formats that relate to the message body object. This could even be an extension/completion of the MessagePart object array on the Message Body. (One array component for each available format.) There are no issues when dealing with large body texts as attachments, but an accurate byte count is important to me.
This will enable us to verify that the message body content, downloaded from GroupWise, has not be corrupted during transfer - particularly important when using HTTP requests.
Have a great day,
Dave...
Originally Posted by Preston Stephenson
You will have to be careful in getting message bodies.
The plain text message body can come from different
sources and / or formats.
The message body can be stored in RTF format.
You can extract the plain text from the RTF text.
If there is a text.htm message body attachment, the
GW Client will extract the text plain text from the
text.htm attachment and will ignore the text plain
message body attachment.
There can be corruptions in the message body
attachment. The attachment can report a certain
size, but the actual data may be different.
You have to assume what is stored / returned is
correct. If you are bound and determined to read
the number of bytes recorded, you can cause
problems. There was one case where the attachment
was corrupt. The POA returned all the data that
was available. The application tried to read past
the end of the valid data and caused the POA to
crash.
You get all of the data in one HTTP GET call. In
that case, the "Content-Length" header will have
the number of bytes in the message body attachment.
Preston
>>> On Sunday, August 12, 2012 at 11:36 PM,
stillerd<[email protected]> wrote:
> Hello All,
>
> I am running GW 8.0.2 Hot Patch 3, using SOAP schema 1.04.
>
> When I attempt to process a message, that contains only a plain text
> body with a size (in bytes) of 64,382 ‑ the following sizes are
reported
> by objects extracted from GroupWise, via SOAP calls:
>
> Message Size: 71,425 (should be bigger than the plain text body).
> Message Part [0] length: 70,854 ‑ no idea where this value comes from
>
> In the getAttachmentResponse object, the part has:
> length: 87,772 ‑ Which matches the Base64 encoded length, plus padding,
> of the plain text.
>
> The actual size of the plain text (on disk): 64,382
>
> I am hoping to use the HTTP GET method for extracting the large plain
> text object, which means that I will not have access to the
> getAttachmentResponse object.
>
> So my question is, based on the MessageBody, MessagePart[0] length of
> 70,854 ‑ is there a formula, or other way to determine the correct
> expected byte size of the plain text object to enable me to verify that
> the HTTP GET operation or the SOAP getAttachmentRequest completed
> correctly?
>
> Regards,
> Dave Stiller. -
How to sending simple text in the mail body
Hi friends,
How to send simple text in the mail body through ABAP code
plz send me the related code and setting for that mail.
Thanks&Regards,
Srinivastry this...
FORM send_file_as_email_attachment .
DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
DATA: objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA : i_body TYPE soli_tab WITH HEADER LINE.
DATA: it_attach LIKE it_display1 OCCURS 0 WITH HEADER LINE.
DATA: doc_chng LIKE sodocchgi1.
DATA: tab_lines LIKE sy-tabix.
DATA: att_lines TYPE i.
DATA: lv_lines TYPE i.
DATA: file TYPE string.
data: g_datum like sy-datum.
data: g_datum1(10) type c.
DATA: len TYPE n.
LOOP AT it_email.
CLEAR : objpack,
objhead,
objbin,
objtxt,
reclist.
REFRESH: objpack,
objhead,
objbin,
objtxt,
reclist.
g_datum = sy-datum - 1.
concatenate g_datum6(2) '.' g_datum4(2) '.' g_datum+0(4) into
g_datum1.
doc_chng-obj_descr = 'Aged Stock more than 45 Days'.
CONCATENATE 'Aged Stock more than 45 Days' '-' it_email-vkbur INTO
doc_chng-obj_descr.
CONCATENATE 'Please find enclosed Aged Stock Details ( >45days ) report as on'
g_datum1
INTO objtxt-line SEPARATED BY space.
APPEND objtxt.
objtxt-line = ' '.
APPEND objtxt.
objtxt-line = 'Regards'.
APPEND objtxt.
objtxt-line = 'LIS SAP Projects'.
APPEND objtxt.
objtxt-line =
'PS: Pls send feedback for futher improvements to SAP office.'.
APPEND objtxt.
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'TXT'.
objpack-obj_name = 'Run_prog'.
objpack-obj_descr = 'Agestock.txt'.
lv_lines = tab_lines.
APPEND objpack.
*CONCATENATE 'Plant' 'Material Number' 'Qty(More than 45days)'
*'Amount' INTO
it_display SEPARATED BY space.
append objbin.
clear: objbin.
CLEAR:it_display2.
REFRESH it_display2.
it_display2-werks = 'Plant|'.
it_display2-matnr = 'Material Number'.
it_display2-qty = '|Qty > 45 days'.
it_display2-amount = ' |Amount'.
APPEND it_display2.
it_display2-werks = ''.
it_display2-matnr = ''.
it_display2-qty = ''.
it_display2-amount = ''.
APPEND it_display2.
CLEAR : it_display2.
sort it_display1 by amount descending.
LOOP AT it_display1 WHERE werks = it_email-vkbur.
AT FIRST.
*CONCATENATE 'Plant ' 'Material Number' 'Qty(More than 45days)'
*'Amount' INTO
objbin-line SEPARATED BY space.
append objbin.
clear: objbin.
ENDAT.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = it_display1-matnr
IMPORTING
output = it_display1-matnr.
it_display1-qty = TRUNC( it_display1-qty ).
MOVE-CORRESPONDING it_display1 TO it_display2.
APPEND it_display2.
CLEAR:it_display1,it_display2,objbin.
CLEAR:it_display1.
ENDLOOP.
objbin[] = it_display2[].
DESCRIBE TABLE objbin LINES tab_lines.
objhead = 'Suug'.
APPEND objhead.
objpack-transf_bin = 'X'.
objpack-head_start = 3.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'RAW'.
objpack-obj_name = 'Run_prog'.
objpack-obj_descr = 'Agestock.txt'.
APPEND objpack.
reclist-receiver = '[email protected]'.
reclist-rec_type = 'U'.
APPEND reclist.
=====================================================================
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = doc_chng
commit_work = 'X'
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
CLEAR : it_email.
ENDLOOP.
ENDFORM. "send_mail
Message was edited by:
Sugumar Ganesan -
How to send a text file to a printer?
Hi, I'm in dark on how to send a text file to a printer through Java Stored Procedure.
Here are what I tried so far (OS: win 2000, Oracle: 817 or 9i2):
1, Enable DOS command in Java Stored Proc. and try to send PRINT command there:
public static String Run(String Command){
try{
Runtime.getRuntime().exec(Command);
System.out.println("Command: " + Command);
return("0");
catch (Exception e){
System.out.println("Error running command: " + Command +
"\n" + e.getMessage());
return(e.getMessage());
public static void main(String args[]){
if (args.length == 1)
Run("print /D:\\\\enterprise\\john " + args[0]);
else System.out.println("Usage: java OSCommand filename");
PL/SQL wrapper:
CREATE OR REPLACE FUNCTION OSCommand_Run(p1 IN VARCHAR2) RETURN VARCHAR2 AUTHID CURRENT_USER AS LANGUAGE JAVA NAME 'OSCommand.Run(java.lang.String) return java.lang.String';
SQL command:
//print /D:\\machine\printer test.txt
I loaded the Java Stored Procedure into SYSDBS account, it failed silently, even though piece of code works fine in external JVM.
2, Use filePrinter:
public static String print(String printString) {
try{
String printerUNC = "\\\\machine\\printer";
FileWriter fw = new FileWriter(printerUNC);
PrintWriter pw = new PrintWriter(fw);
pw.println(printString);
fw.close();
return "OK";
}catch(Exception e){
e.printStackTrace();
return "Exception: " + e.getMessage();
public static void main(String[] args) {
try{
String printerUNC = "\\\\machine\\printer";
String printString = "Hello World";
FileWriter fw = new FileWriter(printerUNC);
PrintWriter pw = new PrintWriter(fw);
pw.println(printString);
fw.close();
}catch(Exception e){e.printStackTrace();}
I loaded it into SYSDBS too, and tried with this:
SQL> select MY_PRINT.PRINT('HELLO from Oracle') from dual;
MY_PRINT.PRINT('HELLOFROMORACLE')
Exception: No such file or directory
SQL> show user
USER is "SYS"
It works in external JVM too.
What's wrong with this?
Thanks for any help in advance,
CharlesAvi:
Thanks for your response!
I put the java code in SYS, 'cause I assume that account has max privilege. If the test is successful, I will move that to some user schema and then to deal with those privilege settings... But I'm unlucky.
I checked Ask Tom, this is what I got from http://asktom.oracle.com/pls/ask/f?p=4950:8:1619723::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:38012348052,%7Bprinter%7D:
... Print file from PL/SQL ...
If you are using Oracle8i, release 8.1 -- much can be done with Java. java
would be able to print directly from the server.
Looks like using Java to print out file is better than PL/SQL. But there's no more hint there! And, no new question can be asked there today either...
I'm wondering whether we can create a socket to a printer and send the characters there directly... Anyone has experience on this?
Thanks for all the help in advance,
Charles -
Outlook 2010 "Send Plain text only" not working for individual contacts
We have a Outlook 2010/Exchange 2007 environment
If you go to Outlook Properties of a contact and change from "Let Outlook decide the best sending format" to "Send Plain text only", it is supposed to force Outlook to send a Plain text
email
to that contact.
But it is still sending HTML. This is happening with any contact I try this with.
While composing the email I can change it to Plain text manually and that works fine.
Not sure what gives...Hi,
I recommend that you check the global remote domain setting if set to send plain text.
If not , the remote domain setting will override the change of the contact's properties when sending email out.
More details refer to the following article:
http://technet.microsoft.com/en-us/library/bb232174(v=exchg.141).aspx
Remote domain settings Remote domains define the settings for outgoing message transfers between the Exchange 2010 organization and domains outside the Active Directory forest. Even if you don't create remote domain entries
for specific domains, there's a predefined remote domain named Default that applies to all remote address spaces (*).
Hope this helps!
Thanks.
Niko Cheng
TechNet Community Support -
How to send some text to an ASP or PHP page?
How to send some text to an ASP or PHP page with HTTPService?
I'll store the submitted text to database through the page.
Thanks!Set up an HTTPService. the xml inside the mx:request area
will be passed using the method you define in the httpservice tag.
<mx:HTTPService id="serviceName"
url="
http://www.site.com/page.php"
useProxy="false" method="POST" showBusyCursor="true" >
<mx:request>
<val1>value 1</val1>
<val2>value 2</val2>
<val3>value 3</val3>
</mx:request>
</mx:HTTPService> -
How to send a text at a later time.
trying to figure out how to send a text message to people at a later time automatically
do you know of any app for this?
-
How to send a text message to a group of people and save the list for next time?
how to send a text message to a group of people and save the list for next time from an iphone 4s?
Hey there ipremacha,
It sounds like you need to enable Text Message Forwarding on your iPhone for your iPad to send MMS/SMS messages through your phone.
Connect your iPhone, iPad, iPod touch, and Mac using Continuity
Go to Messages > Text Message Forwarding, and enable the device(s) you would like to forward messages to.
Your Mac, iPad, or iPod touch will display a code. Enter this code on your iPhone to verify the SMS feature.
Thank you for using Apple Support Communities.
Regards,
Sterling -
Sending UTF-8 data via http post
Hello,
I'm generating an xml to be sent via http post method. Before sending, I'd like to convert it to utf-8, but Oracle converts it to utf-16, no matter what I do.
This is what I send with utl_http.write_text:
convert(l_clob,'AL32UTF8')...but I see utf-16 encoded output on the server side.
NLS_RDBMS_VERSION is 10.2.0.1.0
NLS_CHARACTERSET is EE8ISO8859P2
NLS_NCHAR_CHARACTERSET is AL16UTF16
But I do not use NCHAR variables.
Is http post considered like exporting, where the os's NLS_LANG is important?
Earlier, I managed to save utf-8 xml-files without setting any NLS% params. It was with:
UTL_FILE.PUT_RAW(
file => file_handle,
buffer => UTL_RAW.CONVERT(utl_raw.cast_to_raw(buffer),
'AMERICAN_AMERICA.AL32UTF8',
'AMERICAN_AMERICA.'||charset
);But this does not seem to work here, since I have to send 'text/xml'...
Any help is appreciated.
Thanks,
LaszloNot really the correct forum.. The methods you are using are more a PL/SQL issue than an XML DB issue. In general Oracle will convert the response into the character set requested by the client, are you sure your client is not requesting UTF-16.
Edited by: mdrake on Nov 27, 2010 5:42 PM -
How to call HTTP Post Method URL in SOA 10g
Hi,
I have a requirement where i need to call a HTTP Post Method, I have a URL, if i hit it in the browser, i am getting the response details. I know there is a HTTP Binding Adapter in 11g, but we are on 10g. Can anyone please let me know whether we can do it in 10g and how ?
Thanks Always
NYou will need to write the WSDL by yourself. Just make sure you have the end point detail, operation name(if required) and the schema available to write the WSDL.
-
How to call HTTP POST method in SOA 10g
Hi,
I have a requirement where i need to call a HTTP Post Method, I have a URL, if i hit it in the browser, i am getting the response details. I know there is a HTTP Binding Adapter in 11g, but we are on 10g. Can anyone please let me know whether we can do it in 10g and how. ?
Thanks Always
NLook at 10g samples under tutorials/702.bindings.
-
How do I extract the BODY of a POST request?
How do I extract the BODY of a POST request?
Is this possible?Yes, this is true but why is it that after I use
request.getInputStream() then request.getParameterValues()
stops working correctly? -
Example of sending the po request to my partner using https post method
I need to send the po request to my partner using https post method.
Is there any example for my scenario in oracle b2b?
Usecase:
mycompany
othercompany
mycompany -> Posts xml document with no namespace -> othercompany
Protocol: httpsI need to send the po request to my partner using https post method.It is possible. FYI, by default HTTPS uses post method.
Is there any example for my scenario in oracle b2b?Not exact sample is available but yes, similar samples are available here -
http://www.oracle.com/technology/sample_code/products/b2b/index.html
I would suggest you to go through below tutorial to have better understanding -
http://www.oracle.com/technology/products/soa/b2b/collateral/B2B_TU003_ebxml.pdf
Namespace is not an issue. It's upto you whether you like to keep it or not. From XML technology point of view, it is always recommended to have a namespace to bind each and every node with it, but I have seem cases where people don't use them.
Regards,
Anuj
Maybe you are looking for
-
Printing of Payment advice for Payments done by TT(Bank Transfers)
Hi Any standard Tcode available for taking print of Payment Advice for payments made through bank transfers like TT to our vendors. Kindly share as we have std Tcode FBZ5 for printing of payment advice for payments done through Checks thanks & regard
-
Topic Downloading instead of viewing
Browsing the forums and I clicked on Windows 10:Will it Soar and it immediately lead me to download the topic, I'm fairly sure this is some kind of bug. I've viewed this exact topic before on Friday and I was able to view it normally. Is this a new n
-
Anyway, what was cut off due to me being so wordy on a tight character limit is, all my apps are seperate and not in my iWorks folder on iCloud in my browser. Does this change my original, payed for, Apps to BETA instead of the Apps that I have purch
-
Failing to install driver of SB Live! B880
*Failing to install driver of SB Li've! B8808Hello! I switched from Windows XP to Windows 7 and now I need to reinstall my Creative Soundblaster Li've! B880, which uses the?EMU0K sound processor. I can't find the installation CD anywhere in my house,
-
[SOLVED]systemd: help on executing oneshots, timing issues
Hi, I have problems with systemd. I want to upload a firmware to my bluetooth adapter which needs the device already created by bluetoothd. I made the service file /usr/lib/systemd/system/fw-upload-bcm20702a0.service Unit] Description=uploading firmw