axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valerie Masin (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-2541) MTOM not using references for array of DataHandlers
Date Mon, 16 Apr 2007 18:27:15 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-2541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Valerie Masin updated AXIS2-2541:
---------------------------------

    Attachment: file123-2.txt
                file123-1.txt

> MTOM not using references for array of DataHandlers
> ---------------------------------------------------
>
>                 Key: AXIS2-2541
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2541
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.1.1
>         Environment: Client is written in java and running on Windows XP
>            Reporter: Valerie Masin
>         Attachments: composite.wsdl, DocHarborWebServices.java, file123-1.txt, file123-2.txt
>
>
> 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)
>  
> When I set the client to 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'. If I don't use an array then the binary
data is sent correctly outside the soap message.
>  
> Here is what I see (reformatted for clarity). Under <ns1:documents> the document
(which is only 8 bytes) is embedded in the message rather than referencing outside. 
>  
> POST /webservices2_0e/services/DocHarborServices HTTP/1.1
> SOAPAction: "urn:compositeCreateDocument"
> User-Agent: Axis2
> Host: us00wl00.devportal.net:30004
> Content-Length: 691
> Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_FA25913A7339BC61F81176744499225;
type="application/xop+xml"; start="<0.urn:uuid:FA25913A7339BC61F81176744499226@apache.org>";
start-info="text/xml"; charset=UTF-8
> --MIMEBoundaryurn_uuid_FA25913A7339BC61F81176744499225
> content-type: application/xop+xml; charset=UTF-8; type="text/xml";
> content-transfer-encoding: binary
> content-id: <0.urn:uuid:FA25913A7339BC61F81176744499226@apache.org>
> <?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:user>idsuser</ns1:user>
>         <ns1:documents>MTIzLS0tLTENCg==</ns1:documents>
>         <ns1:documents>MTIzLS0tLTINCg==</ns1:documents>
>     </ns1:compositeCreateDocument>
> </soapenv:Body>
> </soapenv:Envelope>
> --MIMEBoundaryurn_uuid_FA25913A7339BC61F81176744499225--

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message