Aug 20, 2013 11:41
Well, for private use only, okay. But it is still not possible g
Aug 20, 2013 11:41
So, I'm back
Aug 20, 2013 11:14
I have to do the washing up, I'm back in some minutes
Aug 20, 2013 11:13
That way, you have an extra abstraction layer. The big advantage is, that the model and viewmodel are normally independent and reusable. If you are writing the same app for Windows 8 and Windows Phone 8, you just have to write two different views. The ViewModel and Model are exact the same. That means, you only need to test it once, you only need to write the business logic once. Saves you a lot of work
Aug 20, 2013 11:08
I already wrote it in my answer: I would not directly bind the webservice to the mainpage. Normally in WP8-Apps you build your apps with the MVVM architecture. You have a model, a view and a viewmodel.

The Model (in this case) is the data you get from the webservice. A view is your xaml-Page. Now you build another class, the viewmodel, which has all data the view needs. The ViewModel can request new data from the webservice and update it's internal list. The View will automatically update (since the viewmodel will implement the INotifyPropertyChanged interface).
Aug 20, 2013 11:05
ah okay
Aug 20, 2013 11:01
Maybe I'm missing the context currently.
You want to say something about code: What code? :D
Aug 20, 2013 10:51
Sure ;)
Aug 20, 2013 10:49
Yep, sometimes it's a bit harder to get the easy things done ;D
Aug 20, 2013 10:46
You will never put login information to some of your services directly into the app. ;)
Aug 20, 2013 10:45
Oh, with the avoidance I just meant the webservice again :)
Aug 20, 2013 10:43
which can easily be avoided
Aug 20, 2013 10:43
Otherwise you would need to put in the login information for the server. This is a security problem
Aug 20, 2013 10:42
Jepp, this is true. Accessing a sql server directly from the app is not possible. Even if it is, you will never do it directly. Always go via a webservice.
Aug 20, 2013 10:36
Hehe, yes. :)
Aug 20, 2013 10:32
Ah, another information: In about a week I'm going to delete the webservice from my server, so don't use it too long ;)
Aug 20, 2013 10:25
I had much problems creating my first webservices which will be consumed by an app, so it's no problem helping you out here ;)
Aug 20, 2013 10:23
If you need further information, feel free to contact me
Aug 20, 2013 10:23
oh, you already did :D
Aug 20, 2013 10:22
If it works, don't forget to accept the answer, so other people having the same problem, see which solution is working
Aug 20, 2013 10:22
You are welcome ;)
Aug 20, 2013 10:21
I also added some more additional information at the end of my answer
Aug 20, 2013 10:17
Aug 20, 2013 10:15
for retrieving the items
Aug 20, 2013 10:14
I updated the code
Aug 20, 2013 10:14
1
A: LongListSelector on WP8 linq-to-sql binding issue

RaubiEdit: Woops, I'm sorry, I didn't read that you are using WCF for this, since I thought WebAPI will be ok here (regarding to your question to web api and referencing your question here). But maybe you do not need to stick with WCF and can use other technologies? Marek, please take a look at http...

Aug 20, 2013 10:09
the webservice from my answer deployed on my server ;)
Aug 20, 2013 10:05
In the meantime, to have a little result: marek.cheeseware.net/api/list/get
Aug 20, 2013 10:02
second
Aug 20, 2013 10:02
You are welcome, but just wait a seond
Aug 20, 2013 09:59
Yes, I'm going to update my answer on Stack Overflow, but give me some time for this ;)
Aug 20, 2013 09:57
Yes, this is a big thing, including a lot of different technologies
Aug 20, 2013 09:54
Basically you create a website in IIS which is reachable from anywhere in the world and upload some files of the project
Aug 20, 2013 09:51
So why can't you deploy the webapi webservice?
Aug 20, 2013 09:44
I haven't done this before, because I'm deploying my webservice on my vServer, so I can access it from anywhere. :)
Aug 20, 2013 09:38
You are using Windows Server, therefore you dont use IIS Express, because you have IIS installed ;)
Aug 20, 2013 09:11
Yes. Otherwise you can't connect to the webservice from the emulator to your host machine
Aug 20, 2013 09:06
This is the official answer from Microsoft how to do it. It's written for WCF-Webservice, but don't care about this. What you need is the part where they set up the host to accept connection from the emulator
Aug 20, 2013 09:05
Okay, then there is a bit more work to do
Aug 20, 2013 09:02
Well, what you need is a webspace running .NET 4.5. If you don't have one, we need to find out, how to get access from the emulator to your host machine
Aug 20, 2013 09:01
Hehe, no.
Aug 20, 2013 08:58
Correct
Aug 20, 2013 08:57
The problem is: If you are using "localhost" in the emulator, it is a reference to the emulator itself. But your webservice is running outside of the emulator, so the connection will not be possible.
Aug 20, 2013 08:54
You don't have a webspace with .NET 4.5 running, where you can deploy the webservice?
Aug 20, 2013 08:51
You can't use localhost, since the app is running in the emulator and the webservice is running on the host
Aug 20, 2013 08:51
Oh, I forgot something :)
Aug 20, 2013 08:46
yes, thats correct
Aug 20, 2013 08:46
Set the BaseAddress to localhost:49611
Aug 20, 2013 08:46
ok, so switch back to the phone project in the other visual studio