dcsimg
I am generating MimeMessage by picking the data from a Properties file.but...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sandhya_Sree
Posted On:   Thursday, July 11, 2002 01:23 AM

I am generating MimeMessage by picking up the data from the Properties file... MimeMessage holds the SoapEnvelope as a MimeBodyPart. step 1: Once after getting the data from the properties file, iam generating a SOAP-Envelope and storing it in a file. the following is the SOAP-Envelope <?xml version="1.0" encoding="UTF-8"?> rt1t001 password F xml 1 2002-07-09 2002-07-11 D I cont_id subj Feb.zip N N step 2: Iam generating the MimeMessage by using the above generated SOAP-ENV as MimeBodyPart. The problem is... if the elements of the SOAP Enve   More>>

I am generating MimeMessage by picking up the data from the Properties file...


MimeMessage holds the SoapEnvelope as a MimeBodyPart.


step 1: Once after getting the data from the properties file, iam generating a SOAP-Envelope and storing it in a file.


the following is the SOAP-Envelope
<?xml version="1.0" encoding="UTF-8"?>
rt1t001 password F xml 1 2002-07-09 2002-07-11 D I cont_id subj Feb.zip N N




step 2: Iam generating the MimeMessage by using the above generated SOAP-ENV as
MimeBodyPart.



The problem is... if the elements of the SOAP Envelope r more than 16(number)



the MimeBodyPartie.,SOAP-Env of this MimeMessage generated will appear like this(with = at the end of the each line marked with red)



Message-ID: <1657422.1026371161161.JavaMail.%Petluri@sg01-puliva>
Mime-Version: 1.0
Content-Type: multipart/mixed; name=MHubRetrieve.xml; boundary = 5291341.1026371160900.JavaMail.%Petluri.sg01-puliva
Host: 192.168.20.14:7001
POST: /soapweb/mhb/SOAPListenerServlet
Action: MHubRetrieve
Content-Disposition: attachment; filename=MHubRetrieve.xml
Content-Description: This is the WebServices business message

--5291341.1026371160900.JavaMail.%Petluri.sg01-puliva
Content-Type: text/XML; name=MimeMessage.xml
Content-Transfer-Encoding: quoted-printable
SOAPAction: MHub
Content-Description: This is the Header part of the message
Content-Disposition: attachment; filename=MimeMessage.xml

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
=
ng/" xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/" xmlns:mhb=
= 3D"http://mhb.crimsonlogic.com.sg/schema/" xmlns:xsd=3D"http://www.sns.com =
.sg/XMLSchema/subMsgSchema" xmlns:xsi=3D"http://www.sns.com.sg/ebXML/MSHTRP=
/XMLSchema-instance"> =
xmlns:mhb=3D"http://mhb.crimsonlogic.com.sg/schema/"> rt1t001 =
hb:userID> password =
> F xml
lType>1 2002-07 =
-09 2002-07-11 D
b:dateType> I cont_id
tId> subj Feb.zip
ssageRequest>N N
>
--5291341.1026371160900.JavaMail.%Petluri.sg01-puliva--




which will definetely throw SAXException while parsing as the SOAP Envelope holds '=' in the mid.....



Note: If the elements passed r less than 16 the MimeBodyPart(SOAP-Env)generated will be perfect with out any (=) in between...



Iam unable to resolve this problem if any one have the solution for this kindly help me...



Thanks in advance,

Sandhya    <<Less

Re: I am generating MimeMessage by picking the data from a Properties file.but...

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, July 11, 2002 06:55 AM


Content-Transfer-Encoding: quoted-printable



Can you make it use "base64" as the Content-Transfer-Encoding, instead of "quoted-printable"? It sounds like there is some problem with attempting to parse the quoted-printable encoding (which uses the "=" as part of quoting/escape sequences) as if it were the content, without decoding it first?

About | Sitemap | Contact