|
From: arunkantho <aru...@ne...> - 2004-12-16 09:33:38
|
Hi
Hi Patrick
one more problem I have copied plugin.xml and datahandler class and ui class
and documentclass handler class modified accordingly for pdf files.
Now when I run theses classes individually the error by javac for every
class that main is absent
1.Now the question is where I am making mistake.
2.How to run these files individually and
3.How to run these file as combined so that I can check the output.
I think the process is after checking everytghing I have to put jar files in
the plugin directory .
Now after putting there how can I check that its working for pdf files or
not.
Kindly help me to solve this problem.
Thanxs and regards
Hello,
When you are writing plugin, you will need to provide a method for
composing the EbxmlMessage. For example, you can find such method in our
sample PO plugin: PODocumentData.java, in which you can find a method
called toMessage(). Here is some fragment of toMessage() method:
Creating a data source of payload by passing in an output stream:
ByteArrayDataSource dataSource =
new ByteArrayDataSource(ostream.toByteArray(),
"text/xml", "description");
Add the payload to the message:
ebxmlMessage.addPayloadContainer(new DataHandler(dataSource),
"0", "description");
So in your case, you can create PDF payloads and then add them to the
message one by one. If the payload is not text, you only need to adjust
the type (replace "text/xml" with "application/pdf").
Hope this helps.
Regards, -Patrick
arunkantho wrote:
> I have a pdf format document filled with data.
>
> Now I also have ebmail,hermes,registry.hermes will send
> messages.registry will store it.
>
> Now the question is how to send pdf document with ebmail or what is
> the role of ebmail here.not getting flow of theses three
>
> mohna
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
ebmail-develop mailing list
ebm...@li...
https://lists.sourceforge.net/lists/listinfo/ebmail-develop
|