uCosminexus Application Server, Web Service Development Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
This subsection describes the notes on using the methods of the SOAPPart class.
- The value specified in the value argument of the addMimeHeader(String name, String value) or setMimeHeader(String name, String value) methods is set up in the MIME header value.
- Even if the MIME header is set up in SOAPPart using the addMimeHeader(String name, String value) or setMimeHeader(String name, String value) methods, the MIME header does not appear on the sent and received SOAP message.
- If a MIME header name that is not specified in the SOAPPart object or null is specified in the arguments of the getMimeHeader(String name) method, null is returned.
- In the arguments of the setContent(Source source) method, specify a Source object with contents suitable for both XML and SOAP. If a Source object with invalid contents is specified, the operations are not guaranteed. Also, if null is specified, the operations are not guaranteed.
- If the following methods are used, the operations are not guaranteed:
- getContentId()
- getContentLocation()
- setContentId(String contentId)
- setContentLocation(String contentLocation)
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.