axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: MTOM Message is not Optimized
Date Mon, 17 May 2010 06:37:13 GMT
<body class="mceContentBody " style="DISPLAY: block"><p><span style="font-size:
9pt;"><span style="font-family: verdana,geneva;"><span style="background-color:
transparent;"><span style="color: #000000;"><span style="color: #000000;">Thanks
but it seams:</span></span></span></span></span></p>
<span style="font-size: x-small;">
<p>Constants.Configuration.FORCE_MIME is not defined for Axis2 1.5.1<br /><br
/><br /></p>
</span><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span
style="background-color: transparent;"><span style="color: #000000;"><span style="color:
<blockquote style="border-left: 2px solid blue; margin-left: 5px; padding-left: 5px; padding-top:
5px;"><br /><br />
<hr />
<b>Von:</b><br /><b>Gesendet:</b>
14.05.2010 19:52:30<br /><b>An:</b><br /><b>Betreff:</b>
Re: MTOM Message is not Optimized<br /><br /><br /><span style="font-size:
small;">Hope below paragraph helps </span><br /><br /><span style="font-size:
small;">When this property is set to true any SOAP envelope which contains optimizable
content (OMText nodes containing binary content with optimizable flag "true") will be serialized
as a MTOM optimized message. <b>Messages will not be packaged as MTOM if they did not
contain any optimizable content even though MTOM is enabled.</b> But due considering
the policy assertions, there may be a policy saying, all the request should be optimized eventhough
there are any optimized contents. To support this phenomenon there is an entry called "forced
mime" which has to be set as</span>
<p><tt><span style="font-size: small;">&nbsp; &nbsp; &nbsp;
&nbsp; ServiceClient serviceClient = new ServiceClient ();<br />&nbsp; &nbsp;
&nbsp; &nbsp;Options options = new Options();<br />&nbsp; &nbsp; &nbsp;
&nbsp;options.setTo(targetEPR);<br />&nbsp; &nbsp; &nbsp; &nbsp;options.setProperty(Constants.Configuration.FORCE_MIME,
Constants.VALUE_TRUE);<br />&nbsp; &nbsp; &nbsp; &nbsp;serviceClient.setOptions(options);</span></tt>
<br /><tt><span style="font-size: small;"><br /></span></tt></p>
<p><span style="font-size: small;">Axis2 serializes all binary content nodes as
Base64 encoded strings regardless of they are qualified to be optimize or not, if</span>
<br /><br /><br /><br /><span style="font-family: sans-serif; font-size:
x-small;">Regards<br />Yogesh Dhake <br /></span><br /><br /><br
<table width="100%">
<tr valign="top">
<td width="40%"><span style="font-family: sans-serif; font-size: xx-small;"><b></b>
<p><span style="font-family: sans-serif; font-size: xx-small;">05/11/2010 11:40
<table border="1">
<tr valign="top">
<td bgcolor="white">
<div align="center"><span style="font-family: sans-serif; font-size: xx-small;">Please
respond to<br /></span></div>
<br /></td>
<td width="59%">
<table width="100%">
<tr valign="top">
<div align="right"><span style="font-family: sans-serif; font-size: xx-small;">To</span></div>
<td><span style="font-family: sans-serif; font-size: xx-small;"></span></td>
<tr valign="top">
<div align="right"><span style="font-family: sans-serif; font-size: xx-small;">cc</span></div>
<tr valign="top">
<div align="right"><span style="font-family: sans-serif; font-size: xx-small;">Subject</span></div>
<td><span style="font-family: sans-serif; font-size: xx-small;">MTOM Message is
not Optimised</span></td>
<br />
<tr valign="top">
<br /></td>
<br /><br /><br /><tt><span style="font-size: x-small;">Hi,<br
/><br />I try to enable MTOM for my Axis 15.1 Client connecting to a .NEt WSE 3 Web
Service.<br />All Works fine eaven the MEssages are in MTOM MIME format.<br />But
the big binary parts are not optimized with MTOM.<br /><br />My Element from WSDl
is:<br /><br />&nbsp;<br />&nbsp; <br />&nbsp; &nbsp;
<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp;
&nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp;
&lt;/s:sequence&gt;<br />&lt;/s:complexType&gt;<br />&lt;/s:element&gt;<br
/><br />I send 512 Kb or 1 MB by fileData but they are always send in base64 style...<br
/>Calling code is like:<br /><br />WormRaidStub.Add param4 = new WormRaidStub.Add();<br
/>param4.setCId(count);<br />param4.setCLength(len);<br />param4.setDId(docIds[i]);<br
/>param4.setWId(workId);<br />DataSource source = new BinaryDataSource(buffer);<br
/>param4.setFileData(new DataHandler(source));<br />param4.setMData(null);<br
/>stub.add(param4);<br /><br />Soap message is like:<br />POST /iTernity/iTernity.asmx
HTTP/1.1<br />Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_65C1D2065536957F4C1273589767051;
type="application/xop+xml"; start="&lt;;";
start-info="application/soap+xml"; action=""<br />User-Agent:
Axis2<br />Host:<br />Transfer-Encoding: chunked<br /><br
/>20f1<br />--MIMEBoundaryurn_uuid_65C1D2065536957F4C1273589767051<br />Content-Type:
application/xop+xml; charset=UTF-8; type="application/soap+xml"<br />Content-Transfer-Encoding:
binary<br />Content-ID: &lt;;<br
/><br />&lt;?xml version='1.0' encoding='UTF-8'?&gt;<br /><br /><br
/>&lt;wsse:Security xmlns:wsse=""
soapenv:mustUnderstand="true"&gt;<br />&lt;wsse:UsernameToken xmlns:wsu=""
wsu:Id="UsernameToken-122130810"&gt;<br />&lt;wsse:Username&gt;******&lt;/wsse:Username&gt;<br
/>&lt;wsse:Password Type=""&gt;*********&lt;/wsse:Password&gt;<br
/>&lt;/wsse:UsernameToken&gt;<br />&lt;wsu:Timestamp xmlns:wsu=""
wsu:Id="Timestamp-1120194637"&gt;<br />&lt;wsu:Created&gt;2010-05-11T14:56:06.875Z&lt;/wsu:Created&gt;<br
/>&lt;/wsu:Timestamp&gt;&lt;/wsse:Security&gt;<br />&lt;wsa:To&gt;;/wsa:To&gt;<br
/>&lt;/soapenv:Header&gt;<br /><br />&lt;ns1:Add xmlns:ns1=""&gt;<br
/>&lt;ns1:fileData&gt;cmptP3M4Nnc/f3<br />[...]<br /><br /><br
/>What went wrong?<br />What can I do?<br /><br />Thanks<br />--
Daniel<br /><br />---------------------------------------------------------------------<br
/>To unsubscribe, e-mail:<br />For additional
commands, e-mail:<br /><br /></span></tt><br
<hr />
<span style="color: #404040; font-size: xx-small;">
<p><span style="font-size: x-small;"></span></p>
<p><em>This transmittal and any attachments may contain confidential, privileged
or sensitive information and is solely for the use of the intended recipient. If you are not
the intended recipient, you are hereby notified that you have received this transmittal and
any attachments in error and any review, dissemination, distribution or copying thereof is
strictly prohibited. If you have received this transmittal and any attachments in error please
notify the sender and immediately destroy the message and all its attachments. Any opinions
herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank,
Ltd., Mizuho Corporate Bank (USA), Mizuho Securities USA Inc. or any other affiliates of Mizuho
Financial Group ("Mizuho"). Mizuho accepts no responsibility for the accuracy or completeness
of any information herein contained.<br />E-Mail received by or sent from officer of
Mizuho Securities USA Inc. (which is a registered U.S. broker-dealer and the entity through
which Mizuho generally conducts its investment banking, capital markets, and securities business
in the United States) is electronically archived and recorded and is subject to review and
monitoring by and/or disclosure to persons other than the recipient, including (but not limited
to) Mizuho Securities USA Inc. supervisory personnel. Such communications may be produced
to regulatory authorities or others with legal rights to the information.<br />If you
have any questions, or if you no longer wish to receive e-mail in accordance with Japanese
Act on Regulation of the Transmission of Specified Electronic Mail, please contact the sender
of this e-mail.<br />お問い合わせまたは特定電子メール法に 基づく送信停止のご要望等は、本電子メールの送信者にその旨ご連絡ください。</em></p>
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message