Click here to Skip to main content
15,894,460 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Excel in C++ Pin
David Crow11-Mar-09 8:07
David Crow11-Mar-09 8:07 
AnswerRe: Excel in C++ Pin
su_penguin11-Mar-09 8:46
su_penguin11-Mar-09 8:46 
GeneralRe: Excel in C++ Pin
David Crow11-Mar-09 8:52
David Crow11-Mar-09 8:52 
AnswerRe: Excel in C++ Pin
Stuart Dootson11-Mar-09 8:35
professionalStuart Dootson11-Mar-09 8:35 
GeneralRe: Excel in C++ Pin
su_penguin11-Mar-09 8:49
su_penguin11-Mar-09 8:49 
GeneralRe: Excel in C++ Pin
Stuart Dootson11-Mar-09 13:35
professionalStuart Dootson11-Mar-09 13:35 
AnswerRe: Excel in C++ Pin
Sarath C11-Mar-09 22:51
Sarath C11-Mar-09 22:51 
QuestionProblem with webservice! Pin
Bryan Karlsson11-Mar-09 7:19
Bryan Karlsson11-Mar-09 7:19 
Hi!

I'm learning to work with webservice, and now I have a problem..

I'm using this guide:
http://www.exforsys.com/tutorials/asp.net/creating-and-consuming-xml-web-services-with-csharp.html[^]

When I try to compile my console-application, this message appears:
Error 1 The type or namespace name 'Service1' does not exist in the namespace 'MyClient.MyService' (are you missing an assembly reference?) C:\Documents and Settings\Bryan\Mina dokument\Visual Studio 2008\Webbservice\MyClient\MyClient\Program.cs 15 23 MyClient
Error 2 The type or namespace name 'Service1' does not exist in the namespace 'MyClient.MyService' (are you missing an assembly reference?) C:\Documents and Settings\Bryan\Mina dokument\Visual Studio 2008\Webbservice\MyClient\MyClient\Program.cs 15 56 MyClient


The code får my webservice is:

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;

namespace WebServiceExample
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class Service1 : System.Web.Services.WebService
    {

        [WebMethod]
        public string HelloWorld()
        {
            return "Hello World";
        }
    }
}


The code for my console-application:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyClient
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            // Make an instance of the WebService Class
            // using the Web Reference you provided
            MyService.Service1 service = new MyService.Service1();
            // Assign message what ever is returned
            // from HelloWorld in this case "HelloWorld"
            string message = service.HelloWorld();
            // Prints out the message on the screen
            Console.WriteLine(message); 
        }
    }
}


The console-application is supposed to interact with my webservice. The message "Hello world" should be ouput in my console. But it dosen't work..

Help?
AnswerRe: Problem with webservice! Pin
Stuart Dootson11-Mar-09 7:35
professionalStuart Dootson11-Mar-09 7:35 
QuestionMulticasting Socket - how to identify which interface data was received in? Pin
Danielle Schmitt11-Mar-09 7:10
Danielle Schmitt11-Mar-09 7:10 
AnswerRe: Multicasting Socket - how to identify which interface data was received in? Pin
Code-o-mat11-Mar-09 7:33
Code-o-mat11-Mar-09 7:33 
GeneralRe: Multicasting Socket - how to identify which interface data was received in? Pin
Danielle Schmitt11-Mar-09 8:02
Danielle Schmitt11-Mar-09 8:02 
GeneralRe: Multicasting Socket - how to identify which interface data was received in? Pin
Code-o-mat11-Mar-09 10:10
Code-o-mat11-Mar-09 10:10 
GeneralRe: Multicasting Socket - how to identify which interface data was received in? Pin
Danielle Schmitt12-Mar-09 9:32
Danielle Schmitt12-Mar-09 9:32 
GeneralRe: Multicasting Socket - how to identify which interface data was received in? Pin
Code-o-mat12-Mar-09 9:58
Code-o-mat12-Mar-09 9:58 
GeneralRe: Multicasting Socket - how to identify which interface data was received in? Pin
Danielle Schmitt12-Mar-09 11:12
Danielle Schmitt12-Mar-09 11:12 
QuestionFinding status of On screen keyboard Pin
jimjim73311-Mar-09 6:37
jimjim73311-Mar-09 6:37 
AnswerRe: Finding status of On screen keyboard Pin
Ricardo Sapaico26-Dec-10 23:23
Ricardo Sapaico26-Dec-10 23:23 
QuestionSetWindowText Problem Pin
Astitva2311-Mar-09 5:31
Astitva2311-Mar-09 5:31 
AnswerRe: SetWindowText Problem Pin
Iain Clarke, Warrior Programmer11-Mar-09 5:54
Iain Clarke, Warrior Programmer11-Mar-09 5:54 
Questionuse ADODB in vc++ 2005 and problem with it Pin
A Teimoori11-Mar-09 5:16
A Teimoori11-Mar-09 5:16 
AnswerRe: use ADODB in vc++ 2005 and problem with it Pin
CPallini11-Mar-09 22:27
mveCPallini11-Mar-09 22:27 
QuestionDrop List with white background Pin
sabapathy_8011-Mar-09 4:59
sabapathy_8011-Mar-09 4:59 
AnswerRe: Drop List with white background Pin
«_Superman_»11-Mar-09 5:13
professional«_Superman_»11-Mar-09 5:13 
AnswerRe: Drop List with white background Pin
Iain Clarke, Warrior Programmer11-Mar-09 6:02
Iain Clarke, Warrior Programmer11-Mar-09 6:02 

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.