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

  • Home
  • SEARCH
  • 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 6590349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:17:17+00:00 2026-05-25T17:17:17+00:00

I have a .Net web application that needs to interact with a Java-based system

  • 0

I have a .Net web application that needs to interact with a Java-based system via SOAP.

I have not worked with web services other than some basic WCF and would appreciate any guidance on this.

Basically, I was thinking about creating a WCF proxy client to connect to the SOAP web services. The system is a 3rd party Java-based system that provides a SOAP interface.

The sample code provided used wsdl to generate the proxy, but isn’t that before the times of WCF?

UsernameToken aToken = new UsernameToken("root", "root", PasswordOption.SendPlainText);

MetadataService.MetadataService aMetadataService = new MetadataService.MetadataService();

SoapContext aContext = aMetadataService.RequestSoapContext;

aContext.Security.Tokens.Add(aToken);

String aXmp = aMetadataService.s_getXmpFromRecordID(wAssetId.Text);

Any suggestions?
Thank you!

  • 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-05-25T17:17:18+00:00Added an answer on May 25, 2026 at 5:17 pm

    The WSDL is all you need to generate a client proxy for the web service. And no, this is not before the times of WCF. WSDL was designed specifically for this purpose.

    The simplest solution is to use svcutil to create the code.

    You call svcutil with the WSDL of the web service and you get back the client code along with the configuration for it.

    You then call the operations of the web service as methods on the client instance. It’s as simple as that!

    For example, lets consider a basic web service like this one: http://www.startvbdotnet.com/web/sample2.asmx (it’s basic math exposed as a web service which I found by google-ing).

    To generate a client for this I would use svcutil like so:

    svcutil http://www.startvbdotnet.com/web/sample2.asmx?wsdl
    

    This command will generate the Sample.cs and output.config files (the code and configuration for the client).

    You add these to your project (along with needed assemblies like System.ServiceModel and System.Runtime.Serialization) and now you can call the web service with code like this one:

    using (SampleSoapClient proxy = new SampleSoapClient())
    {
        Console.WriteLine(proxy.Add(6, 2));
        Console.WriteLine(proxy.Substract(6, 2));
        Console.WriteLine(proxy.Divide(6, 2));
        Console.WriteLine(proxy.Multiply(6, 2));
    }
    

    WCF makes things easy. Adding security is also simple with use of proper configuration or attributes on the service classes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page in my vb.net web application that needs to toss a
Suppose you have two seperate ASP.NET Web Application projects that both need to use
I have 6 servers that i need to deploy my ASP.NET web application to.
I have several RequiredFieldValidators in an ASP.NET 1.1 web application that are firing on
I have a web application that was originally written on .Net 1.1 Framework. I
I have a medium sized application that runs as a .net web-service which I
I have a really simple ASP.NET web application and a web setup project that
I have an .Net Froms application that displays web pages through a WebBrowser control.
I have a web application developed with ASP.net and C# that is running on
We have created a web application, using ASP.NET, that allows users to upload documents

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.