How can I transfer javax.activation.DataHandler to .NET soap client?
--------------------------------------------------------------------
Key: AXIS-1983
URL: http://issues.apache.org/jira/browse/AXIS-1983
Project: Axis
Type: Task
Reporter: Dmitry
WSDD file:
-----------------
<service name="JavaAttachment" provider="java:RPC">
<parameter name="className"
value="com.mycompany.soap.service.JavaAttachment"/>
<parameter name="allowedMethods" value="*"/>
<typeMapping
xmlns:apachesoap="http://xml.apache.org/xml-soap"
qname="apachesoap:DataHandler"
languageSpecificType="java:javax.activation.DataHandler"
serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"
deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
/>
</service>
-----------------
Service class:
-----------------
public class JavaAttachment {
private SecuredAttachmentAdapterManager manager =
AdapterManager.getInstance().getSecuredAttachmentAdapterManager();
public void createAttachment(String sessionId, String taskId, String name,
String description, DataHandler data) throws GranException {
manager.createAttachment(SessionManager.getInstance().getSessionContext(sessionId),
taskId, name, description, data);
}
public DataHandler getAttachment(String sessionId, String taskId, String
fileName) throws GranException {
return
manager.getAttachment(SessionManager.getInstance().getSessionContext(sessionId),
taskId, fileName);
}
}
------------------
Are there any possibilities to use this service from .NET client?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira