aspose file tools
The moose likes Web Services and the fly likes C++ Client linking error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "C++ Client linking error" Watch "C++ Client linking error" New topic
Author

C++ Client linking error

John McDonald
Ranch Hand

Joined: Jul 01, 2003
Posts: 112
Hi there,
I am using Axis C++ client to consume a web service. I get the client code generated sucessfully. But I can't build a client executable due to some linking error. I am using Microsoft dev studio. I followed the instruction http://ws.apache.org/axis/cpp/windev-guide.html#consumews but still have the follwoing error. Can someone help, please? Thank you very much.

John

-------------------Configuration: ClaimIQ - Win32 Release--------------------
Linking...
Creating library Release/ClaimIQ.lib and object Release/ClaimIQ.exp
LIBC.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Release/ClaimIQ.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

ClaimIQ.exe - 2 error(s), 0 warning(s)
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
The error suggest the you have Windows Application (Win32) project and that it can't find the WinMain entry point - did you provide one? Did you actually want to build a Windows Application (Win32)? (rather than a console application, dynamic link library, static library, etc.)


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
John McDonald
Ranch Hand

Joined: Jul 01, 2003
Posts: 112
Hi Peer,
I have a compile to exe with some warning. dll-interface and string, etc. But let set it aside.

I have the following error when try to run the calculator code. Do you have any idea? Thanks.


C:\Tools\axis15\samples\client\calculator\Calculator\Debug>Calculator add 3 4

Using service at http://localhost/axis/calculator

Warning - The configuration file was not found (C:\Tools\tomcat5512\axiscpp/axiscpp.conf).
Using default values
Exception : DLOPEN FAILED in loading parser library
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
Sorry, never dealt with the C++ version of Axis, so I wouldn't know.

Is the correct (dll) version of xerces available to it?
DLOPEN FAILED ... parser library

Also you seem to be having a problem as your file path includes both windows (\) and unix (/) directory delimiters which would make it impossible to open the file. Try to find the settings/properties that will fix that.
[ November 17, 2005: Message edited by: Peer Reynders ]
John McDonald
Ranch Hand

Joined: Jul 01, 2003
Posts: 112
Hi Peer,
I copy the dll file to where the executable is. I got that resolved but I have the following error that still keep me from running it sucessfully.

C:\Tools\axis15\bin>calculator add 4 5

Using service at http://localhost/axis/calculator

Exception : DLOPEN FAILED in loading channel library


I have all the HTTPChannel.dll HTTPSSLChannel.dll in the same directory as the executable.
Kolya Ukrainian
Greenhorn

Joined: Dec 01, 2005
Posts: 1
Make sure that HTTPChannel.dll and HTTPSSLChannel.dll is placed in folder which you enter in axiscpp.conf file (and this folder must be in %PATH%).
This error occurs in HTTPTransport.dll when try to LoadLibrary HTTPChannel.dll or HTTPSSLChannel.dll. See ChannelFactory.cpp, ChannelFactory::LoadChannelLibrary(....)
 
IntelliJ Java IDE
 
subject: C++ Client linking error
 
Threads others viewed
Want to understand SOAP Exception's meaning?
Apache SOAP cant understand Reponse From Dot.net server
How to increase the time out period of the web service call
How to build and deploy web service in JavaWebservice Development kit?
web service and basic authentication.