[Payed] Webservice client: Porting to .NET CF

[Payed] Webservice client: Porting to .NET CF

Post by Sven Rutte » Mon, 16 Jan 2006 02:17:04


Actually I am trying to port the client-part of this sample:

http://www.yqcomputer.com/

to .NET CF. Actually there are 2 problems: First is that .NET CF doesnt
support WSE. This should be able with opennetcf.WSE, but I just dont get it.
Using some tipps from the net I tried to port it and it did also build but
if I run it, it just crashs...

Second Problem is that in .net cf no Cookies are possible (also used in the
sample)

I am a student and I need to have this working, but I just can't get it to
work :-)

Would anyone of you be able to port the client-part of it to .NET CF (Would
be great in VB.NET, but C#.NET is good too :-), and if yes, would you do it
for 30$ (Paypal)?

I just have to be able to send a bigger file (larger then 4MB) using
SOAP/DIME to this webservice, how is not important, but it has to arrive :-)

The first who is providing a working solution will get the 30$!

Thanks a lot!

Sven
 
 
 

[Payed] Webservice client: Porting to .NET CF

Post by » Mon, 16 Jan 2006 04:11:28

So you're offering someone $30 to do your homework? It also seems to me
that $30 is pretty low for a port of just about anything but "Hello World."
Call me crazy, but I'd think the point of the exercise is to learn how to
write the code, not to show you know how to use PayPal. Maybe that's just
me though.

-Chris

 
 
 

[Payed] Webservice client: Porting to .NET CF

Post by Sven Rutte » Mon, 16 Jan 2006 04:25:21

Hi Chris

Sorry it's not for my study. I'm just a student (in economy) and don't have
lots of money to spend. It's something I do in free time for myself. Also it
seems that the project is not too big to port. I just can't find a solution
for it on the web, that's why I had the idea to set some reward...

Sven

"<ctacke/>" <ctacke_AT_OpenNETCF_com> schrieb im Newsbeitrag
 
 
 

[Payed] Webservice client: Porting to .NET CF

Post by Sven Rutte » Mon, 16 Jan 2006 19:51:04

hanks Chris

I have now tried to port the sample to VB.NET with opennet.wse.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

UploadFileChunks("\My Documents\device.jpg", 0)

End Sub

Private Sub UploadFileChunks(ByVal Filename As String, ByVal startPoint As
Long)

If (System.IO.File.Exists(Filename)) = True Then

Dim fs As New FileStream(Filename, FileMode.Open, FileAccess.Read)

Dim sendbytes As Integer

Dim bufferSize As Integer = 10 * 1024

Dim bytesRead As Integer = 0

Dim sentbytes As Integer = 0

Dim buffer(bufferSize) As Byte

Dim instanceid = ""

Dim ds As New BufferedUploadServer.Upload

instanceid = ds.Initialize("device.jpg", True) 'gets instance (GUID) from
server, works

MsgBox(instanceid)

If (sentbytes = 0) Then

bytesRead = fs.Read(buffer, 0, bufferSize)

While (bytesRead > 0)

Dim ms As New MemoryStream(buffer, 0, buffer.Length)

Dim dimeAttach = New DimeAttachment(instanceid, "image/gif",
OpenNETCF.Web.Services2.Dime.TypeFormatEnum.MediaType, ms)

ds.RequestAttachments.Add(dimeAttach)

ds.AppendChunk(instanceid, sentbytes, bytesRead) ' Breaks here with
"Instance (HERE GUID) not found

sentbytes += bytesRead

bytesRead = fs.Read(buffer, 0, bufferSize)

End While

fs.Close()

ds.RemoveInstance(instanceid)

End If

End If

End Sub

The problem is that .NET CF is not supporting cookiescontainer :-(
I need cookies to return a session, but it seems that there is no solution
to this around.

I saw that James Y. Wilson volunteered to build a cookie container but I
dont think he has finished it
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=2249&SearchTerms=cookies

Is there another possibilty to do this?

Thanks

Sven


"<ctacke/>" <ctacke_AT_OpenNETCF_com> schrieb im Newsbeitrag
news: XXXX@XXXXX.COM ...


 
 
 

[Payed] Webservice client: Porting to .NET CF

Post by Sven Rutte » Wed, 18 Jan 2006 02:08:49

Found a solution...


"Sven Rutten" < XXXX@XXXXX.COM > schrieb im Newsbeitrag