camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sushmita chandra <flightsoffantasy...@gmail.com>
Subject Re: Camel route is not working as expected when mtom is enabled
Date Tue, 23 Apr 2013 04:03:07 GMT
My custom webservice interface source:-

@MTOM(enabled=true, threshold=0)
@BindingType(value = SOAPBinding.SOAP12HTTP_MTOM_BINDING)
@WebService(name = "myService")
public interface MyService {
	@WebMethod
	@WebResult(name = "Response", targetNamespace = "")
	@RequestWrapper(localName = "myRequest", className =
"com.company.xyz.MyRequest")
	@ResponseWrapper(localName = "myResponse",className =
"com.ge.hcit.pil.bulkupload.MyResponse")
	public MyResponse myUploadFile(
			@WebParam(name = "MyRequestHandler", targetNamespace = "")
			MyRequestHandler MyRequestHandler);
}

Source of MyRequest class:-

    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "myUploadFile", propOrder = {
		"MyRequestHandler"
    })
    public class MyRequest {
	@XmlElement(required = true)
	protected MyRequestHandler MyRequestHandler ;

	public MyRequestHandler getMyRequestHandler() {
		return MyRequestHandler;
	}

	public void setMyRequestHandler (MyRequestHandler value) {
		this.MyRequestHandler = value;
	}
}

MyRequestHandler Source:-

    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "myRequestHandler", propOrder = {
		"attachment"
    })
    public class MyRequestHandler{

	@XmlElement(required = true)
	@XmlMimeType("application/octet-stream")
	protected DataHandler attachment;

	
	public DataHandler getAttachment() {
		return attachment;
	}

	public void setAttachment(DataHandler attachment) {
		this.attachment = attachment;
	}
}




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-route-is-not-working-as-expected-when-mtom-is-enabled-tp5731252p5731317.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message