Click here to Skip to main content
16,011,754 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Animated BMP? Pin
theJazzyBrain24-Aug-03 23:02
theJazzyBrain24-Aug-03 23:02 
Generalloading texture image from a Web Service Pin
Siddharth Jain20-Aug-03 9:46
Siddharth Jain20-Aug-03 9:46 
QuestionHow to bring Traffic to my website? Pin
mittalpa19-Aug-03 18:34
mittalpa19-Aug-03 18:34 
AnswerRe: How to bring Traffic to my website? Pin
Rocky Moore19-Aug-03 22:27
Rocky Moore19-Aug-03 22:27 
Generalscript that autimatically enters a the specified character at a certain point in a text box Pin
BPDecaf19-Aug-03 4:53
BPDecaf19-Aug-03 4:53 
GeneralRe: script that autimatically enters a the specified character at a certain point in a text box Pin
webProgrammer20-Aug-03 7:37
webProgrammer20-Aug-03 7:37 
GeneralProblem consuming java axis web service Pin
EnkelIk18-Aug-03 22:43
EnkelIk18-Aug-03 22:43 
GeneralUsing custom serializer? How? Pin
EnkelIk20-Aug-03 21:02
EnkelIk20-Aug-03 21:02 
Hi.

I found a component to make a .NET wrapper for the .jar defining the DataHandler class, so it feels like I have advanced one little step. So I include the wrapper dll and try to use DataHandler just like any object and the code compiles without warnings but I can't run it because as it turns out the DataHandler has no public default constructor. The error telling me that amy method cant be reflected.

Logically serializing works the same in both .net and on a java-plattform, and I have a sample code how to do this in java.

The java code looks like this:
java.lang.Class jafsf = org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.class;
java.lang.Class jafdf = org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory.class;

qName = new javax.xml.namespace.QName("http://activation.javax", "DataHandler");
cachedSerQNames.add(qName);
cls = javax.activation.DataHandler.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(jafsf);
cachedDeserFactories.add(jafdf);

so obviuosly there are 'custom' serializers for the DataHandler object. Now how can I use these in .NET?

My code currently looks like this:
<system.diagnostics.debuggerstepthroughattribute(), _
="" system.componentmodel.designercategoryattribute("code"),="" system.web.services.webservicebindingattribute(name:="SecureCertificateFetcherSoapBinding" ,="" [namespace]:="http://some.where.tm/axis/services/SecureServiceFetcher" ),="" system.xml.serialization.soapincludeattribute(gettype(datahandler)),="" system.xml.serialization.soapincludeattribute(gettype(errorobject))=""> _
Public Class SecureServiceFacadeClientService
Inherits System.Web.Services.Protocols.SoapHttpClientProtocol

'<remarks>
Public Sub New()
MyBase.New()
Dim urlSetting As String = System.Configuration.ConfigurationSettings.AppSettings("MYDAC.MyService.SecureServiceFacadeClientService")
If (Not (urlSetting) Is Nothing) Then
Me.Url = String.Concat(urlSetting, "")
Else
Me.Url = "http://some.where.tm/axis/services/SecureServiceFetcher"
End If
End Sub

'<remarks>
<system.web.services.protocols.soaprpcmethodattribute("", requestnamespace:="http://some.where.tm/axis/services/SecureServiceFetcher" ,="" responsenamespace:="http://some.where.tm/axis/services/SecureServiceFetcher" )=""> _
Public Function getService(ByVal in0 As UserVO, ByVal in1 As SecureServiceVO) As <system.xml.serialization.soapelementattribute("getservicereturn")> SecureServiceVO
Dim results() As Object = Me.Invoke("getService", New Object() {in0, in1})
Return CType(results(0), SecureServiceVO)
End Function

'<remarks>
Public Function BegingetService(ByVal in0 As UserVO, ByVal in1 As SecureServiceVO, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
Return Me.BeginInvoke("getService", New Object() {in0, in1}, callback, asyncState)
End Function

'<remarks>
Public Function EndgetService(ByVal asyncResult As System.IAsyncResult) As SecureServiceVO
Dim results() As Object = Me.EndInvoke(asyncResult)
Return CType(results(0), SecureServiceVO)
End Function

End Class

where the class SecureServiceVO contains the DataHandler and ErrorObject (which has a public default constructor).

My quess would be that I need to replace the
System.Xml.Serialization.SoapIncludeAttribute(GetType(DataHandler)), _
line with something pointing at the org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.class;
How do I do this? And how do I specify that this is the serializer and there is another factory for the deserializer?

Please help!
/EnkelIk
QuestionHow to get web site designed. Pin
Segal18-Aug-03 19:34
Segal18-Aug-03 19:34 
AnswerRe: How to get web site designed. Pin
Roger Wright18-Aug-03 21:44
professionalRoger Wright18-Aug-03 21:44 
Generalmsgraph.chart ActiveX- white border, can't get rid of it... Pin
dandy7218-Aug-03 10:45
dandy7218-Aug-03 10:45 
GeneralJavascript/DOM Pin
andyg.10118-Aug-03 0:48
andyg.10118-Aug-03 0:48 
GeneralRe: Javascript/DOM Pin
DFU2318-Aug-03 5:30
DFU2318-Aug-03 5:30 
GeneralIIS keystore error Pin
darseh16-Aug-03 22:53
darseh16-Aug-03 22:53 
GeneralGenerating satellite assembly problem Pin
Member 4337813-Aug-03 18:12
Member 4337813-Aug-03 18:12 
GeneralUploading file to server Pin
pradipta12-Aug-03 3:05
pradipta12-Aug-03 3:05 
GeneralRe: Uploading file to server Pin
Not Active12-Aug-03 4:22
mentorNot Active12-Aug-03 4:22 
GeneralRe: Uploading file to server Pin
alex.barylski14-Aug-03 9:13
alex.barylski14-Aug-03 9:13 
GeneralRe: Uploading file to server Pin
Vasudevan Deepak Kumar15-Aug-03 19:46
Vasudevan Deepak Kumar15-Aug-03 19:46 
GeneralIIS Problem!!!!!! Pin
Anonymous11-Aug-03 19:49
Anonymous11-Aug-03 19:49 
GeneralRe: IIS Problem!!!!!! Pin
Roger Wright11-Aug-03 22:56
professionalRoger Wright11-Aug-03 22:56 
GeneralRe: IIS Problem!!!!!! Pin
Anonymous12-Aug-03 18:55
Anonymous12-Aug-03 18:55 
GeneralRe: IIS Problem!!!!!! Pin
Roger Wright12-Aug-03 19:31
professionalRoger Wright12-Aug-03 19:31 
Generalplease recommend some develop tools about ASP.net Pin
simonchen.net10-Aug-03 21:25
simonchen.net10-Aug-03 21:25 
GeneralRe: please recommend some develop tools about ASP.net Pin
Radoslav Bielik11-Aug-03 21:29
Radoslav Bielik11-Aug-03 21:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.