Read body message from transport agent with c#
How can I get the email body of a message from a transport agent?. I can get easily the subject of a message, also I need to get the recipients, sender, cc, cco, bcc.
I been reading and looks like I need to use an array of bytes and something like that. Also looks like i need to write first the body in a text plain file but I dont know how can I do it and why I need to. Any body could help me.
Best regards for all.
You can get the details using following POP3 RFC
https://www.ietf.org/rfc/rfc1939.txt
Muthukrishnan Ramasamy
net4.rmkrishnan.net
Use only what you need, Reduce global warming
Similar Messages
-
Reading old message from Topic or queue
How i can read old message from jms topic or queue?
It depends on what you mean by "old" and what your JMS implementation is. Old as in expired or as in previously delivered?
Sending expired or previously delivered messages with DropboxMQ is as simple as moving the message files around using a shell or file explorer.
http://dropboxmq.sourceforge.net
Dwayne -
Error reading jms message from MQ-queue
Hi,
To be able to use async-sync bridge in JMS adapter, we recently patched XI 3.0 from SP 15 to SP21. But the jms sender adapter has problem reading the message from the MQ-queue, see detail of error-message at the end of this message.
I did change the adapter to use modules use RequstResponseBean and ResponseOneWayBean as explaned on help.sap.com.
The async-sync bridge worked once and the it started failing.
Detailed error message in communication channel monitoring:
Error while processing message '3c5a0640-9c03-11dc-82f2-000255d3bbf7'; detailed error description: com.sap.aii.adapter.jms.api.channel.filter.MessageFilterException: Could not begin a AF transaction: TxManagerException: Unable to open transaction: com.sap.engine.services.ts.exceptions.BaseSystemException at com.sap.aii.adapter.jms.core.channel.filter.TxManagerFilter.filterSend(TxManagerFilter.java:103) ...
/Maria LandeHi,
I fixed it myself. I hade to do a Xi Data Cahe Refresh.
Navigate to Administration section on the SAP Exchange Infrestructure start page. On the Directory tab page, choose Cache overview under the heading Administration of Locks and Caches. Do a Full Cache Refresh on the adapter engine.
/Maria Lande -
How to read some images from file system with webdynpro for abap?
Hi,experts,
I want to finish webdynpro for abap program to read some photos from file system. I may make MIMES in the webdynpro component and create photos in the MIMES, but my boss doesn't agree with me using this way. He wish me read these photos from file system.
How to read some images from file system with webdynpro for abap?
Thanks a lot!Hello Tao,
The parameter
icm/HTTP/file_access_<xx>
may help you to access the pictures without any db-access.
The following two links may help you to understand the other possibilities as well.
The threads are covering BSP, but it should be useful for WebDynpro as well.
/people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
http://help.sap.com/saphelp_sm40/helpdata/de/c4/87153a1a5b4c2de10000000a114084/content.htm
Best regards
Christian -
I want to use ODI to read XML messages from JMS queue and then process it..
I want to use oracle ODI (Oracle Data Integrator) to read XML messages from JMS queue and then process it.. i also want to process and validate the data in it....
Could anyone please tell me the steps to achieve the same. I tried some ways which i got on OTN, but not able to implement it exactly...
As i m very new to ODI, it will be great if you provide detailed steps..
Thanks in advance for your help....Hi,
Were you able to do it? We are facing this same issue now and, despite the fact the docs say otherwise, it does not seem to be a trivial task.
TIA,
Tedi -
Can I somehow read the messages from iPhone to my Windows PC
Can I somehow read the messages from IPhone to my Windwos PCIt. is very important because my screen broke on the iPhone and now sit I want to read my news
No way to do that.
Not on a PC. Only on a Mac (if you have Messages beta). -
Fetching out message from transport log
Hi buddies,
I used this function to read the warning and error messaging when an error or warning occured during request transportation.
<b>TMS_UI_SHOW_TRANSPORT_LOGS</b>
my question is after I called this function,the log will display on the screen,How can I read the detail warning message from the log file?
for example:a warning message in a log file showed like this:
Data element ZDOLEAPS10 was activated with warnings
I don't want to read others message.Finished
-
Would like to know how to read SOAP Messages from SOAP Client
Hello,
I am new to Webservices. Here is what I want to do.
I need to develop a Web Service provider application.
Here are the tools I am using to develop this application.
a) WSAD 5.1.2
b) Axis 1.0 built within WebSphere.
I do have a WSDL file and I generated the code by using WSAD ==>WebService ==> Generate Java bean skeleton option. I want to know, how I can read the SOAP request message from the generated code and to add new SOAP header element.
Any help you can provide would be greatly appreciated.Depending on the version of WebSphere you are using, there should be a menu option to create a dynamic web project. This will set up the basic structure of the application for you. Also, right-click on the newly created web application and there should be a context menu something like Web Services -> Deploy Web Service. This will do some more under-the-covers work for you.
The webservices.xml deployment descriptor is only created when you generate your Java interfaces and helper classes. For example, if you are starting with a WSDL, you would right-click on the document, select Web Services -> Generate Java Bean Skeleton, and then follow the couple of dialog boxes afterwards. The webservices.xml document will then be created under the WEB-INF directory.
I�d be wary of introducing any external web service software into a WebSphere environment. On my last project we ran into a few tricky SOAP API conflicts so we decided to stick with pure IBM implementations wherever possible. That said, this is some sample code that I've recycled from the Monson-Haefel book I've mentioned before:
package sandbox;
import javax.xml.namespace.QName;
import javax.xml.rpc.handler.MessageContext;
import javax.xml.rpc.handler.soap.SOAPMessageContext;
import javax.xml.soap.*;
public class MessageHandlerID extends javax.xml.rpc.handler.GenericHandler{
QName [] headerNames = null;
public QName [] getHeaders(){
if(headerNames == null){
QName myHeader = new QName("http://speck.net.au/message-id", "message-id");
headerNames = new QName[] { myHeader };
return headerNames;
public boolean handleRequest(MessageContext context){
String messageID = new java.rmi.dgc.VMID().toString();
try{
SOAPMessageContext soapCntxt = (SOAPMessageContext)context;
SOAPMessage message = soapCntxt.getMessage();
SOAPHeader header = message.getSOAPPart().getEnvelope().getHeader();
Name blockName = SOAPFactory.newInstance().createName("message-id","mi","http://speck.net.au/message-id");
SOAPHeaderElement headerBlock = header.addHeaderElement(blockName);
headerBlock.setActor("http://speck.net.au/message-id/logger");
headerBlock.addTextNode( messageID );
return true;
} catch(javax.xml.soap.SOAPException se){
throw new javax.xml.rpc.JAXRPCException(se);
}It doesn't do much but might give you some ideas.
You may have already come across this, but I found the following RedBook invaluable:
Wahli, U., Garcia, G. O., Cocasse, S. and Muetschard, M. (2004). WebSphere Version 5.1 Application Developer 5.1.1 Web Services Handbook. IBM. -
We are currently receiving XML messages from a business partner that goes
through a transformation/parser first to make sure the xml document was
in MISMO form (Mortgage Industry Standard Message Organization). Then the
document is stored in a clob in a table. The document is stored Without
the tags. We are storing these XML messages into a CLOB datatype for
later processing. I want to read the CLOB and then parse out the
individual fields to store into a table. What is the best way to
accomplish this in PL/SQL? Here is one sample record:
<MORTGAGEDATA>
<APPLICATION LoanPurposeType="OTHER">
<LenderCaseIdentifier>3631681</LenderCaseIdentifier>
<LendersBranchIdentifier>2966448</LendersBranchIdentifier>
</APPLICATION>
<PROPERTY PropertyUsageType="Primary">
<Address1>1335 test</Address1>
<City>las cruces</City>
<State>NM</State>
<PostalCode>88001</PostalCode>
</PROPERTY>
<SUBJECTPROPERTY>
<SubjectPropertyEstimatedValueAmount>69000</SubjectPropertyEstimatedValueAmount>
</SUBJECTPROPERTY>
<BORROWERRECONCILEDLIABILITY LiabilityType="HelocSubjectProperty">
<LiabilityUnpaidBalanceAmount>0</LiabilityUnpaidBalanceAmount>
<LiabilityMonthlyPaymentAmount>0</LiabilityMonthlyPaymentAmount>
</BORROWERRECONCILEDLIABILITY>
<BORROWERRECONCILEDLIABILITY LiabilityType="MortgageLoanSubjectProperty">
<LiabilityUnpaidBalanceAmount>0</LiabilityUnpaidBalanceAmount>
</BORROWERRECONCILEDLIABILITY>
<BORROWER>
<FirstName>scooby</FirstName>
<MiddleName/>
<LastName>doo</LastName>
<NameSuffix/>
<MothersMaidenName>velma</MothersMaidenName>
</BORROWER>
</MORTGAGEDATA>
NOTE: I have tried to use DBMS_XMLQUERY and it comes out like this using a
stored procedure called printclob: When I do this the data is put into
one field called xml_app_msg. The problem is how do I reference the
individual fields like FirstName and so on to store in another table? Can
I apply a stylesheet and if so, how?
Or do I create an object type called xml_app_msg with the fields lastname
and so on?
-- The table is raw_xml_msg_tbl and the field with the stored infomation is
xml_app_msg.
set serveroutput on size 50000
declare
queryCtx DBMS_XMLquery.ctxType;
result CLOB;
begin
queryCtx := DBMS_XMLQuery.newContext('select xml_app_msg from raw_xml_msg_tbl where app_id = :APP_ID');
-- DBMS_XMLQuery.clearBindValue(queryCtx);
DBMS_XMLQuery.setBindValue(queryCtx,'APP_ID','LT1001');
-- get the result..!
result := DBMS_XMLQuery.getXML(queryCtx);
-- Now you can use the result to put it in tables/send as messages..
printClobOut(result);
DBMS_XMLQuery.closeContext(queryCtx); -- you must close the query handle..
end;
OUTPUT:
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<XML_APP_MSG><MORTGAGEDATA>
<BORROWER>
<FirstName>Falls</FirstName>
<MiddleName/>
<LastName>Water</LastName>
<NameSuffix/>
<SSN>123-45-6789</SSN>
</BORROWER>
</MORTGAGEDATA>
</XML_APP_MSG>
</ROW>
</ROWSET>
nullI parse the XML doc into a domdocument and then loop through using xpath.valueof to pull the individual values from the nodes and then build a generic insert. It works quite well with a small number of columns. I'm not sure how it would work with a lot of columns. You can get code examples from Steve Muench's book "Developing Oracle XML Applications".
-
How to retreive all unconsumed messages from a topic with a MDB?
Hello!
I have a webapp that stores TextMessages in a Topic in WebLogic.
I have an ejbapp (Message driven bean) that reads messages from the topic.
If both are up and running the ejbapp reads all messages sent from the webapp to the topic.
But if I stop the ejbapp for a while and sends a couple of messages to the topic and then deploy the ejbapp again, then the ejbapp does not read the unconsumed messages. If I send a new message to the topic the ejbapp reads that new messages but it does not get the previous messages that are on the topic.
Is this the way it should work? Or could I get the message driven bean to consume all the messages that it has not consumed from the topic when it starts?
My weblogic-ejb-jar.xml looks like:
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>OrderManagerMDB</ejb-name>
<message-driven-descriptor>
<pool>
<max-beans-in-free-pool>200</max-beans-in-free-pool>
<initial-beans-in-free-pool>20</initial-beans-in-free-pool>
</pool>
<destination-jndi-name>jms/OrdersTopic</destination-jndi-name>
<connection-factory-jndi-name>jms/OrdersConnectionFactory</connection-factory-jndi-name>
</message-driven-descriptor>
<enable-call-by-reference>True</enable-call-by-reference>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>And my ejb-jar.xml looks like:
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<ejb-jar>
<enterprise-beans>
<message-driven>
<ejb-name>OrderManagerMDB</ejb-name>
<ejb-class>brownbagwarehouse.OrderManagerMDB</ejb-class>
<transaction-type>Container</transaction-type>
<acknowledge-mode>Auto-acknowledge</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Topic</destination-type>
</message-driven-destination>
</message-driven>
</enterprise-beans>
</ejb-jar>My MDB onMessage looks like:
public void onMessage(Message message)
try
TextMessage textMessage = (TextMessage)message;
System.out.println(textMessage.getText());
catch(Exception e)
e.printStackTrace();
}Best regards
FredrikI am not much familiar with Weblogic, but i would suggest, you do a search for how to setup "Durable Subscriptions" in Weblogic. This will ensure the the messages that were sent when the consumer was not available, will be delivered once the consumer is available
-
I can't pickup my office messages from the road with my 3G iPhone.
Anybody else have this problem? In order to get my messages from work I have to press ** in order to activate my code for my office phone. When I press the * key twice it simply cuts out or ignores the command and I can't pickup my office messages. My wife has the original iPhone and it works fine with my office phone. I also turned off the 3G network and tried to see if it would work but the samething happened. I do have Apple working on this problem, apparently there's others out there experiencing the same issue, I'm just curious how many?
Anybody find any solutions to this problem yet?Do you mean that you are trying to sync music from your computer's iTunes to your phone ? If you are then what happens when you try to do it, if you are getting any error messages then what do they say ?
-
Is there a way to view/recover messages from months ago in a thread that has been ongoing? The messages are not deleted. If i just keep "loading new messages" a) it will take all day, I've tried, and b) it freezes on me.
Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
http://www.ecamm.com/mac/phoneview/
http://www.wideanglesoftware.com/touchcopy/index.php
Both will allow you to archive your text messages to your computer and read them easily. -
Why am I getting unable to purchase message from App Store with free apps
Why am I getting unable to purchase message from App Store for free apps on my I pad?
Sign out of your Apple ID, reboot yor iPad and sign in again.
Settings>iTunes and App Store. Tap your ID and sign out.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
Go go back to Settings>iTunes & App Store. Sign in. Try to download the free apps again. -
How to read a message from com port
i have a gsm modem connect to my pc though a serial port
how can i read the output from modem and use them in my java program
many thanks....http://java.sun.com/products/javacomm/
-
Why can't I receive messages from iPhone users with my new Galaxy s4?
I just got the Galaxy s4 and switched to that from my iPhone. I can't recieve any messages from Iphone users, please help me...
Sounds like you didn't deactivate iMessage on your iPhone before you switched over. You will need to talk to Apple Support
Maybe you are looking for
-
I saved a 5 page document on my macpro laptop in iwork. I emailed the document. The person claimed she didn't get the email. When I went to look at my sent mail the entire sent mail folder is gone and my saved document is also gone except for the fir
-
Can you completely disable data usage on iPhone?
I have an extra iPhone 4S that I got from a friend who's contract ended. My girlfriend has a very basic plan from AT&T (unlimited calling and texting). She can send picture messages also, but she doesn't have a data plan from what I understand. (I al
-
SATATIS of Procedural ABAP compared with CLASS-DATA of OO ABAP.
Hi, Is the STATICS statement in procedural ABAP synonymous to CLASS-DATA in OO ABAP. Please help. Regards, Rajesh.
-
I have an iphone and have a 1 in a red circle on my photos app. What does this mean?
I have a 1 in a red circle over my photos icon on my iphone. What does this mean?
-
How to deploy agent from windows 32bit to 64bit
Hello, I have installed oem grid on windows 2003 32bit. I have a few remote boxes that are 64 bit windows. How can I use oem grid on 32 bit to deploy agent on the remote 64 bit boxes? I can install agent on 64 bit boxes manually but I want to know ho