473,386 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

SoapClient???

I'm a newbie to SOAP. I write a small program to test a WebService in C++.
I create new class From a Type Library "MSSOAP30.dll". It generate
automatically a ISoapClient class.
Then From CTestDlg, I add new Member Variable named "m_pClient" with type
ISoapClient. In the click event of Button1, I paste these code:
void CTestDlg::OnButton1()
{
if(m_pClient)
{
m_pClient->ReleaseDispatch();
delete m_pClient;
}
m_pClient = new ISoapClient;
if(m_pClient->CreateDispatch("MSSOAP.SoapClient.3.0"))
{

m_pClient->MSSoapInit("http://localhost/WebService1/Service1.asmx?WSDL",
"","",NULL);
}
}

But when I debug to row
if(m_pClient->CreateDispatch("MSSOAP.SoapClient.3.0")), it always return
zero. So it can't reach the method MSSoapInit.

Anyone can help me?
Nov 21 '05 #1
0 1629

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: trode | last post by:
It seems that if my WSDL source goes offline SOAPClient() creates un-trappable fatal errors. I don't think this is right. Shouldn't this be, at very least, trappable exceptions? This is the...
1
by: Yolande | last post by:
Hi there, I try to use MSSOAPLib.soapClient to get the XML data produced by our web services. I have a web method call ReportExec(strID, strRequest). It takes two string arguments and returns a ...
1
by: aws.steve | last post by:
I am trying to get my first Soap based website to work on my Windows 2000 server with IIS 5. The code used to create the client is as follows: set SoapClient = CreateObject("MSSOAP.SoapClient")...
3
by: PaulF | last post by:
Is it possible to use a SoapClient derived class to send a message to a Web Service (eg a .asmx file)? It it is, does anyone have any code they could point me at that actually does this ! ...
1
by: Dheepu Kumar1 | last post by:
We are using WSDL in soapclient to access the java web service.The soapclient request is not formed as required by the service. Namespace is not included in one ComplexType element(<GSTBTReq>) in...
0
by: Florian Laws | last post by:
Hello, to work around an interoperability problem with the PHP5 SOAP extension, I'd like to modify the generate XML SOAP request. (as described in...
4
by: brandonkirsch | last post by:
Hey guys, I recently lost hours to the PHP 5.2.1 SoapClient when trying to use a remote webservice. There are two methods I have to use, the first one worked like a charm and the second one has...
11
by: brandonkirsch | last post by:
Hey guys, I've posted a question on here before but I don't think I was very direct about the problem so I'll state it in a new way: How do I send CDATA to a webservice using the PHP SoapClient? ...
1
by: Sergei Riaguzov | last post by:
Hi, How can I catch errors produced by SOAP server with SoapClient? The first thing which comes in mind is eval() but maybe there is a better way? The server is sending some fault information...
3
by: fulatoro | last post by:
I am trying to use a webservice method on an ASP .NET server. I am running a simple php script on my ubuntu machine. Basically, the ASP servers first requires you to login via a login method by...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.