 |
|
 |
Hi,
We need a C++ client application to consume WCF server with NetTCPBinding, and Callback events supported. I have generated the proxy using gSOAP 2.7.10. But my proxy does not communicate with server. When I use BasicHttp binding, it seems to work. Not sure of events.
Can anyone suggest me, if gSOAP works with TCP binding, and callback events.
Is it worth trying. If it does not work any other alternative?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I'm sorry I've never try the described configuration you write. I suggest you two possibilities: -Try to search inside gSOAP 2.7.11 User Guide[^]. -Ask directly to Robert A. van Engelen, you can find the email inside the User Guide at the top, or try 'engelen at cs dot fsu dot edu'.
Cheers.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I am not getting responce from Robert A. van Engelen. Also I am not able to find any useful information in user guide. Do you have any other source of information. Do you have idea on how a WCF server can send an event back to client. This is what i am trying to achive using tcp channel.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I'm really sorry but I've never used WCF and all I read is for C# not C++.
BicycleTheif wrote: Do you have any other source of information.
- Here[^] you can find how event work - Here[^] on CP you have a lot of WCF working sample with code. - On MSDN[^] you have all info about WCF.
BicycleTheif wrote: Do you have idea on how a WCF server can send an event back to client. This is what i am trying to achive using tcp channel.
I'm not a WCF expert but substantially you must add an event service to your server, to see the notification you must subscribe it on your client(s).
Hope You find a way, Cheers
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi,
We need a C++ client application to consume WCF server with NetTCPBinding, and Callback events supported. I have generated the proxy using gSOAP 2.7.10. But my proxy does not communicate with server. When I use BasicHttp binding, it seems to work.
Can anyone suggest me, if gSOAP works with TCP binding, and callback events.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I generated the stubs and proxy classes through soapcpp2 from multiple wsdls all at once. So all the namespace bindings are in a single nsmap file. Now the problem is all the namespace bindings are being send with all the method calls I make. The http post packet is unusually large and ugly. Is there anyway i can programatically override the namespace binding ?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
First, I'll be honest. I've never used multiple WSDL, But I remeber here[^] in the documentation a way to avoid some problem like this. I hope you find answers there. Kind regards.
Dr.LuijiTrust and you'll be trusted.Try iPhone UI [ ^] a new fresh face for your Windows Mobile, here on Code Project.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi, Thank for the article. I need some project in Visual C++ that helps to ignore certificate errors using SOAP in Visual C++ 6. The same task can be done in DotNet using the RemoteCertificateValidationCallback function as given on the following site:
http://stackoverflow.com/questions/178578?sort=newest
But I need to do this in Visual C++ 6. Secondly if it cannot be done, how it is possible to use WinInet with SOAP to achieve this task
Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi Dr. Luiji We are using SOAP3.0 toolkit for achieving our purpose. Kindly let us know any solution in that context. Your solution is concerning gSOAP
Thanks and Regards Wahaj Khan
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi Wahaj
I'm using WinInet for the SSL and it works fine for me. Follow these simple steps: 1. Reference the wininet.lib library in your project 2. Add two files to your project gsoapWinInet.h and gsoapWinInet.cpp (you can download them from net, and if don't tell me to send you) 3. After soap_init(), register the wininet plugin and get access to the WinInet session, like given:
soap_init2(pSoap->soap, SOAP_IO_DEFAULT|SOAP_IO_KEEPALIVE, SOAP_IO_DEFAULT|SOAP_IO_KEEPALIVE|SOAP_IO_FLUSH); soap_register_plugin(pSoap->soap, wininet_plugin);
//Get access to the WinInet session that is going to be used for the SOAP call HINTERNET session = *(HINTERNET*)soap_lookup_plugin(pSoap->soap, "wininet-2.0"); HINTERNET request = InternetOpenUrl(session, _T("http://localhost:8080/MyService"), NULL, 0, 0, NULL); if (request == NULL) { // Opening session failed! return; } else // Session opened. Now you can go on with instantiate and // calling method from the service
I hope this will help you.
Regards, Renata
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi Renata We are using SOAP3.0 toolkit for achieving our purpose. Kindly let us know any solution in that context. Your solution is concerning gSOAP
Thanks and Regards Wahaj Khan
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi!
I develop a gSoap client that uses WCF service with callback contract.
To handle the messages that the WCF service sends back to me, I include the soapServer.cpp file in my project, but I'm getting errors for unresolved external symbols:
Err1 soapServer.obj : error LNK2019: unresolved external symbol "int __cdecl __ns1__Connect struct soap *,class _ns1__Connect *)" referenced in function "int __cdecl soap_serve___ns1__Connect(struct soap *)" Err2 soapServer.obj : error LNK2019: unresolved external symbol "int __cdecl __ns1__SayToServer(struct soap *,class _ns1__SayToServer *)" referenced in function "int __cdecl soap_serve___ns1__SayToServer(struct soap *)" Err3 soapServer.obj : error LNK2019: unresolved external symbol "int __cdecl __ns1__Disconnect(struct soap *,class _ns1__Disconnect *)" referenced in function "int __cdecl soap_serve___ns1__Disconnect(struct soap *)" My questions are: 1. Does gSoap support WCF service under 3.5 framework? 2. Does it support netTcpBinding for the service or it must be any kind of HttpBining? 3. If the above is supported, should I use soapServer.cpp or something else ( ) ...?
Any help will be more than appreciated.
Regards, Renata
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi Renata,
First of all try to see this[^] and this[^] posts hereunder, about LNK2019 error.
Let me know if it works. Regards.
Dr.Luiji
Trust and you'll be trusted.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I saw that posts, but it doesn't help. I've included the file that contains the definitions in the soapServer.cpp, but nothing... Also, I don't use that APIs. I've just forgot to mention that i am not using VC++ 6, but I'm using VC++ 2005, so maybe that's the problem?! And can you please tell me, is this the rigth approach for service with callbacks that sends back messages? Cause if this is not the rigth solution, then I don't need nothing of this, but I need a new app design 
Regards, Renata
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi, when I use gsoap, I get a link error: error 1 error LNK2001: can't resolve external symbol: _namespaces stdsoap2.obj 3
How can I solve this problem, thank you!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi CharlieLei, this is a simple Visual Studio error. take a look here[^] on MSDN.
Kind regards.
Dr.Luiji
Trust and you'll be trusted.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi all ;
When I call C:\soap\gsoap\bin\win32>wsdl2h -o Header.h http://project:9999/Header/services?wsdl, I get this warning : ______________________ Warning: no SOAP RPC operation namespace, operations will be ignored Warning: no SOAP RPC operation namespace, operations will be ignored
To complete the process, compile with: soapcpp2 RRS.h ______________________ What does it mean ?
Also, the file generated, soapClient.cpp, doas not have source code to call my WebService. It contains this : ______________________ #include "soapH.h"
SOAP_SOURCE_STAMP("@(#) soapClient.cpp ver 2.7.12 2008-10-27 15:40:08 GMT")
/* End of soapClient.cpp */ ______________________
Is there any problem on generation?
I thank you
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi CSharpJSharp, I'm a bit confused... Help me better to understand your problem
-First of all you have read the article? Probaby you must take care to the Section about WSDL Importer and gSOAP Compiler. -Why you don't want to compile it whit soapcpp2 RRS.h? It's suggest to you by the importer, try it. Probably after compiled it, you are ready to go ahead. If it dont go try to add the path as writed in the article Eg: soapcpp2 -ID:\gsoap-win32-2.7\Import RRS.h.
Any way i try for you let me no if i wrong.
CSharpJSharp wrote: Warning: no SOAP RPC operation namespace, operations will be ignored Warning: no SOAP RPC operation namespace, operations will be ignored Theese warnings exclude the possibility to use the RPC in your solution. (You need it to do ahead ?)
CSharpJSharp wrote: To complete the process, compile with: soapcpp2 RRS.h ______________________ What does it mean ?
it means that you must execute this command
CSharpJSharp wrote: Also, the file generated, soapClient.cpp, doas not have source code to call my WebService. It contains this : ______________________ #include "soapH.h"
SOAP_SOURCE_STAMP("@(#) soapClient.cpp ver 2.7.12 2008-10-27 15:40:08 GMT")
/* End of soapClient.cpp */ ______________________
this file can be empty becouse you havn't completed all the step.
thanks.
Dr.Luiji
Trust and you'll be trusted.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi Dr.Luiji ;
I thank you for your reply and your precious help.
As explain in the article, I have to execute the two commands wsdl2h.exe and soapcpp2.exe like :
wsdl2h.exe -o first.h http://project:9999/services/project?wsdl then soapcpp2.exe -C -IC:\soap\gsoap\import first.h
the operations was exectued succesfully and I have the files : soapH.h soapStub.h soapC.cpp soapClient.cpp soapClientLib.cpp ns1.nsmap
If I understand, to call my Webservice, the functions are in soapClient.cpp. But this file doasn't contain any function (source shown my last post).
soapC.cpp contains many classes generated but I can't use them to call my WebService.
That I don't know why?
Regards
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Also, what means this warning :
Warning: no SOAP RPC operation namespace, operations will be ignored
Best regards
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi again,
CSharpJSharp wrote: Warning: no SOAP RPC operation namespace, operations will be ignored
I've never see this error but, I've googled a bit and i've found this[^].
I hope it helps you.
Dr.Luiji
Trust and you'll be trusted.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi ;
I dont inderstand what we don't need to include WSCurrencyConv.h file generated with wsdl2h to our solution? Is this file helps us only to generate other files which are included to the solution?
WSCurrencyConv.h is it not important?
Thank you.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
SOAP 1.1 fault: SOAP-ENV:Client [no subcode] "Validation constraint violation: tag name or namespace mismatch in element " Detail: [no detail]
it's so strange, I'm trying to call 2 different WebServices, when I call the 1st one and then the 2nd one - the above error code appears and the WS gets null parameters from Client.
BUT !
when I only call the 2nd one (without calling the 1st one) the call works fine.
any idea why it happens ???
Thanks.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
shvalbo wrote: SOAP 1.1 fault: SOAP-ENV:Client [no subcode] "Validation constraint violation: tag name or namespace mismatch in element " Detail: [no detail]
it's so strange, I'm trying to call 2 different WebServices, when I call the 1st one and then the 2nd one - the above error code appears and the WS gets null parameters from Client.
BUT !
when I only call the 2nd one (without calling the 1st one) the call works fine.
any idea why it happens ???
Thanks.
First, I'll be honest. I've never had this kind of error, I looked around briefly internet and i've found a lot of similar errors... As far as I read, the error can be one attribute that was not set.
Dr.Luiji
Trust and you'll be trusted.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |