Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9094201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:17:48+00:00 2026-06-16T23:17:48+00:00

I have written a simple WSDL web service with Java in Eclipse. Here is

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T23:17:49+00:00Added an answer on June 16, 2026 at 11:17 pm

    Adding service reverence via “Add Service Reference” solved the problem.
    enter image description here

    enter image description here

    But I have an other problem with the generated reference.cs file. There are multiple errrors about ambigous calls.

    The call is ambiguous between the following methods or properties: ‘GyteKiosk.ServiceReference1.WriteAnnouncementClient.ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint,
    System.ServiceModel.Description.ClientCredentials)’ and
    ‘GyteKiosk.ServiceReference1.WriteAnnouncementClient.ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint,
    System.ServiceModel.Description.ClientCredentials)’ Reference.cs 115 13

    UPDATE!

    I have solved the ambigous call promlem too.
    Step by step solution for ambigous call:

    1. My service class name was “WriteAnnouncement” and the service method name was “vriteAnnouncement”. Changed method name to just “write”.
    2. Recreated Web Service in Eclipse without any test client.
    3. Took the WSDL file and placed in project folder.
    4. Deleted previously added service reference and readded service reference. Gave neme to service reference as “WAServRef”

    To use service in project:

    1. Add using GyteKiosk.WAServRef; to page code whic you will use service in.
    2. Call your service where you want to use:

          WriteAnnouncementClient wac = new WriteAnnouncementClient();
          Task<GyteKiosk.WAServRef.writeResponse> wres = wac.writeAsync("Gyte Kiosk", "Gyte Kiosk");
          String result = wres.Result.Body.writeReturn;
          this.pageTitle.Text = result;
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a simple Trie implementation. Here is the source code: #include <string>
i have written simple client server socket programming code as follow MyServer.java import java.io.DataInputStream;
I have written a simple HelloWorld web service. Which takes an ArrayList as parameter.
I have written a small webservice[Axis2/Java] which exposes a method public String Fill(String cacheName
I have written a simple WCF web service which is configured programmaticaly. It exposes
I have written a simple program that demonstrates garbage collection. Here is the code
I have written a simple WCF web service in C# which returns records from
I have written simple code to get content from xml file to php. $xml
I have written a simple web Application which is running(on Tomcat Server) fine on
I have written a simple Java dispatcher with a daemon thread to handle the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.