Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SOAP Service Reference in Windows Phone 8.1 Universal app

I try to add a reference to a SOAP WebService. No problem adding it to the Windows 8.1 part of the project.

But no chance to do the same for the WP 8.1. Somehow I could only add a new "Push Notification" as a reference.

Adding the generated reference.cs to the WP project directly leads to many unresolved references in System.ServiceModel (i.e. System.ServiceModel.Channels not found).

Any idea? Maybe its not in the current beta?

VS 2013 Update 2 RC.

like image 857
Obiwan007 Avatar asked Apr 06 '14 13:04

Obiwan007


1 Answers

While not a proper solution, a workaround has been posted by Microsoft: WCF Add Service Reference Not Supported for Windows Phone 8.1 XAML Applications

Windows Phone 8.1 XAML applications does not support the System.ServiceModel namespace, and therefore you are not able to right click references in the project and choose Add Service Reference. The recommended solution is to add a REST endpoint to your WCF endpoint, and access the WCF application through the REST endpoint using HttpClient.

like image 73
CosworthTC Avatar answered Nov 05 '22 12:11

CosworthTC