axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daniel.weh...@email.de
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:
#000000;">
<blockquote style="border-left: 2px solid blue; margin-left: 5px; padding-left: 5px; padding-top:
5px;"><br /><br />
<hr />
<b>Von:</b> Yogesh.Dhake@mizuhocbus.com<br /><b>Gesendet:</b>
14.05.2010 19:52:30<br /><b>An:</b> java-user@axis.apache.org<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
/></p>
<table width="100%">
<tbody>
<tr valign="top">
<td width="40%"><span style="font-family: sans-serif; font-size: xx-small;"><b>daniel.wehrle@email.de</b>
</span>
<p><span style="font-family: sans-serif; font-size: xx-small;">05/11/2010 11:40
AM</span></p>
<table border="1">
<tbody>
<tr valign="top">
<td bgcolor="white">
<div align="center"><span style="font-family: sans-serif; font-size: xx-small;">Please
respond to<br />java-user@axis.apache.org</span></div>
</td>
</tr>
</tbody>
</table>
<br /></td>
<td width="59%">
<table width="100%">
<tbody>
<tr valign="top">
<td>
<div align="right"><span style="font-family: sans-serif; font-size: xx-small;">To</span></div>
</td>
<td><span style="font-family: sans-serif; font-size: xx-small;">java-user@axis.apache.org</span></td>
</tr>
<tr valign="top">
<td>
<div align="right"><span style="font-family: sans-serif; font-size: xx-small;">cc</span></div>
</td>
<td></td>
</tr>
<tr valign="top">
<td>
<div align="right"><span style="font-family: sans-serif; font-size: xx-small;">Subject</span></div>
</td>
<td><span style="font-family: sans-serif; font-size: xx-small;">MTOM Message is
not Optimised</span></td>
</tr>
</tbody>
</table>
<br />
<table>
<tbody>
<tr valign="top">
<td></td>
<td></td>
</tr>
</tbody>
</table>
<br /></td>
</tr>
</tbody>
</table>
<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;0.urn:uuid:65C1D2065536957F4C1273589767052@apache.org&gt;";
start-info="application/soap+xml"; action="http://www.iTernity.com/AddToWork"<br />User-Agent:
Axis2<br />Host: 62.206.217.75<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;0.urn:uuid:65C1D2065536957F4C1273589767052@apache.org&gt;<br
/><br />&lt;?xml version='1.0' encoding='UTF-8'?&gt;<br /><br /><br
/>&lt;wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
soapenv:mustUnderstand="true"&gt;<br />&lt;wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="UsernameToken-122130810"&gt;<br />&lt;wsse:Username&gt;******&lt;/wsse:Username&gt;<br
/>&lt;wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"&gt;*********&lt;/wsse:Password&gt;<br
/>&lt;/wsse:UsernameToken&gt;<br />&lt;wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="Timestamp-1120194637"&gt;<br />&lt;wsu:Created&gt;2010-05-11T14:56:06.875Z&lt;/wsu:Created&gt;<br
/>&lt;wsu:Expires&gt;2010-05-11T15:01:06.875Z&lt;/wsu:Expires&gt;<br
/>&lt;/wsu:Timestamp&gt;&lt;/wsse:Security&gt;<br />&lt;wsa:To&gt;http://62.206.217.75/xxxxxx.asmx&lt;/wsa:To&gt;<br
/>&lt;wsa:ReplyTo&gt;&lt;wsa:Address&gt;http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt;/wsa:Address&gt;<br
/>&lt;/wsa:ReplyTo&gt;&lt;wsa:MessageID&gt;urn:uuid:65C1D2065536957F4C1273589766863&lt;/wsa:MessageID&gt;<br
/>&lt;wsa:Action&gt;http://www.xxxxxx.com/Add&lt;/wsa:Action&gt;<br
/>&lt;/soapenv:Header&gt;<br /><br />&lt;ns1:Add xmlns:ns1="http://www.xxxxxx.com"&gt;<br
/>&lt;ns1:wId&gt;201005eb5d49158818b05043604204&lt;/ns1:workId&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: java-user-unsubscribe@axis.apache.org<br />For additional
commands, e-mail: java-user-help@axis.apache.org<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></em></p>
<p>&nbsp;</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>
</span></blockquote>
</span></span></span></span></span></body>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message