Click here to Skip to main content
15,893,381 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: create control of class CEdit Pin
Cedric Moonen16-Apr-09 21:17
Cedric Moonen16-Apr-09 21:17 
AnswerRe: create control of class CEdit Pin
China_Kevin16-Apr-09 21:23
China_Kevin16-Apr-09 21:23 
GeneralRe: create control of class CEdit Pin
Cedric Moonen16-Apr-09 21:30
Cedric Moonen16-Apr-09 21:30 
GeneralRe: create control of class CEdit Pin
China_Kevin16-Apr-09 21:40
China_Kevin16-Apr-09 21:40 
GeneralRe: create control of class CEdit Pin
CPallini16-Apr-09 23:24
mveCPallini16-Apr-09 23:24 
GeneralRe: create control of class CEdit Pin
China_Kevin17-Apr-09 2:28
China_Kevin17-Apr-09 2:28 
AnswerRe: create control of class CEdit Pin
Hamid_RT17-Apr-09 0:30
Hamid_RT17-Apr-09 0:30 
Questionc++ client for wcf service.......? Pin
shaina223116-Apr-09 20:47
shaina223116-Apr-09 20:47 
i m using soap library for C++ client and hv searched alot almost all code are using same way but Its Giving exception on
Connector->EndMessage();
my Wcf service has One Method "GetMessage(string name)
URL is (Hellow is virtual directory for IIS)
<a href=""><a href="http://localhost/Hellow/HelloWorldService.svc">http://localhost/Hellow/HelloWorldService.svc</a>


and client code is
<pre>
#include &lt;stdio.h&gt;

#import "msxml3.dll"
using namespace MSXML2;

#import "C:\Program Files\Common Files\MSSoap\Binaries\MSSOAP1.dll" \
exclude("IStream", "ISequentialStream", "_LARGE_INTEGER", \
"_ULARGE_INTEGER", "tagSTATSTG", "_FILETIME")
using namespace MSSOAPLib;

void CallService()
{



ISoapSerializerPtr Serializer;
ISoapReaderPtr Reader;
ISoapConnectorPtr Connector;

// Connect to the service
Connector.CreateInstance(__uuidof(HttpConnector));
Connector-&gt;Property["EndPointURL"] = "http://localhost/Hellow/HelloWorldService.svc";
Connector-&gt;Connect();

// Begin message
Connector-&gt;Property["SoapAction"] = "uri:http://localhost/Hellow/HelloWorldService/GetMessage";
Connector-&gt;Property["UseSSL"] = "True";
Connector-&gt;BeginMessage();

// Create the SoapSerializer
Serializer.CreateInstance(__uuidof(SoapSerializer));

// Connect the serializer to the input stream of the connector
Serializer-&gt;Init(_variant_t((IUnknown*)Connector-&gt;InputStream));

// Build the SOAP Message
Serializer-&gt;startEnvelope("","","");
Serializer-&gt;startBody("");
Serializer-&gt;startElement("GetMessage","uri:http://localhost/Hellow/HelloWorldService/GetMessage","","m");
Serializer-&gt;startElement("name","","","");
Serializer-&gt;writeString("shaina");
Serializer-&gt;endElement();
Serializer-&gt;endElement();
Serializer-&gt;endBody();
Serializer-&gt;endEnvelope();

// Send the message to the web service

Connector-&gt;EndMessage();

// Let us read the response
Reader.CreateInstance(__uuidof(SoapReader));

// Connect the reader to the output stream of the connector
Reader-&gt;Load(_variant_t((IUnknown*)Connector-&gt;OutputStream), "");

// Display the result
printf("Answer: %s\n", (const char *)Reader-&gt;RPCResult-&gt;text);

}

void main()
{
CoInitialize(NULL);
CallService();
CoUninitialize();
}
</pre>
Any suggestions wil be appreicated.
PLZzzzzzzzz help
QuestionWhy do i get this error? Pin
kapardhi16-Apr-09 20:42
kapardhi16-Apr-09 20:42 
AnswerRe: Why do i get this error? Pin
Stuart Dootson16-Apr-09 20:56
professionalStuart Dootson16-Apr-09 20:56 
QuestionRe: Why do i get this error? Pin
kapardhi16-Apr-09 21:05
kapardhi16-Apr-09 21:05 
AnswerRe: Why do i get this error? Pin
Cedric Moonen16-Apr-09 21:11
Cedric Moonen16-Apr-09 21:11 
GeneralRe: Why do i get this error? Pin
Cedric Moonen16-Apr-09 21:06
Cedric Moonen16-Apr-09 21:06 
GeneralRe: Why do i get this error? Pin
Stuart Dootson16-Apr-09 22:13
professionalStuart Dootson16-Apr-09 22:13 
QuestionProblem in PROCESS_INFORMATION. Pin
Le@rner16-Apr-09 20:08
Le@rner16-Apr-09 20:08 
AnswerRe: Problem in PROCESS_INFORMATION. Pin
«_Superman_»16-Apr-09 21:07
professional«_Superman_»16-Apr-09 21:07 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Le@rner16-Apr-09 21:09
Le@rner16-Apr-09 21:09 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
CPallini16-Apr-09 21:10
mveCPallini16-Apr-09 21:10 
AnswerRe: Problem in PROCESS_INFORMATION. Pin
Stuart Dootson16-Apr-09 22:35
professionalStuart Dootson16-Apr-09 22:35 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Le@rner17-Apr-09 0:00
Le@rner17-Apr-09 0:00 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Stuart Dootson17-Apr-09 0:04
professionalStuart Dootson17-Apr-09 0:04 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Le@rner17-Apr-09 0:06
Le@rner17-Apr-09 0:06 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Stuart Dootson17-Apr-09 0:09
professionalStuart Dootson17-Apr-09 0:09 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Le@rner17-Apr-09 0:10
Le@rner17-Apr-09 0:10 
QuestionHow can get column name from Excel? Pin
Le@rner16-Apr-09 20:05
Le@rner16-Apr-09 20:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.