I have written a simple WSDL web service with Java in Eclipse. Here is the Java code prototype of the service:
public static String vriteAnnouncement(String title, String body){
...
}
I have generated a proxy class for this WSDL service using the Microsoft wsdl.exe tool and make it a dll by using following commands from the Developer Command Prompt Visual Studio 2012:
wsdl /l:CS /protocol:SOAP WriteAnnouncement.wsdl
csc /t:library /r:System.Web.Services.dll /r:System.Xml.dll WriteAnnouncementService.cs
In my Windows 8 Store application, I then added a reference to this dll, then added following code in MainPage.xaml.cs:
WriteAnnouncementService was = new WriteAnnouncementService();
When I tried to run the application, I got this error:
The type ‘System.Web.Services.Protocols.SoapHttpClientProtocol’ is defined in an assembly that is not referenced.
You must add a reference to assembly ‘System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’.
C:\Users…\MainPage.xaml.cs Line 27 Column 13
I then added a reference to System.Web.Service and rebuilt the application. Now I am getting the following error:
The base class or interface ‘System.ComponentModel.Component’ in assembly ‘System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ referenced by type ‘System.Web.Services.Protocols.WebClientProtocol’ could not be resolved c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Web.Services.dll
Adding service reverence via “Add Service Reference” solved the problem.

But I have an other problem with the generated reference.cs file. There are multiple errrors about ambigous calls.
UPDATE!
I have solved the ambigous call promlem too.
Step by step solution for ambigous call:
To use service in project:
using GyteKiosk.WAServRef;to page code whic you will use service in.Call your service where you want to use: