Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.25
-
Fix Version/s: 1.26
-
Component/s: None
-
Labels:None
-
Environment:ant, mac OS X
-
Number of attachments :1
Description
I have a web service method that returns a document as MTOM. I have annotated this and working with cxf backnd and cxf client.
Now I'd like to generate Enunciate WSDL for this method. However the resulting XML is does miss the namespace and mime type that allows CXF to generate the roper client method with the DataHandler. Instead it generates a byte array.
@XmlMimeType("application/octet-stream")
public DataHandler getFileContent() {
returnfileContent;
}
publicvoid setFileContent(
@XmlMimeType("application/octet-stream") DataHandler fileContent) {
this.fileContent = fileContent;
}
and
@WebService(targetNamespace = "report")
@SOAPBinding(parameterStyle = ParameterStyle.WRAPPED, style = javax.jws.soap.SOAPBinding.Style.DOCUMENT, use = Use.LITERAL)
@MTOM(enabled=true)
public interface ReportApi {
results in
<xs:complexTypename="report">
<xs:sequence>
<xs:elementname="fileName"type="xs:string"minOccurs="0"/>
<xs:elementname="fileContent"type="xs:base64Binary"minOccurs="0"/>
</xs:sequence>
</xs:complexType>
where I woudld expect the http://www.w3.org/2005/05/xmlmime namespace in the MTOM spec
<xs:complexTypename="report">
<xs:sequence>
<xs:elementminOccurs="0"name="fileContent"xmlns:ns1="http://www.w3.org/2005/05/xmlmime"ns1:expectedContentTypes="application/octet-stream"type="xs:base64Binary"/>
<xs:elementminOccurs="0"name="fileName"type="xs:string"/>
</xs:sequence>
</xs:complexType>
-
Hide
- Enunciate-WSDLTestXmlMimeType.zip
- 29/Dec/11 12:27 PM
- 4.19 MB
- Kaj Kandler
-
- Enunciate-WSDLTest-XmlMimeType/.classpath 0.3 kB
- Enunciate-WSDLTest-XmlMimeType/.project 0.4 kB
- Enunciate-WSDLTest-XmlMimeType/build.xml 2 kB
- Enunciate-WSDLTest-XmlMimeType/enunciate-config.xml 1 kB
- Enunciate-WSDLTest-XmlMimeType/roleApi.expected.wsdl 3 kB
- Enunciate-WSDLTest-XmlMimeType/.../org.eclipse.jdt.core.prefs 0.6 kB
- Enunciate-WSDLTest-XmlMimeType/.../AppFault.class 1 kB
- Enunciate-WSDLTest-XmlMimeType/.../AppFaultDetails.class 1 kB
- Enunciate-WSDLTest-XmlMimeType/.../ErrorCode.class 2 kB
- Enunciate-WSDLTest-XmlMimeType/.../package-info.class 0.4 kB
- Enunciate-WSDLTest-XmlMimeType/.../Role.class 1 kB
- Enunciate-WSDLTest-XmlMimeType/.../RoleApi.class 0.7 kB
- Enunciate-WSDLTest-XmlMimeType/.../RoleName.class 1 kB
- Enunciate-WSDLTest-XmlMimeType/.../RoleApiImpl.class 1 kB
- Enunciate-WSDLTest-XmlMimeType/.../package-info.class 0.4 kB
- Enunciate-WSDLTest-XmlMimeType/.../apple-touch-icon.png 0.6 kB
- Enunciate-WSDLTest-XmlMimeType/.../application.wadl 0.4 kB
- Enunciate-WSDLTest-XmlMimeType/.../crossdomain.xml 0.8 kB
- Enunciate-WSDLTest-XmlMimeType/.../home.gif 0.1 kB
- Enunciate-WSDLTest-XmlMimeType/.../prettify.css 0.7 kB
- Enunciate-WSDLTest-XmlMimeType/.../style.css 19 kB
- Enunciate-WSDLTest-XmlMimeType/.../downloads.html 4 kB
- Enunciate-WSDLTest-XmlMimeType/.../el_fault_appFaultDetails.html 5 kB
- Enunciate-WSDLTest-XmlMimeType/.../el_role.data_role.html 5 kB
- Enunciate-WSDLTest-XmlMimeType/.../fault.html 4 kB
- Enunciate-WSDLTest-XmlMimeType/.../fault.xsd 0.7 kB
- Enunciate-WSDLTest-XmlMimeType/.../fault_appFaultDetails.html 5 kB
- Enunciate-WSDLTest-XmlMimeType/.../fault_errorCode.html 5 kB
- Enunciate-WSDLTest-XmlMimeType/.../favicon.ico 1 kB
- Enunciate-WSDLTest-XmlMimeType/.../index.html 6 kB