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 6018889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:20:24+00:00 2026-05-23T03:20:24+00:00

I need to invoke action on a web service, but i have no idea

  • 0

I need to invoke action on a web service, but i have no idea what the request envelope will look like (the services are attached at runtime by users).

Generally I’d like to generate soap envelope programmatically based on wsdl link. With given link get list of operation and such result for specific one:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:webservice.contentinn.com">
    <soapenv:Header>
        <urn:AuthHeaderElement>
            <token></company>
        </urn:AuthHeaderElement>
    </soapenv:Header>
    <soapenv:Body>
      <urn:TestMethod>
         <id></id>
      </urn:TestMethod>
    </soapenv:Body>
</soapenv:Envelope>

Anyone have idea how to do that?

  • 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-23T03:20:25+00:00Added an answer on May 23, 2026 at 3:20 am

    Answers to this question suggests a couple of approaches:

    • SoapUI: This is not really a programmatic approach.
    • Castle Dynamic Proxy: This is closer to what you sound like you need, but still not quite there.
    • The example here is probably what you’re after:

      The DynamicProxy allows you to create the dynamic WCF client at runtime by specifying the WSDL URI of the service. The DynamicProxy does not depend on the precompiled proxy or configuration. The DynamicProxy uses the MetadataResolver to download the metadata from the service and WsdlImporter to create the contract and binding at runtime. The compiled dynamic proxy can be used to invoke the operations on the service using reflection.

      The example shows how you can the dynamic proxy to invoke operations that use simple types and complex types. The flow of usage is as following.

      1. Create the ProxyFactory specifying the WSDL URI of the service.

        DynamicProxyFactory factory = new DynamicProxyFactory(“http://localhost:8080/WcfSamples/DynamicProxy?wsdl“);

      2. Browse the endpoints, metadata, contracts etc.

      factory.Endpoints factory.Metadata factory.Contracts factory.Bindings
      
      1. Create DynamicProxy to an endpoint by specifying either the endpoint or contract name.
      DynamicProxy proxy = factory.CreateProxy("ISimpleCalculator");
      

      OR

      DynamicProxy proxy = factory.CreateProxy(endpoint); 
      
      1. Invoke operations on the DynamicProxy
      double result = (dobule)proxy.CallMethod("Add", 1d ,2d);
      
      1. Close the DynamicProxy
      proxy.Close();
      

      To run the example: Compile the solution, run the CalculatorService.exe and then run the CalculatorDynamicClient.exe

    • There is a Java example here, too.

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

Sidebar

Related Questions

I need to invoke getoptlong multiple times, but after the first time ARGV is
Could someone help me on this, I have created simple web services using axis2
I would like to invoke a webservice via Android. I need to POST some
I need to invoke a VBA macro within an Excel workbook from a python
I need to invoke tesseract OCR (its an open source library in C++ that
I'm developing an application where I the need to invoke a method of a
I am creating a C# Windows Mobile application that I need to programmatically invoke
In a .NET 3.0 project, I need to make some calls via P/Invoke (specifically
I am calling a web service from a C# forms based app. ServReturnType obj
I need a visual element on my web page to resemble a button, with

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.