Sending attachments to .NET Client
Hi all, We have a java web service which has to send an image file as attachment to a .NET compact framework client. I followed the tutorials available in the internet. All the code available in the internet returns the attachment to the client as OMElement. But since .NET compact framework does not support OMElement, we need some other way for sending the attachments. Is it possible to send the attachment as java object? If so how? Any help would be appreciated. Thanks in Advance, Raghavan.V. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sending attachments to .NET Client
Raghvan, To solve the problem of sending attachments between .NET and Java, you can choose MTOM attachments. In that way your server code (Java) will deal with DataHanlder object while your client code (.NET) will deal with byte array. I have done that and it's working fine. Regards, Ashish Arya, Sungard Offshore Services (India) -Original Message- From: Raghavan [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 12:50 PM To: axis-user@ws.apache.org Subject: Sending attachments to .NET Client Importance: High Hi all, We have a java web service which has to send an image file as attachment to a .NET compact framework client. I followed the tutorials available in the internet. All the code available in the internet returns the attachment to the client as OMElement. But since .NET compact framework does not support OMElement, we need some other way for sending the attachments. Is it possible to send the attachment as java object? If so how? Any help would be appreciated. Thanks in Advance, Raghavan.V. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sending attachments to .NET Client
Thanks Arya. Could you please guide me to some sample java code as well as .NET client code for the MTOM attachments.. Rgds, Raghavan.V. -Original Message- From: Ashish Arya [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 1:43 PM To: axis-user@ws.apache.org Subject: RE: Sending attachments to .NET Client Raghvan, To solve the problem of sending attachments between .NET and Java, you can choose MTOM attachments. In that way your server code (Java) will deal with DataHanlder object while your client code (.NET) will deal with byte array. I have done that and it's working fine. Regards, Ashish Arya, Sungard Offshore Services (India) -Original Message- From: Raghavan [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 12:50 PM To: axis-user@ws.apache.org Subject: Sending attachments to .NET Client Importance: High Hi all, We have a java web service which has to send an image file as attachment to a .NET compact framework client. I followed the tutorials available in the internet. All the code available in the internet returns the attachment to the client as OMElement. But since .NET compact framework does not support OMElement, we need some other way for sending the attachments. Is it possible to send the attachment as java object? If so how? Any help would be appreciated. Thanks in Advance, Raghavan.V. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sending attachments to .NET Client
Let me give you an example indicating the way I have implemented MTOM attachment transmission between .NET (client) and J2EE (Server). Assume that you want to send an image as MTOM attachment. First write an interface or Class on service side with the following method: DataHandler getImage(String name); Use Java2WSDL tool to generate WSDL and then WSDL2Java to generate skeleton. Implement the logic of converting the image bytes into Datahandler either in skeleton or in your business components. Then on client side create proxy class and call getImage() method. The return type of this method would be byte[]. Now u can use this array to retrieve the image. I hope this will help you. Regards, Ashish, -Original Message- From: Raghavan [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 9:32 AM To: axis-user@ws.apache.org Subject: RE: Sending attachments to .NET Client Importance: High Thanks Arya. Could you please guide me to some sample java code as well as .NET client code for the MTOM attachments.. Rgds, Raghavan.V. -Original Message- From: Ashish Arya [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 1:43 PM To: axis-user@ws.apache.org Subject: RE: Sending attachments to .NET Client Raghvan, To solve the problem of sending attachments between .NET and Java, you can choose MTOM attachments. In that way your server code (Java) will deal with DataHanlder object while your client code (.NET) will deal with byte array. I have done that and it's working fine. Regards, Ashish Arya, Sungard Offshore Services (India) -Original Message- From: Raghavan [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 12:50 PM To: axis-user@ws.apache.org Subject: Sending attachments to .NET Client Importance: High Hi all, We have a java web service which has to send an image file as attachment to a .NET compact framework client. I followed the tutorials available in the internet. All the code available in the internet returns the attachment to the client as OMElement. But since .NET compact framework does not support OMElement, we need some other way for sending the attachments. Is it possible to send the attachment as java object? If so how? Any help would be appreciated. Thanks in Advance, Raghavan.V. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sending attachments to .NET Client
Thanks Arya.. Will try ur steps... Rgds, Raghavan.V. -Original Message- From: Ashish Arya [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 10:22 AM To: axis-user@ws.apache.org Subject: RE: Sending attachments to .NET Client Let me give you an example indicating the way I have implemented MTOM attachment transmission between .NET (client) and J2EE (Server). Assume that you want to send an image as MTOM attachment. First write an interface or Class on service side with the following method: DataHandler getImage(String name); Use Java2WSDL tool to generate WSDL and then WSDL2Java to generate skeleton. Implement the logic of converting the image bytes into Datahandler either in skeleton or in your business components. Then on client side create proxy class and call getImage() method. The return type of this method would be byte[]. Now u can use this array to retrieve the image. I hope this will help you. Regards, Ashish, -Original Message- From: Raghavan [mailto:[EMAIL PROTECTED] Sent: Thursday, October 11, 2007 9:32 AM To: axis-user@ws.apache.org Subject: RE: Sending attachments to .NET Client Importance: High Thanks Arya. Could you please guide me to some sample java code as well as .NET client code for the MTOM attachments.. Rgds, Raghavan.V. -Original Message- From: Ashish Arya [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 1:43 PM To: axis-user@ws.apache.org Subject: RE: Sending attachments to .NET Client Raghvan, To solve the problem of sending attachments between .NET and Java, you can choose MTOM attachments. In that way your server code (Java) will deal with DataHanlder object while your client code (.NET) will deal with byte array. I have done that and it's working fine. Regards, Ashish Arya, Sungard Offshore Services (India) -Original Message- From: Raghavan [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 12:50 PM To: axis-user@ws.apache.org Subject: Sending attachments to .NET Client Importance: High Hi all, We have a java web service which has to send an image file as attachment to a .NET compact framework client. I followed the tutorials available in the internet. All the code available in the internet returns the attachment to the client as OMElement. But since .NET compact framework does not support OMElement, we need some other way for sending the attachments. Is it possible to send the attachment as java object? If so how? Any help would be appreciated. Thanks in Advance, Raghavan.V. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]