Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top