Hi,

I try to enable MTOM for my Axis 15.1 Client connecting to a .NEt WSE 3 Web 
Service.
All Works fine eaven the MEssages are in MTOM MIME format.
But the big binary parts are not optimized with MTOM.

My Element from WSDl is:

  
   
     
     
     
     
     
     
   </s:sequence>
 </s:complexType>
</s:element>

I send 512 Kb or 1 MB by fileData but they are always send in base64 style...
Calling code is like:

WormRaidStub.Add param4 = new WormRaidStub.Add();
param4.setCId(count);
param4.setCLength(len);
param4.setDId(docIds[i]);
param4.setWId(workId);
DataSource source = new BinaryDataSource(buffer);
param4.setFileData(new DataHandler(source));
param4.setMData(null);
stub.add(param4);

Soap message is like:
POST /iTernity/iTernity.asmx HTTP/1.1
Content-Type: multipart/related; 
boundary=MIMEBoundaryurn_uuid_65C1D2065536957F4C1273589767051; 
type="application/xop+xml"; 
start="<0.urn:uuid:[email protected]>"; 
start-info="application/soap+xml"; action="http://www.iTernity.com/AddToWork";
User-Agent: Axis2
Host: 62.206.217.75
Transfer-Encoding: chunked

20f1
--MIMEBoundaryurn_uuid_65C1D2065536957F4C1273589767051
Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml"
Content-Transfer-Encoding: binary
Content-ID: <0.urn:uuid:[email protected]>

<?xml version='1.0' encoding='UTF-8'?>


<wsse:Security 
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
 soapenv:mustUnderstand="true">
<wsse:UsernameToken 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 wsu:Id="UsernameToken-122130810">
<wsse:Username>******</wsse:Username>
<wsse:Password 
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText";>*********</wsse:Password>
</wsse:UsernameToken>
<wsu:Timestamp 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 wsu:Id="Timestamp-1120194637">
<wsu:Created>2010-05-11T14:56:06.875Z</wsu:Created>
<wsu:Expires>2010-05-11T15:01:06.875Z</wsu:Expires>
</wsu:Timestamp></wsse:Security>
<wsa:To>http://62.206.217.75/xxxxxx.asmx</wsa:To>
<wsa:ReplyTo><wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
</wsa:ReplyTo><wsa:MessageID>urn:uuid:65C1D2065536957F4C1273589766863</wsa:MessageID>
<wsa:Action>http://www.xxxxxx.com/Add</wsa:Action>
</soapenv:Header>

<ns1:Add xmlns:ns1="http://www.xxxxxx.com";>
<ns1:wId>201005eb5d49158818b05043604204</ns1:workId>
<ns1:fileData>cmptP3M4Nnc/f3
[...]


What went wrong?
What can I do?

Thanks
-- Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to