Hi, I am having a problem using MTOM with JMS. I am using Axis2 version 1.3. I have tried both jaxbri data binding and adb data binding. Example wsdl and xsd are outlined below.
JaxBRI data binding: The generated code after JaxBRI does not seem to have the appropriate MTOM awareness. Does JaxBRi support MTOM? When a message is sent it does not contain any MIME boundaries, nor any attachments, it just a regular soap message with binary information in its envelope. ADB data binding: The generated code from adb data binding does seem to be MTOM aware. When the message is sent the Mime boundaries are present, the content type is application/xop+xml as expected BUT the binary data is sent inside the soap envelope and not as an attachment. Does anyone know why this is happening? Just to clarify, idealy i would like to be able to use JaxBRI data binding but if this is not possible i would like to be able to use ADB. Example WSDL: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:operationtypes="http://www.fineos.com/frontoffice/documentproduction/operationtypes" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://www.fineos.com/frontoffice/documentproduction/operationtypes"> <wsdl:types> <xsd:schema targetNamespace="http://www.fineos.com/frontoffice/documentproduction/operationtypes"> <xsd:include schemaLocation="../../documentproduction/DocumentProductionOperationsXSD/DocumentProductionOperations.xsd"/> </xsd:schema> </wsdl:types> <wsdl:message name="uploadFileRequest"> <wsdl:part name="parameters" element="operationtypes:uploadFile"/> </wsdl:message> <wsdl:message name="uploadFileResponse"> <wsdl:part name="parameters" element="operationtypes:uploadFileResponse"/> </wsdl:message> <wsdl:portType name="DocProdServicesPortType"> <wsdl:operation name="uploadFile"> <wsdl:input message="operationtypes:uploadFileRequest" wsaw:Action="urn:uploadFile"/> <wsdl:output message="operationtypes:uploadFileResponse" wsaw:Action="urn:uploadFileResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="DocProdServicesSOAP11Binding" type="operationtypes:DocProdServicesPortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="uploadFile"> <soap:operation soapAction="urn:uploadFile" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DocProdServicesSOAP12Binding" type="operationtypes:DocProdServicesPortType"> <wsdl:operation name="uploadFile"> <soap12:operation soapAction="urn:uploadFile" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="DocProdServicesHttpBinding" type="operationtypes:DocProdServicesPortType"> <http:binding verb="POST"/> <wsdl:operation name="uploadFile"> <http:operation location="DocProdServices/uploadFile"/> <wsdl:input> <mime:content type="text/xml" part="uploadFile"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="uploadFile"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="DocProdServices"> <wsdl:port name="DocProdServicesSOAP11port_http" binding="operationtypes:DocProdServicesSOAP11Binding"> <soap:address location="http://localhost:8080/axis2/service/DocProdServices"/> </wsdl:port> <wsdl:port name="DocProdServicesSOAP12port_http" binding="operationtypes:DocProdServicesSOAP12Binding"> <soap12:address location="http://localhost:8080/axis2/service/DocProdServices"/> </wsdl:port> <wsdl:port name="DocProdServicesHttpport" binding="operationtypes:DocProdServicesHttpBinding"> <http:address location="http://localhost:8080/axis2/service/DocProdServices"/> </wsdl:port> </wsdl:service> </wsdl:definitions> Example XSD: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.fineos.com/frontoffice/documentproduction/operationtypes"> <xsd:element name="uploadFile"> <xsd:complexType> <xsd:sequence> <xsd:element minOccurs="0" name="encodedFile" nillable="true" type="xsd:base64Binary" /> <xsd:element minOccurs="0" name="parentDirName" nillable="true" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="uploadFileResponse"> <xsd:complexType> <xsd:sequence> <xsd:element minOccurs="0" name="return" nillable="true" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> Any information on the problems oulined above would be very helpfull. Thanks, Cathal -- View this message in context: http://www.nabble.com/MTOM-with-JMS---tp15755158p15755158.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
