Multipart/related part specifiers
Hi, this query is perhaps the result of my own limited knowledge regarding MIME types and part specifiers but here goes....
Based on the following BODYSTRUCTURE, I am attempting to determine the associated part specifiers so I may get the MIME headers for said part (i.e. A12 UID FETCH 147859 (BODY.PEEK[1.MIME])).
A11 UID FETCH 147859 (BODYSTRUCTURE)
* 1 FETCH (BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "US-ASCII") NIL NIL "QUOTED-PRINTABLE" 911 16 NIL NIL NIL)(("TEXT" "HTML" ("CHARSET" "US-ASCII") NIL NIL "QUOTED-PRINTABLE" 2716 46 NIL NIL NIL)("IMAGE" "BMP" ("name" "ExchangeBabs.bmp") "<297231021@11102006-1D66>" NIL "BASE64" 2634474 NIL ("inline" ("filename" "ExchangeBabs.bmp")) NIL)("APPLICATION" "OCTET-STREAM" ("name" "Presence_K1=XItJBkk1xQi8X5JIgeeyjkn9EJTYKfxg9AogMsw3qHMhNnawbZ5wVWrmDFYTq1yP&MODE=IMG") NIL NIL "BASE64" 732 NIL ("inline" ("filename" "Presence_K1=XItJBkk1xQi8X5JIgeeyjkn9EJTYKfxg9AogMsw3qHMhNnawbZ5wVWrmDFYTq1yP&MODE=IMG")) NIL)("IMAGE" "GIF" ("name" "Blank Bkgrd.gif") "<297231021@11102006-1D6D>" NIL "BASE64" 202 NIL ("inline" ("filename" "Blank Bkgrd.gif")) NIL) "related" ("boundary" "-------45363d5545363d55") NIL NIL) "alternative" ("boundary" "-------446e3c8d446e3c8d") NIL NIL) UID 147859)
The com.sun.mail.imap.protocol.BODYSTRUCTURE object generated is shown below (I've omitted most of the fields and left what I considered relevent, simply enough to show the nesting):
bs= BODYSTRUCTURE (id=181)
bodies= BODYSTRUCTURE[2] (id=199)
[0]= BODYSTRUCTURE (id=207)
bodies= null
encoding= "QUOTED-PRINTABLE"
subtype= "PLAIN"
type= "TEXT"
[1]= BODYSTRUCTURE (id=208)
bodies= BODYSTRUCTURE[4] (id=213)
[0]= BODYSTRUCTURE (id=216)
bodies= null
encoding= "QUOTED-PRINTABLE"
subtype= "HTML"
type= "TEXT"
[1]= BODYSTRUCTURE (id=217)
bodies= null
encoding= "BASE64"
subtype= "BMP"
type= "IMAGE"
[2]= BODYSTRUCTURE (id=218)
bodies= null
encoding= "BASE64"
subtype= "OCTET-STREAM"
type= "APPLICATION"
[3]= BODYSTRUCTURE (id=219)
bodies= null
encoding= "BASE64"
subtype= "GIF"
type= "IMAGE"
subtype= "related"
type= "multipart"
subtype= "alternative"
type= "multipart"This particular message has a multipart/related content-type:
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----_=_NextPart_001_01C6ED7A.EC20BF80"So, it has 4 part specifiers, one for each part in multipart/related. Now, the question to all this is can I determine from the BODYSTRUCTURE object what the root part is (i.e. that it's multipart/related)? Or am I going about this the wrong way (i.e. should I be examining the content-type header first to find out that its multipart/related and the first part is "text/html")?
Basically, I'm trying to fetch various attributes of a message. In this case, the MIME headers of the various message parts (perhaps I'm stating the obvious but I'm not sure how to better explain what I'm trying to accomplish).
I've made some "progress". This morning when I continued working with the message described above, all of a sudden, the BODYSTRUCTURE I get back is different and as a result, the BODYSTRUCTURE object generated is different.
1 uid fetch 148032 (BODYSTRUCTURE)
* 1 FETCH (BODYSTRUCTURE (("TEXT" "HTML" ("charset" "iso-8859-1") NIL NIL "QUOTED-PRINTABLE" 2792 47 NIL NIL NIL)("IMAGE" "GIF" ("name" "Blank Bkgrd.gif") "<297231021@11102006-1D6D>" "Blank Bkgrd.gif" "BASE64" 202 NIL ("inline" ("filename" "Blank Bkgrd.gif")) NIL)("IMAGE" "BMP" ("name" "ExchangeBabs.bmp") "<297231021@11102006-1D66>" "ExchangeBabs.bmp" "BASE64" 2630728 NIL ("inline" ("filename" "ExchangeBabs.bmp")) NIL)("APPLICATION" "OCTET-STREAM" ("name" "Presence_K1=XItJBkk1xQi8X5JIgeeyjkn9EJTYKfxg9AogMsw3qHMhNnawbZ5wVWrmDFYTq1yP&MODE=IMG") NIL "Presence_K1=XItJBkk1xQi8X5JIgeeyjkn9EJTYKfxg9AogMsw3qHMhNnawbZ5wVWrmDFYTq1yP&MODE=IMG" "BASE64" 732 NIL ("inline" ("filename" "Presence_K1=XItJBkk1xQi8X5JIgeeyjkn9EJTYKfxg9AogMsw3qHMhNnawbZ5wVWrmDFYTq1yP&MODE=IMG")) NIL) "related" ("type" "text/html" "boundary" "----_=_NextPart_001_01C6ED7A.EC20BF80") NIL NIL) UID 148032)
1 OK FETCH completed.
bs= BODYSTRUCTURE (id=89)
bodies= BODYSTRUCTURE[4] (id=104)
[0]= BODYSTRUCTURE (id=115)
bodies= null
encoding= "QUOTED-PRINTABLE"
subtype= "HTML"
type= "TEXT"
[1]= BODYSTRUCTURE (id=116)
bodies= null
encoding= "BASE64"
subtype= "GIF"
type= "IMAGE"
[2]= BODYSTRUCTURE (id=117)
bodies= null
encoding= "BASE64"
subtype= "BMP"
type= "IMAGE"
[3]= BODYSTRUCTURE (id=118)
bodies= null
encoding= "BASE64"
subtype= "OCTET-STREAM"
type= "APPLICATION"
encoding= null
subtype= "related"
type= "multipart"NOTE: The UID differs from the previous example I'd given because I had archived the message and then moved it back to my Inbox.
Any ideas why the BODYSTRUCTURE reported by the server today is different from what it reported before? I have this message on both an Exchange 2000 and Mirapoint server. 2 days ago they both reported the BODYSTRUCTURE I indicated before, now they both have the BODYSTRUCTURE above.
PS. Sorry that this issue isn't really Javamail related anymore but I'd appreciate any input.
Similar Messages
-
OSB defaulting Content-Type to "multipart/related" in case of attachments
I have scenario where I need to invoke a REST Webservice from OSB which accepts only media types which has "multipart/atom+xml". OSB is used for protocol transformation converting the SOAP request into the HTTP POST request with multipart. I have Proxy Service which will unwrap the message from the SOAP Body and post the same message into the payload of the Business Service and the attachment is passed 'as is' from the SOAP Service. The external REST Service Provider expects the media type to be "multipart/atom+xml", but in OSB when an attachment is present in the message, OSB is overrding the "Content-Type" proeprty to "multipart/related" inspite of me setting the "Content-Type" property of HTTP Transport Header in OSB and as result external RESTFUL Service is throwing "415-Unsupported Media Type" error. Below is the test results. One interesting thing is, it happens only when there is attachment present in the message. In case of a message which doesn't have attachment any "Content-Type" specified in the Transport Header is passed by the OSB to the external service. Any help is highly appreciated.
OSB Transport Header
Added the header <http:Content-Type>multipart/atom+xml</http:Content-Type>
Actual Raw Message
POST http://xxx7200:7004/XXXInterfaces/identify HTTP/1.1
Content-Type: multipart/related; type="text/plain"; start="<Root_-328322390>"; boundary=MIME_Boundary; charset=UTF-8
MIME-Version: 1.0
User-Agent: Java1.6.0_17
Host: xxx7200:7004
Accept: text/html, image/gif, image/jpeg, */*; q=.2
Proxy-Connection: Keep-Alive
Content-Length: 4823
Expected Raw Message
POST http://xxx7200:7004/XXXInterfaces/identify HTTP/1.1
Content-Type: multipart/atom+xml; boundary=MIME_Boundary;
User-Agent: Java1.6.0_17
Host: xxx7200:7004
Accept: text/html, image/gif, image/jpeg, */*; q=.2
Proxy-Connection: Keep-Alive
Content-Length: 4803
-KC
Edited by: 799459 on Apr 8, 2011 5:36 AM
Edited by: 799459 on Apr 8, 2011 7:02 AM
Edited by: 799459 on Apr 8, 2011 7:13 AM
Edited by: 799459 on Apr 8, 2011 7:14 AMHTTP content-type header has the following limitation as per osb doc.
Oracle Service Bus run time may overwrite these headers in the binding layer when preparing the message for dispatch. If these headers are modified, $inbound and $outbound are updated accordingly. So what you are seeing may be working as designed. Cant the remote service accept the multi part related content type set up by osb ? -
How to send HTML mail with images multipart/related message
Hi,
Could any body tell me how to send HTML mail with images in "multipart/related" message,if any body can give the code ,it would be helpful.
ThanksHi,
Could any body tell me how to send HTML mail with
ith images in "multipart/related" message,if any body
can give the code ,it would be helpful.
ThanksHi!
Refer to
http://developer.java.sun.com/developer/onlineTraining/JavaMail/index.html
I've found it very helpful.
Look at the last part for a code showing how to send HTML mail!
Regards -
MIME Multipart/related to embed images in html files - Servlet
Hello,
My goal is to embed images in html/xhtml files to decrease latency when using slow networks. Think about mobile phones, if I have 10 images in one page, I will have 11 requests/responses to get the whole page.
The solution would be to embed all images using Content-type multipart/related, so I have one request to the whole pack.
How to do that in java? I mean, I need to set the content-type and build all parts encoding the images to base64.
I tried JavaMail API, there I can build messages like this and instead of send an e-mail, I can write:
myMimeMultipart.writeTo(response.getOutputStream());
The problem is: I am getting everything as text in my browser, including the MIME headers of each part. Another think is that the first header (the main one) doesn't appear too.
Any thoughts/other ideas?
Thanks in advance,
Andr� CarlucciIf memory serves me right, I believe in the Servlet spec you have access to the Response object. You "should" be able to set any headers you need there. In addition, you can get the output streams just as you described.
I did a similar thing, although slightly modified, to output dynamically-generated XLS (Excel Spreadsheet) files using a reporting engine called JasperReports. It wasn't a multipart response, however, so you may need to figure out how to handle that part of it, but in my case I set the mime-type header, then grabbed the output and started writing my XLS file too it. Once done, you close the streams and return the response. Worked perfect. -
Hi guys!
My first time on here so I hope this goes well!!
Ok, I'm on here because I have a problem. Basic jist of it is this. I'm trying to create a program which will read in emails. Everything was super until i recieved an email with the content type set as:
multipart related; type="multipart/alternative";
Any ideas as to how I can handle this because I'm totally stuck.
Thanks people!Ah, that is the next mime type I need to implement for the webmail at webmail.ufl.edu that we're developing. When adding support for different mime types I found http://www.iana.org/assignments/media-types/ to be very useful. RFC2387 http://www.rfc-editor.org/rfc/rfc2387.txt describes multipart/related. Below is my current understanding, I could be wrong:
Basicly you'll find a few parameters: type, start, and start-info.
The start parameter may have a value that is a content-ID. If it does then that is the first part to show to the user, in most cases these days it will be the content-ID of a part of text/html and the other parts will be images. If the start parameter doesn't exists you use the first part inside the multipart/related.
The type parameter is required and it will be equal to the content-type of the "start" part. It's here so you don't have to look ahead too see what time time you're going to display to the user. I think I'll be ignoring it infavor of looking directly at the part but I don't know yet.
I'll let your read the RFC for info on start-info. It's optional and I don't think you're gonna need to worry about it unless you plan to fork processes to view a part.
So to display multipart/related you find your start part and present that to the user. All other nested parts you supress unless the start part requires them. In the case of a text/html start part you'll want to rewrite any <img src="cid:foo"> tags to something that references one of the image parts so it can be displayed inline in the html.
Hope that helps. If I found myself to be wrong I'll put up a follow up post. -
No object DCH for MIME type multipart/related
Hi, everyone!!!
When I execute my code, I got this exception:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/related
boundary="----=_Part_0_20851530.1186777547859"
the funny things is : I got it work before. However, when I come back a few days to run, it doesn't.
I use tomcat 5.0,
mail.jar: version: 1.6
activation.jar:version: I don't know but I download the new ones in sun website.
Note: Also, when I run the code below in standalone application (java application), it works but doesn't work on tomcat application
Any help would be appreciate.
I tried some helps tips from other website such as http://www.jguru.com/faq/view.jsp?EID=237257
and still doesn't work :((((
***********Here is my code**********
********props is properties file...............
Authenticator auth = new SMTPAuthenticator();
// Get session
Session session = Session.getDefaultInstance(props, auth);
session.setDebug(true);
// Create the message
Message message = new MimeMessage(session);
// Fill its headers
message.setSubject(subject);
message.setFrom(new InternetAddress(from));
for(int x=0;x<recipients.size();x++)
message.addRecipient(Message.RecipientType.TO, new InternetAddress(recipients.get(x).toString()));
// Create your new message part
BodyPart messBodyPart=new MimeBodyPart();
// Set the HTML content, be sure it references the attachment
String htmlText="<h1>Hi</h1>"+"<img src=\"cid:picture\">";
// Set the content of the body part
messBodyPart.setContent(htmlText, "text/html");
// Create a related multi-part to combine the parts
MimeMultipart multipart=new MimeMultipart("related");
// Add body part to multipart
multipart.addBodyPart(messBodyPart);
// Create part for the image
messBodyPart=new MimeBodyPart();
// Fetch the image and associate to part
System.out.println("before dataSource");
DataSource fds=new FileDataSource(this.getString("image_location"));
System.out.println("After dataSource");
messBodyPart.setDataHandler(new DataHandler(fds));
System.out.println("*************** dataSource");
// Add a header to connect to the HTML
messBodyPart.setHeader("Content-ID", "<picture>");
// Add part to multi-part
multipart.addBodyPart(messBodyPart);
// Associate multi-part with message
message.setContent(multipart);
// Send message
System.out.println("Before Send");
Transport.send(message);
System.out.println("Finish");
}Thank you for your response!!!
I already found the solution. For those who still having problem send e-mail, make sure to put mail.jar and activation.jar in the same location.
Also, make sure to check catalina.xml to make sure those jars are same location!!!->That what I found out.
->I put jars in same location of my eclipse project but it turns out, the tomcat app server didn't put them in same location.
Anyway, Thank you java_2006 for your response!!!!!
:) -
JWSDP, WSDL and multipart/related problem
Hi,
I got a wsdl file that sends multipart/related soap messages and I want to generate a client stub using wscompile.
This is a short exerpt from the wsdl describing the message I want to send:
<wsdl:operation name="MessageSubmit">
<soap:operation/>
<wsdl:input>
<mime:multipartRelated>
<mime:part>
<soap:body use="literal"/>
</mime:part>
<mime:part>
<mime:content part="content" type="*/*"/>
</mime:part>
</mime:multipartRelated>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
The problem I have is that wscompile complains and says: "error: input message of binding operation "MessageSubmit" does not have a SOAP body extension". But it does! It's in there in the multipart/related tags.
The same wsdl works using tools from systinet. Doesn't JWSDP and wscompile handle multipart/related properly? Anyone else seen this?
Cheers,
Stefanwscompile does not support mime:multipart binding.
-
Help: Setting the multipart/related start parameter
I am wanting to set the "start" parameter on my ContentType header for
a multipart related message. Something like below.
DATA
ContentType: multipart/related; boundary=_XXX; start="<somecid@domain>"
I can set the content type to "multipart/related" by calling
MimeMultipart.setSubType(), but I cannot figure out how to set the
"start" parameter.
Anyone know.
Thanks,
ChrisDoes the SMTP server accept the mail for delivery of does it reject it?
If it doesn't reject it, is the issue with the format of the mime message, or possibly with whatever mail reader you are using.
It the SMTP server does reject the message I suppose the next question is what exactly is the "SMTP" server you are using?
IMHO you should not need to add anything to the mime multipart headers if using any RFC compliant SMTP server or reader. No-where in RFCs 2045,2046,2049,2822 etc can I find anything that relates to this "start" parameter.
If the SMTP server is a "proper" SMTP server it should not give two hoots about the mime multipart/mime body parts of the message as it "should" only be interested in the headers required to deliver the email. The mime multi/body part headers are generally not used to deliver. They are used by a Mime compliant mail reader to format and display the message.
We use Javamail to send regular "Newsletters" via a numbers of SMTP mail serviers running on IBM AS/400s, Sendmail on Unix, Lotus Notes servers and and others and have no problems.
If you want to send me your code to run on our systems to see if it really is your SMTP server or your message format that is giving trouble I can probably help. I can't open up a server for you as we have rather strict policies on who can do what with our servers. You can of course use our normal SMTP server to send a test email to me!!
Rgds,
SH -
I have a Macbook Air. I have MS office installed and work in Excel often with no issues. But When I download an excel spread sheet from a Ford web site I seem to be getting code and not the work sheet.
Example-
MIME-Version: 1.0
X-Document-Type: Workbook
Content-Type: multipart/related; boundary="====Boundary===="
--====Boundary====
Content-Location: file:///C:/HOLD.XHT
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset="utf-8"
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<HEAD>
<meta name="Excel Workbook Frameset">
<xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>BTB</x:Name>
<x:WorksheetSource HRef="./IBIT0001.xht"/>
</x:ExcelWorksheet>
<x:ExcelWorksheet>
<x:Name>GSM</x:Name>
<x:WorksheetSource HRef="./IBIT0002.xht"/>
</x:ExcelWorksheet>
<x:ExcelWorksheet>
<x:Name>RODetail</x:Name>
<x:WorksheetSource HRef="./IBIT0003.xht"/>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
</x:ExcelWorkbook>
</xml>
</HEAD>
</HTML>
--====Boundary====
Content-Location: file:///C:/IBIT0001.xht
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset="utf-8"
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<style>
<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
@page
{margin:1.0in .75in 1.0in .75in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-page-orientation:landscape;}
tr
{mso-height-source:auto;}
col
{mso-width-source:auto;}
br
{mso-data-placement:same-cell;}
.style21
{color:blue;
font-size:10.0pt;
font-weight:400;
font-style:normal;
text-decoration:underline;
text-underline-style:single;
font-family:Arial;Try search/ask in the forum devoted entirely to Excel issues:
http://answers.microsoft.com/en-us/mac/forum/macexcel -
Adding in-memory images to multipart/related
I'm constructing a multipart/related message and would like to add in-memory images to the MimeBodyPary instead of having JavaMail grab the images from the file system or from a URL.
Is there a simple way to do this using the JavaMail API? I think the solution might be to add a new DataSource implementation to the activation framework; something like a ByteArrayDataSource....Yes, that is the solution.
-
Unable to add Content-Type=multipart/related; type="text/xml";
hi all
am trying to add the following to my soap message that include attachment
but its not working
Content-Type=multipart/related; type="text/xml";
boundary="----=_Part_0_14732323.1039686671216";
Content-Length=4259;
can any body help plzzzzzzzzHello again,
My solution works and does not work. Content type is ok, but strange characters appear to the end of the attachment data.
Like this
...</E1EDS01></IDOC></ORDERS01>H úãž6×½ ã½5Õ×¼ÛgžÛNÝ}þ[ëMu201E
Where did these come from? I tested in a way that I changed the ContentType back to application/xml and attachment is fine again.
Regards,
Pekka -
SUBSCRIBE failure: unrecognized format: 'multipart/related'
Hi,
In one of my network I have few SPA942 and one SPA504 with console SPA500S.
Asterisk is 1.4.22. After connecting to the network console SPA500S I have a small problem.
The console works fine but there are many such messages:
[Jun 13 09:42:46] WARNING[2938]: chan_sip.c:15456 handle_request_subscribe: SUBSCRIBE failure: unrecognized format: 'multipart/related' pvt: subscribed: 0, stateid: -1, laststate: 0, dialogver: 0, subscribecont: 'hinty', subscribeuri: ''
What may cause this symptom?
Best regards,
DanielHi,
I have a solution of this problem.
One of SPA942 had the error in configuration.
Best regards,
Daniel -
Query on OM to tie SV # (warranty items) to their relative part numbers
Query on Order Management that joins the warranty part number ties it to the warrantied part
Problem Description: Using Apps 11.5.9
Need to take the attached code, add the fullfillment set from OM/Line Items/ Shipping tab, and tie the Warranty Part #, (identified by first two characters SV) to the part number (identified as FGA, TLA, etc...) it is associated with and return this on one line. I would need to do this for each item that has shipped and is under warranty, and exclud non-warranty items. I believe I would use Union to create a place holder for the SV #, but not sure how I would associate the SV to the FGA etc... using the fullfillment set and not get all lines of the order returned. Currently the code returns the shippable items, our FGA, TLA etc... and the SV-. SV is not a shippable item which do not ship off but have a fullfillment date rather then a shipment date.
Best guess that I have to write this is to say in second part of Union is where fullfillment set not null select ordered item where ordered item like SV- . And on first part of Union ignore lines where ordered item <> SV- to prevent SV lines from being returned, but wrapping them into the same line as the part number they are related to and under warranty. I am attaching the code I am going to use to create a union from, I have not written the select for the Fullfillment set.
SELECT OOH.ORDER_NUMBER
,ool.cust_model_serial_number CONTRACT_NUMBER
,ool.cust_po_number
,RACUS.CUSTOMER_NAME
,ool.CUSTOMER_DOCK_CODE SITE_NUMBER
,oefvoh.ship_to_address1
,oefvoh.ship_to_cty_st_zip_ctry
,oefvoh.bill_to_address1
,oefvoh.bill_to_cty_st_zip_ctry
,DELIV_SU.LOCATION DELIVER_TO
, DELIV_SU.LOCATION DELIVER_TO_LOCATION
, DELIV_LOC.ADDRESS1 DELIVER_TO_ADDRESS1
, DELIV_LOC.ADDRESS2 DELIVER_TO_ADDRESS2
,to_char(ool.line_number)||'.'||to_char(oolb.line_number) subline_number
,ool.ordered_item
,DECODE(OOL.SHIPPED_QUANTITY,NULL, OOL.ORDERED_QUANTITY,OOL.SHIPPED_QUANTITY) SHIPPED_QTY
,TO_CHAR (OOL.ACTUAL_SHIPMENT_DATE, 'DD-MON-YYYY')
,TO_CHAR (ool.fulfillment_date, 'DD-MON-YYYY')
,ool.accounting_rule_id
,rr.name ACCOUNTING_RULE
-- DECODE (OOL.ACTUAL_SHIPMENT_DATE,NULL, OOL.FULFILLMENT_DATE, OOL.ACTUAL_SHIPMENT_DATE) SHIPMENT_DATE
-- OOH.SHIP_FROM_ORG_ID
FROM ONT.OE_ORDER_HEADERS_ALL OOH,
ONT.OE_ORDER_LINES_ALL OOL,
ont.oe_order_lines_all oolb,
AR.HZ_CUST_SITE_USES_ALL SITE,
AR.HZ_LOCATIONS DELIV_LOC,
AR.HZ_PARTY_SITES DELIV_PS,
AR.HZ_CUST_SITE_USES_ALL DELIV_SU,
APPS.RA_ADDRESSES_ALL ADDR,
APPS.RA_CUSTOMERS RACUS,
OEFV_ORDER_HEADERS OEFVOH,
AR.RA_RULES RR
WHERE OOH.ORDER_NUMBER = '1000000' and
OOH.HEADER_ID = OOL.HEADER_ID
-- AND TRUNC(OOL.FULFILLMENT_DATE) BETWEEN V_BEG_DATE AND V_END_DATE
AND OOL.DELIVER_TO_ORG_ID = SITE.SITE_USE_ID (+)
--and ool.invoice_to_org_id = oefvoh.ship_to_org_id (+)
AND ooh.order_number = oefvoh.order_number
AND SITE.CUST_ACCT_SITE_ID = ADDR.ADDRESS_ID
AND DELIV_LOC.LOCATION_ID(+) = DELIV_PS.LOCATION_ID
AND DELIV_SU.SITE_USE_CODE = 'DELIVER_TO'
AND OOH.SOLD_TO_ORG_ID = RACUS.CUSTOMER_ID
and ool.line_type_id = oolb.line_id (+)
and rr.rule_id = ool.accounting_rule_id
AND NVL(OOL.SHIPPABLE_FLAG,'Y') = 'N' Non Shippable Item at line level
--AND OOL.FLOW_STATUS_CODE IN ('FULLFILLED','CLOSED')
--ool.fulfillment_date between '20-OCT-2008' and '25-NOV-2008'
order by ooh.order_number;I guess the way order entered goes like this:
1. You enter an order line for the part number (FGA). This is shippable
2. You enter another line for warranty item..This is not shippable but only fulfilled. Since the first line is tied to this line, you are using fulfillment sets to satisfy the fact that only when part line is shipped you want to close this line.
3. And you are looking for a query to join these two lines and show them in online.
Is that correct?
First in your query, found this:
and ool.line_type_id = oolb.line_id. Guess this (sorry to Say) wrong.
you can get the links for lines and fulfllment sets from oe_sets and oe_line_sets to get the link between two.
Please revert if you need clarification.
Thanks
Nagamohan -
Multipart/mixed and multipart/relative Content type probs
I tried to create a page from a servlet by using the multipart/mixed
Content-type.
All that is displayed inside the browser is the actual code including the
headers for the single parts of the page. I also checked it on the byte
level, getting the same results.
Does anybody have an idea ?
Thank you very much ,
Tom
Are you setting the content type prior to each response (i.e.
out.println("Content-type: text/html\n");)?
Below is an example (untested, but should work):
// Global constants
static final String BOUNDARY_STR ="Joe";
static final String BOUNDARY = "--"+BOUNDARY_STR;
static final String BOUNDARY_END = BOUNDARY+"--";
// Inside of doGet
res.setContentType("multipart/mixed;boundary="+BOUNDARY_STR);
ServletOutputStream out = res.getOutputStream();
// First Response
out.println(BOUNDARY);
out.println("Content-type: text/html\n");
out.println("<html>\n");
out.println("<head>\n");
out.println("<title>First Response</title>\n");
out.println("</head>\n");
out.println("<body>\n");
out.println("<h1>First Response</h1>\n");
out.println("</body>\n");
out.println("</html>\n");
out.println(BOUNDARY);
out.flush();
// Second Response
out.println(BOUNDARY);
out.println("Content-type: text/html\n");
out.println("<html>\n");
out.println("<head>\n");
out.println("<title>Second Response</title>\n");
out.println("</head>\n");
out.println("<body>\n");
out.println("<h1>Second Response</h1>\n");
out.println("</body>\n");
out.println("</html>\n");
out.println(BOUNDARY);
out.flush();
// Done
out.println(BOUNDARY_END);
out.flush();
Thomas Schmitt wrote in message <[email protected]>...
>I tried to create a page from a servlet by using the multipart/mixed
>Content-type.
>All that is displayed inside the browser is the actual code including the
>headers for the single parts of the page. I also checked it on the byte
>level, getting the same results.
>Does anybody have an idea ?
>Thank you very much ,
>Tom
>
>
-
MultiPart message parts extraction help
http://fisheye5.cenqua.com/browse/~raw,r=1.2/glassfish/mail/src/java/demo/msgshow.java
This is a demo of multipart message handling, and i see the recursion (implemented exactly like this) not to fit in this particular case (mine), and i seek another solution.
In general i have 2 questions. Is it a typical case when the message has nested mutiparts ?
and: can i introduce a method which translates the "nested" mutipart tree into a sequential list which is returned, and then processed by the main handler method, or i must make use of the depth levels ?
Thanks.Well.. Is it an error if i dont handle all parts ?Depends on your application. What will your application do if it encounters a message it can't
handle? Ignore it? Is that ok with you?
What are these mime types, multipart/mixed, mutipart/alternative etc. why do i need them ?
What is the minimum i need to implement in order to handle the basic case, as for example in the typical web-mail sites (some text, and some attachments)? what mechanism i need to use for reporting the not supporting of any "advanced" features.
In what case does the nested thing arise ?You have much to learn!
I'd suggest one of the books referenced here:
[http://java.sun.com/products/javamail/community/books/index.html|http://java.sun.com/products/javamail/community/books/index.html]
or the online resources here:
[http://java.sun.com/products/javamail/community/links/index.html|http://java.sun.com/products/javamail/community/links/index.html]
You'll also find the JavaMail specification helpful. (It's included in your JavaMail download bundle.)
Common causes of nested multiparts are:
A message with both plain and html alternate bodies, and also an attachment.
Signed or encrypted messages with attachments.
A forwarded message that contains attachments.
Maybe you are looking for
-
Boa tarde, senhores! Estou testando o cenário de devolução de IPI para NF-e 3.10 e constatei que o sistema do cliente não está calculando o percentual de IPI devolvido (impostoDevol:pDevol), resultando na rejeição Rejeição 610: "Total da NF difere do
-
Dear Friends, Can someone help me with this issue when ever am trying to backup my data to my Laptop Pc through Blackberry Destop software it keeps hanging when it get to this stage (Backing Up Smart Card Option 1of1 Record) Thank You Afolarin o
-
Multiple Accounts in data file
Hello Experts, I am using BPC NetWeaver 7.0 SP6 Has anyone discovered a way to import data form a delimited file where account data is stored in their own column? Or are we stuck with the verticle approach? For instance, I want to import data for mu
-
Iphoto 9.2 not keeping settings
Im running 10.7.2 and Iphoto 9.2 but my setting for displaying my pictures(Sorting By Keyword)do not seem to take. I will close down Iphoto and leave it set but when I reopen the app it comes back as if I hadnt changed the display settings. I have de
-
Hi All, Am working on HR-ABAP and am planning to learn the HR(Functional side) . could any one help me by sending useful materials ? My id is [email protected] Thanks & Regards Anil