You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Dhanush Gopinath <dh...@mahindrabt.com> on 2004/05/18 10:43:15 UTC
Does Axis deal SwA only in Inline Form ??
Hi ,
I implemented my own Webservice which has following interface.
public interface TestServiceIF extends java.rmi.Remote {
public java.lang.String putMessage(String in0, javax.activation.DataHandler in1) throws java.rmi.RemoteException
}
I can succesfully send the attachment and get a response from the server. But this method of passing a DataHandler is a form of sending Attachment Inline.
Doesn't Axis 1.1 support sending attachment as a part of Soap Message .. some thing like shown below in bold black font ... If so How should i go abt it ? Please let me know ..
Thanks & Regards
Dhanush
-----=_Part_0_11546362.1084452373770
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <688C8DAE10FADCDB3869CE3450CC27CB>
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<HeaderElement soapenv:mustUnderstand="0" xmlns="">TheHeader</HeaderElement>
</soapenv:Header>
<soapenv:Body>
<BodyElement xmlns="">
<ChildElementOne xmlns="">First Child</ChildElementOne>
</BodyElement>
</soapenv:Body>
</soapenv:Envelope>
------=_Part_0_11546362.1084452373770
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-Id: <PDF_file>
%PDF-1.2
%âãÏÓ
391 0 obj
<<
/Linearized 1
/O 394
/H [ 1193 443 ]
/L 86389
/E
*********************************************************
Disclaimer:
This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.
*********************************************************
Visit us at http://www.mahindrabt.com
MimeBodyPart Object as parameter to a Web Service ??
Posted by Dhanush Gopinath <dh...@mahindrabt.com>.
Hi,
Can we pass a MimeBodyPart Object as parameter to a Web Service?
I tried declaring an Interface and i got this exception .
Some Remote Exception ; nested exception is:
java.io.IOException: No serializer found for class javax.mail.internet.MimeBodyPart in registry org.apache.axis.encoding.TypeMappingImpl@ec6b00
What could be the problem ? I tried setting the typeMapping in the WSDD file, but still the problem persist.
Do you people have any idea ? I am using an Axis 1.2beta version
Thanks & Regards
Dhanush
*********************************************************
Disclaimer:
This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.
*********************************************************
Visit us at http://www.mahindrabt.com