Click here to Skip to main content
15,885,216 members
Home / Discussions / C#
   

C#

 
AnswerRe: c# serial port Pin
Garth J Lancaster17-Dec-09 10:03
professionalGarth J Lancaster17-Dec-09 10:03 
GeneralRe: c# serial port Pin
aniarun17-Dec-09 11:21
aniarun17-Dec-09 11:21 
GeneralRe: c# serial port Pin
Garth J Lancaster17-Dec-09 11:36
professionalGarth J Lancaster17-Dec-09 11:36 
GeneralRe: c# serial port Pin
aniarun17-Dec-09 12:10
aniarun17-Dec-09 12:10 
GeneralRe: c# serial port Pin
Roger Wright17-Dec-09 18:57
professionalRoger Wright17-Dec-09 18:57 
GeneralRe: c# serial port Pin
aniarun20-Dec-09 12:28
aniarun20-Dec-09 12:28 
GeneralRe: c# serial port Pin
Roger Wright20-Dec-09 13:46
professionalRoger Wright20-Dec-09 13:46 
QuestionWeb Service Object References Pin
RacerNerd17-Dec-09 9:09
RacerNerd17-Dec-09 9:09 
I am creating a web service that will be called from a console application. I am having trouble creating objects in the console application in order to pass them to the web service.

I have Classes in the Web Site project that are similar to the following:

public class Product
{
//other product details
}

public class SubProduct : Product
{
//subproduct details
public innerObject io;
}

public class innerObject
{
//object details
}


The web service contains a function:

[WebMethod]
public string LoadProduct(Product[] p)
{
//does stuff here
if (p is SubProduct)
{
//do stuff specific to subproduct objects.
}
}

I want the console application to create an array of products and pass it to the web service. Each product in the array could be of type Product or SubProduct. The problem I am encountering is that SubProducts and the innerObject types are not a recognized or accessible in the console application. It seems like all that is imported from the web reference to the web service are the objects types that are listed in the parameter list of the web service methods.

Does anyone know how I can make the SubProduct and innerObject classes accessible from the web service code?

thanks.
AnswerRe: Web Service Object References Pin
Abhinav S17-Dec-09 17:07
Abhinav S17-Dec-09 17:07 
QuestionHigh Load Asynchronous TCP Server & Client Discussion Pin
Harvey Saayman17-Dec-09 8:41
Harvey Saayman17-Dec-09 8:41 
QuestionMicrosoft Reporting (subreports) Pin
kruegersck17-Dec-09 8:09
kruegersck17-Dec-09 8:09 
QuestionTrying to retrieve a variable from a program Pin
JTRizos17-Dec-09 6:38
JTRizos17-Dec-09 6:38 
AnswerRe: Trying to retrieve a variable from a program Pin
ricmil4217-Dec-09 6:49
ricmil4217-Dec-09 6:49 
GeneralRe: Trying to retrieve a variable from a program Pin
JTRizos17-Dec-09 7:11
JTRizos17-Dec-09 7:11 
GeneralRe: Trying to retrieve a variable from a program Pin
ricmil4217-Dec-09 7:27
ricmil4217-Dec-09 7:27 
GeneralRe: Trying to retrieve a variable from a program Pin
JTRizos17-Dec-09 8:34
JTRizos17-Dec-09 8:34 
GeneralRe: Trying to retrieve a variable from a program Pin
ricmil4217-Dec-09 8:39
ricmil4217-Dec-09 8:39 
GeneralRe: Trying to retrieve a variable from a program Pin
JTRizos17-Dec-09 8:48
JTRizos17-Dec-09 8:48 
AnswerRe: Trying to retrieve a variable from a program Pin
Alan N17-Dec-09 9:12
Alan N17-Dec-09 9:12 
AnswerRe: Trying to retrieve a variable from a program Pin
JTRizos17-Dec-09 9:43
JTRizos17-Dec-09 9:43 
QuestionPropertyGrid usage Pin
rbuchana17-Dec-09 5:30
rbuchana17-Dec-09 5:30 
AnswerRe: PropertyGrid usage Pin
Dr.Walt Fair, PE17-Dec-09 5:50
professionalDr.Walt Fair, PE17-Dec-09 5:50 
GeneralRe: PropertyGrid usage Pin
rbuchana17-Dec-09 6:14
rbuchana17-Dec-09 6:14 
GeneralRe: PropertyGrid usage Pin
Dr.Walt Fair, PE17-Dec-09 7:09
professionalDr.Walt Fair, PE17-Dec-09 7:09 
GeneralRe: PropertyGrid usage Pin
rbuchana17-Dec-09 7:09
rbuchana17-Dec-09 7:09 

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.