Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: using a web service within a c++ service application



Permlink Replies: 1 - Last Post: Jun 25, 2015 4:07 PM Last Post By: Remy Lebeau (Te...
Michelle Courtn...

Posts: 3
Registered: 2/4/12
using a web service within a c++ service application
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2015 7:15 AM
I am trying to consume a web service in my c++ service application using the WSDL importer. I can import the web service but as soon as I want to use some of the webmethods by including service.h in my file I get the following error:
Unit1.cpp(64): E2015 Ambiguity between 'Soap::Wsdlbind::TService' and 'Vcl::Svcmgr::TService'

I imported this web service to a VCL forms application and that worked perfectly.

I am using RAD Studio XE2. How do I fix this?
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: using a web service within a c++ service application
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 25, 2015 4:07 PM   in response to: Michelle Courtn... in response to: Michelle Courtn...
Michelle wrote:

I am trying to consume a web service in my c++ service application
using the WSDL importer. I can import the web service but as soon as I
want to use some of the webmethods by including service.h in my file I
get the following error:

Unit1.cpp(64): E2015 Ambiguity between 'Soap::Wsdlbind::TService' and
'Vcl::Svcmgr::TService'

The error is self explanatory. There are multiple declarations for TService
in different namespaces, and the compiler does not know which one your code
is referring to.

I imported this web service to a VCL forms application and that worked
perfectly.

That is because Vcl::Svcmgr::TService does not exist in a VCL Forms app,
only in a VCL Service app.

How do I fix this?

On line 64 of Unit1.cpp, you will have to fully qualify which TService class
you are trying to access.

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02