Click here to Skip to main content
16,004,991 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: about fixed size of control Pin
Gamzun7-Jun-07 2:55
Gamzun7-Jun-07 2:55 
Questionmozilla problem Pin
sjs4u7-Jun-07 1:21
sjs4u7-Jun-07 1:21 
Questionhow to assign page indexer to a table Pin
Kurmala7-Jun-07 1:18
Kurmala7-Jun-07 1:18 
AnswerRe: how to assign page indexer to a table Pin
Chetan Ranpariya7-Jun-07 3:14
Chetan Ranpariya7-Jun-07 3:14 
QuestionWhat does inherits mean in .aspx? Pin
Russell Jones7-Jun-07 1:07
Russell Jones7-Jun-07 1:07 
AnswerRe: What does inherits mean in .aspx? Pin
szukuro7-Jun-07 1:24
szukuro7-Jun-07 1:24 
GeneralRe: What does inherits mean in .aspx? Pin
Blumen8-Jun-07 2:00
Blumen8-Jun-07 2:00 
QuestionASP.NET server and VC++ client Pin
Kabirdas Jaunjare7-Jun-07 1:04
Kabirdas Jaunjare7-Jun-07 1:04 
hellow friends....
i have developed ASP.NET Services and i want to use this services in my VC++ client but i m not getting result although i m able call method correctly using SOAP .. but result is not proper.?
plz tell me where i m making mistake...


//ASP .NET services..
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

[WebService(Namespace = "http:/www.WbService07Name.com/webServices/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class ClsService07 : System.Web.Services.WebService
{
public ClsService07()
{

//Uncomment the following line if using designed components
//InitializeComponent();
}



[WebMethod]
public double DoAdditon(double a, double b)
{
return (a + b);
}


}

///vc++ client
void DisplayAdd()

{
try
{
ISoapSerializerPtr Serializer;
ISoapReaderPtr Reader;
ISoapConnectorPtr Connector;

cout<<"test display:main\n";


// Connect to the service
Connector.CreateInstance(__uuidof(HttpConnector30));
Connector->Property["EndPointURL"] ="http://localhost:2014/WebService07/Service.asmx";
Connector->Connect();

Connector-> Property["SoapAction"] = "http:/www.WbService07Name.com/webServices/DoAdditon";

// Begin message
Connector->BeginMessage();


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

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


// Build the SOAP Message
Serializer->StartEnvelope("","","");
Serializer->StartBody("");
Serializer->StartElement("DoAdditon",L"http://localhost:2014/WebService07/Service.asmx/","","");


//Serializer->startElement("Add","uri:Calc","","m");
Serializer->StartElement("a","","","");
Serializer->WriteString("5.9");
Serializer->EndElement();

Serializer->StartElement("b","","","");
Serializer->WriteString("10.8");
Serializer->EndElement();


Serializer->EndElement();
Serializer->EndBody();
Serializer->EndEnvelope();

// Send the message to the web service
Connector->EndMessage();


// Let us read the response
HRESULT hr = Reader.CreateInstance(__uuidof(SoapReader30));


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


printf("Answer: %s\n",(const char*)Reader->RpcResult->text);




BSTR br;
Reader->RpcResult->get_text(&br);

cout<
AnswerRe: ASP.NET server and VC++ client Pin
shaina223114-Apr-09 20:46
shaina223114-Apr-09 20:46 
QuestionGoogle Search API Pin
Aasha Sigul7-Jun-07 1:03
Aasha Sigul7-Jun-07 1:03 
QuestionAlert message Pin
deep77-Jun-07 0:42
deep77-Jun-07 0:42 
AnswerRe: Alert message Pin
M. J. Jaya Chitra7-Jun-07 0:47
M. J. Jaya Chitra7-Jun-07 0:47 
GeneralRe: Alert message Pin
deep77-Jun-07 1:10
deep77-Jun-07 1:10 
GeneralRe: Alert message Pin
M. J. Jaya Chitra7-Jun-07 1:18
M. J. Jaya Chitra7-Jun-07 1:18 
GeneralRe: Alert message Pin
l0kke7-Jun-07 4:09
l0kke7-Jun-07 4:09 
QuestionFileMaker Processing Pin
M. J. Jaya Chitra7-Jun-07 0:23
M. J. Jaya Chitra7-Jun-07 0:23 
QuestionHiddening Tree View(Navigation) through Javascript Pin
varshavmane7-Jun-07 0:18
varshavmane7-Jun-07 0:18 
QuestionXmlTextWriter Pin
Brendan Vogt7-Jun-07 0:16
Brendan Vogt7-Jun-07 0:16 
AnswerRe: XmlTextWriter Pin
Not Active7-Jun-07 2:32
mentorNot Active7-Jun-07 2:32 
QuestionHow to Select only Excel File Types Pin
meeram3957-Jun-07 0:08
meeram3957-Jun-07 0:08 
AnswerRe: How to Select only Excel File Types Pin
Manas Bhardwaj7-Jun-07 0:25
professionalManas Bhardwaj7-Jun-07 0:25 
Questionhow to call dynamic page Pin
harithadotnet7-Jun-07 0:05
harithadotnet7-Jun-07 0:05 
AnswerRe: how to call dynamic page Pin
ASPnoob7-Jun-07 17:35
ASPnoob7-Jun-07 17:35 
Questionnot able to view data in controls between postbacks when data binded to controls using xmlhttprequest object Pin
madhoo27-Jun-07 0:01
madhoo27-Jun-07 0:01 
AnswerRe: not able to view data in controls between postbacks when data binded to controls using xmlhttprequest object Pin
Sylvester george7-Jun-07 3:00
Sylvester george7-Jun-07 3:00 

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.