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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:29:10+00:00 2026-05-28T08:29:10+00:00

I have a functional SOAP server using Perl and a C# client: SOAP Server

  • 0

I have a functional SOAP server using Perl and a C# client:

SOAP Server (Perl):

use SOAP::Lite +trace;
use SOAP::Transport::HTTP;
my $daemon = SOAP::Transport::HTTP::Daemon
  -> new (LocalAddr => '123.123.123.123', LocalPort => 8001, listen => 5);
$daemon -> dispatch_to('Queryserver::queryserver');
print "Contact SOAP server at ", $daemon->url, "\n";
$daemon->handle();

C# Client:

 public class Client : SoapHttpClientProtocol
    {

        public Client()
        {
            this.Url = "http://123.123.123.123:8001/QUERYSERVER";
        }

        [SoapDocumentMethod("urn:Queryserver#queryserver", RequestNamespace = "urn:Queryserver", ResponseNamespace = "urn:Queryserver", ResponseElementName = "queryserverResponse")]
        [return: System.Xml.Serialization.XmlElementAttribute("result")]
        public virtual string queryserver()
        {
            System.Object[] results = this.Invoke("queryserver", new object[0]);
            return ((string)(results[0].ToString()));
        }
    }

    class QueryServer
    {

        // this public string stores the cpuworld soap function, so the CPUObject can access it.

        public string resultQueryserverLoad;

        public void queryserver()
        {

            //bug fix below
            ServicePointManager.Expect100Continue = false;
            // end bugfix

            Client queryserverClient = new Client();

            string result;
            try
            {
                result = queryserverClient.queryserver();
            }
            catch (Exception exception)
            {

                result = exception.Message;
            }

            resultQueryserverLoad = result;
            //Console.WriteLine(result);
            //Console.ReadLine();

        }
    }

In the C# client I invoke the “Queryserver” class and “queryserver” method with the help of SOAP, although I would like to be able to invoke other methods in other classes via the C# client, how could I include an additional “dispatch_to(‘Queryserver::queryserver’);” in the PERL soap server?

E.g.

use SOAP::Lite +trace;
use SOAP::Transport::HTTP;
my $daemon = SOAP::Transport::HTTP::Daemon
  -> new (LocalAddr => '123.123.123.123', LocalPort => 8001, listen => 5);
$daemon -> dispatch_to('Queryserver::queryserver');
           **dispatch_to('<other class>::<other method>');**
print "Contact SOAP server at ", $daemon->url, "\n";
$daemon->handle();
  • 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-28T08:29:11+00:00Added an answer on May 28, 2026 at 8:29 am

    You did not read the documentation. dispatch_to takes a list.

    dispatch_to(
        'Queryserver::queryserver',
        'OtherClass::other_method',
    );
    

    You probably want to define just one class and have all its public methods available for dispatch instead of enumerating lots of fully-qualified method names manually.

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

Sidebar

Related Questions

I have a PHP SOAP server (using nuSOAP) that I consume with a C#-based
I have SOAP server running. I need to write a SOAP client for the
I have written a webservice using the PHP SOAP classes. It has functions to
I have created some functional categories that I use to show/hide markup elements. However,
I have an application which relies on a soap server to produce content. Additionally
I have a web service client using axis. It's using document/literal style and supposed
I'm connecting with a SUDS client to a SOAP Server whose wsdl contains many
I am going to have a daemon that will run on a FreeBSD server,
Ok my wsdl server is expecting this as a call : <soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ xmlns:esc=http://escoles.webservice.jovtitus.dasc.gencat.net
I have a functional datagrid that responds to itemClick events. Everything works, except that

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.