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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:15:32+00:00 2026-05-27T22:15:32+00:00

I using gSOAP for web services, but i have a problem i must compile

  • 0

I using gSOAP for web services, but i have a problem i must
compile 2 web services into one executable file, and some
functions have same names instead of argument for using
other prefix for function names.

Compilation Error:

X.o: In function `soap_get_string(soap*, char**, char const*, char const*)':
X.cpp:8669: multiple definition of `soap_get_string(soap*, char**, char const*, char const*)'
Y.o:Y.cpp:4763: first defined here

In Makefile:

wsdl2h -qlpr X.wsdl
wsdl2h Y.wsdl Y.xsd
soapcpp2 -qlpr -plpr -plprws $(GSOAP_IMPORT) -i -C X.h
soapcpp2 -psiwcprws $(GSOAP_IMPORT) -i -C Y.h

Have anyone idea how to solve this?

  • 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-27T22:15:33+00:00Added an answer on May 27, 2026 at 10:15 pm

    19.34 How to Combine Multiple Client and Server Implementations into one Executable The wsdl2h tool can be used to import multiple WSDLs
    and schemas at once. The service definitions are combined in one
    header file to be parsed by soapcpp2. It is important to assign
    namespace prefixes to namespace URIs using the typemap.dat file.
    Otherwise, wsdl2h will assign namespace prefixes ns1, ns2, and so on
    to the service operations and schema types. Thus, any change to a WSDL
    or schema may result in a new prefix assignment. For more details,
    please see Section 8.2. Another approach to combine multiple client
    and service applications into one executable is by using C++
    namespaces to structurally separate the definitions or by creating C
    libraries for the client/server objects as explained in subsequent
    sections. This is automated with wsdl2h option -q. Both approaches are
    demonstrated by example in the gSOAP distribution, the samples/link (C
    only) and samples/link++ (C++ with C++ namespaces) examples.

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

Sidebar

Related Questions

I'm refactoring legacy C++ system to SOA using gSoap. We have some performance issues
I am using gSOAP as a Web Service toolkit and have generated the stub
Using mercurial, I've run into an odd problem where a line from one committer
I am working on a web service project using gsoap. I am new to
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
From a .NET application, how do I consume a Web Service developed using gSoap
I've tried using gSOAP for accessing a web service (e.g. using supplied WSDL to
I'm using a custom build step to generate gSoap code from a .wsdl file
I am using gSoap to communicate with the web service. I am using Qt
I am using gSOAP to create C++ code from a WSDL document. The problem

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.