I submitted Jira 2541, with an attached wsdl and test client. Sorry it took so long. -- Valerie
-----Original Message----- From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 11, 2007 11:20 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] MTOM is not sending binary data as references for array of DataHandlers Sounds like a bug to me... Please log a JIRA.. If possible include your WSDL and a test case... Thilina On 4/12/07, Masin, Valerie <[EMAIL PROTECTED]> wrote: > > > One of my datatypes is an array of DataHandlers (DataHandler[]). (I > got the wsdl to generate this by setting my base64Binary's maxOccurs > to unbounded) > > <element name="documents" nillable="false" minOccurs="1" > maxOccurs="unbounded" type="base64Binary"/> > > When I use MTOM I had expected to see each of these base64Binary > objects as separate references to entities outside the soap message. > However, when viewing the soap message with tcpmon, they are being > sent 'by value' even though it is clear that mtom is enabled. If I > don't use an array then I get exactly what I expected. > > Here is what I see (fixed up for clarity). Under <ns1:documents> the > document (which is only 8 bytes) is embedded in the message rather > than referencing outside. I was counting on being able to use MTOM to > send more than one binary on the wire. Is it not possible to do this? > Thanks, Valerie > > POST /webservices2_0d/services/DocHarborServices HTTP/1.1 > SOAPAction: "urn:compositeCreateDocument" > User-Agent: Axis2 > Host: us00wl00.devportal.net:30004 > Content-Length: 2390 > Content-Type: multipart/related; > boundary=MIMEBoundaryurn_uuid_66DC1A499FD08057761176316581159; > type="application/xop+xml"; > start="<0.urn:uuid:[EMAIL PROTECTED]>"; > start-info="text/xml"; charset=UTF-8 > > --MIMEBoundaryurn_uuid_66DC1A499FD08057761176316581159 > content-type: application/xop+xml; charset=UTF-8; type="text/xml"; > content-transfer-encoding: binary > content-id: > <0.urn:uuid:[EMAIL PROTECTED]> > > <?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > <soapenv:Header /> > <soapenv:Body> > <ns1:compositeCreateDocument > xmlns:ns1="urn:webservices.docharbor.com"> > > <ns1:credential><ns1:username>apiuser</ns1:username></ns1:credential> > > <ns1:users><ns1:username>user1</ns1:username><ns1:customerName>cust1</ns 1:customerName></ns1:users> > <ns1:documents>MTIzLS0tLTENCg==</ns1:documents> > <ns1:documents>MTIzLS0tLTINCg==</ns1:documents> > > </ns1:compositeCreateDocument></soapenv:Body></soapenv:Envelope> > --MIMEBoundaryurn_uuid_66DC1A499FD08057761176316581159-- -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]