Click here to Skip to main content
15,890,043 members

Comments by kalkwarf (Top 6 by date)

kalkwarf 9-Jun-13 15:16pm View    
Perhaps a poor choice of names and words. Pretend it is named FillMyArray, if you like. Further reading of the question would have made the problem clear.

The code shown is just an example of my problem, it is not alone intended to make 'sense'. I have tried to boil the issue down to a representative example rather than burden everyone with loads of irrelevant code. The issue is the values assigned in the service are not making it back to the client.
kalkwarf 30-May-13 16:10pm View    
Thanks for the Channel article.

So, there is no way to indicate that I want separate service instances within a single session?

I had contemplated creating separate endpoints for each piece of hardware, but that seemed to be a waste since I would have to create separate ServiceHost instances for each. However, I may have to do this.
kalkwarf 30-May-13 15:26pm View    
Yes, I read that article. I understand the basics. However, none of the three options fits my needs.

On the server, I have multiple pieces of hardware each with the same interface. Some of the pieces are identical or ultimately use the same class for communication. Therefore, I need to indicate for which I need a separate instance of that class. The logical method seems to be a channel.
kalkwarf 1-Jan-13 18:13pm View    
No, not using Entity Framework. I am just creating my entity classes and database by hand, then mostly using LINQ.

Perhaps, I should begin using EF. I have already defined my database, so that step is complete. I wonder how much of my current code would have to be re-worked... I'll start looking at retrofitting my code for EF.
kalkwarf 18-Dec-12 21:22pm View    
Once again, thanks for the help, Christian.

I've been doing some reading, but haven't concluded much. If I could impose once more for some advice...

Note, I am writing my web site using ASP.NET MVC.

Web Services seems reasonably easy to create. It appears that the latest technology is WCF (?).

My biggest question is what would the service interface look like? What I need is something like this:

UploadImageInfo(string caption, string description, string timestamp, byte[] image)

In particular, what should be the type of the last arg (image)? The examples I found seem to either use byte[] or an encoding (Base64...). The flip side is that I will likely be writing an Android app to send the data to my service. Is there a preferred method for sending binary files? Is one way or another simpler for an Android app?

I am beginning to think that a web service might be overkill. It seems like it may just be as simple to create an admin page and provide the means to do an old-style upload.

I understand that these are newbie questions and greatly appreciate any help you can offer.