Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLow Budget Testing Tools Pin
BobInNJ11-Mar-09 13:53
BobInNJ11-Mar-09 13:53 
AnswerRe: Low Budget Testing Tools Pin
Naveen11-Mar-09 18:20
Naveen11-Mar-09 18:20 
GeneralRe: Low Budget Testing Tools Pin
BobInNJ13-Mar-09 4:04
BobInNJ13-Mar-09 4:04 
AnswerRe: Low Budget Testing Tools Pin
machengzhi17-Mar-09 0:22
machengzhi17-Mar-09 0:22 
QuestionOut Of Scope, Debugging Problem Pin
thenutz7211-Mar-09 11:50
thenutz7211-Mar-09 11:50 
AnswerRe: Out Of Scope, Debugging Problem Pin
BobInNJ11-Mar-09 13:48
BobInNJ11-Mar-09 13:48 
AnswerRe: Out Of Scope, Debugging Problem Pin
Stuart Dootson11-Mar-09 13:50
professionalStuart Dootson11-Mar-09 13:50 
AnswerRe: Out Of Scope, Debugging Problem Pin
«_Superman_»11-Mar-09 18:54
professional«_Superman_»11-Mar-09 18:54 
QuestionDLL openning own window Pin
Krzysiaczek9911-Mar-09 9:04
Krzysiaczek9911-Mar-09 9:04 
AnswerRe: DLL openning own window Pin
Sarath C11-Mar-09 9:54
Sarath C11-Mar-09 9:54 
GeneralRe: DLL openning own window Pin
Krzysiaczek9911-Mar-09 11:36
Krzysiaczek9911-Mar-09 11:36 
QuestionExcel in C++ Pin
su_penguin11-Mar-09 7:38
su_penguin11-Mar-09 7:38 
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 

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.