Click here to Skip to main content
15,899,124 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Security Scan Pin
hercule5420-Nov-08 16:19
hercule5420-Nov-08 16:19 
QuestionMultiline Textbox Maxlength Regular Expression Pin
Ponna Rani20-Nov-08 8:24
Ponna Rani20-Nov-08 8:24 
QuestionActiveX Print Dialog isn't loading Pin
Richard Jones20-Nov-08 7:12
Richard Jones20-Nov-08 7:12 
QuestionLoad Page controls again by writing code in server side in asp.net 2.0 for specific condition Pin
trilokharry20-Nov-08 5:19
trilokharry20-Nov-08 5:19 
AnswerRe: Load Page controls again by writing code in server side in asp.net 2.0 for specific condition Pin
Christian Graus20-Nov-08 8:39
protectorChristian Graus20-Nov-08 8:39 
QuestionProblem updating web reference in Visual Studio 2005 Pin
Cyrilix20-Nov-08 4:44
Cyrilix20-Nov-08 4:44 
AnswerRe: Problem updating web reference in Visual Studio 2005 Pin
Paul Conrad20-Nov-08 5:40
professionalPaul Conrad20-Nov-08 5:40 
GeneralRe: Problem updating web reference in Visual Studio 2005 Pin
Cyrilix20-Nov-08 5:46
Cyrilix20-Nov-08 5:46 
Isn't Visual Studio supposed to do this for you?

Under the web tab for the web service project, I have it set to Use Visual Studio Development Server, and have it assigned to that specific port. I don't know if I have to actually "run" anything to run it though.

EDIT: So after hearing you mention that, I just tried to run the web service project itself... and it seems like you have to do that in order to get anything started.

In the meantime though, I have another question about web services and web methods (but I'll just reuse this existing thread).

I have a web method that takes in a class WebObject (something that I created).

public class WebObject
{
	public WebObject(int x, int y, int z)
	{
		this.x = x;
		this.y = y;
		this.z = z;
	}

	private WebObject()
	{
	}

	public void SetX(int x)
	{
		this.x = x;
	}

	int x;
	int y;
	int z;
}


The web method, looks like this:
[WebMethod]
public WebObject AnalyzeObject(WebObject obj)
{
	return obj;
}


What's happening though, is that behind the scenes, in some Reference.cs file generated by this web service, the WebObject is being transformed into this:

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.1433")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
public partial class ODPOObject {}


This new empty class makes it so that I cannot call the web method with my int x, int y, int z constructor, and if I attempt to create THAT WebObject, it complains that I'm passing in the wrong type. I don't understand this concept at all... would anyone be able to please clarify?
GeneralRe: Problem updating web reference in Visual Studio 2005 Pin
Paul Conrad20-Nov-08 5:54
professionalPaul Conrad20-Nov-08 5:54 
GeneralRe: Problem updating web reference in Visual Studio 2005 Pin
Cyrilix20-Nov-08 5:56
Cyrilix20-Nov-08 5:56 
GeneralRe: Problem updating web reference in Visual Studio 2005 Pin
N a v a n e e t h20-Nov-08 16:17
N a v a n e e t h20-Nov-08 16:17 
QuestionNeed help with ASP???? Pin
sannysmith20-Nov-08 4:21
sannysmith20-Nov-08 4:21 
AnswerRe: Need help with ASP???? Pin
kevinbrydon20-Nov-08 4:36
kevinbrydon20-Nov-08 4:36 
AnswerRe: Need help with ASP???? Pin
Christian Graus20-Nov-08 8:41
protectorChristian Graus20-Nov-08 8:41 
QuestionHow to do this in ASP.NET? Pin
bilal haider20-Nov-08 3:42
bilal haider20-Nov-08 3:42 
AnswerRe: How to do this in ASP.NET? Pin
Christian Graus20-Nov-08 8:43
protectorChristian Graus20-Nov-08 8:43 
GeneralRe: How to do this in ASP.NET? Pin
bilal haider23-Nov-08 20:40
bilal haider23-Nov-08 20:40 
GeneralCould not create type %webservice Name% Pin
Mustafa Ismail Mustafa20-Nov-08 3:16
Mustafa Ismail Mustafa20-Nov-08 3:16 
GeneralRe: Could not create type %webservice Name% Pin
Christian Graus20-Nov-08 8:47
protectorChristian Graus20-Nov-08 8:47 
GeneralRe: Could not create type %webservice Name% Pin
Mustafa Ismail Mustafa20-Nov-08 9:49
Mustafa Ismail Mustafa20-Nov-08 9:49 
QuestionAsp.net version conversion problem Pin
shanthi jothi20-Nov-08 3:15
shanthi jothi20-Nov-08 3:15 
AnswerRe: Asp.net version conversion problem Pin
Christian Graus20-Nov-08 8:49
protectorChristian Graus20-Nov-08 8:49 
Questionhow to use both dropdownlist and menu control in one masterpage Pin
santoshpoosarla20-Nov-08 2:46
santoshpoosarla20-Nov-08 2:46 
AnswerRe: how to use both dropdownlist and menu control in one masterpage Pin
Abhijit Jana20-Nov-08 3:08
professionalAbhijit Jana20-Nov-08 3:08 
Questionhow to prevent access to back page after logout in mozilla Pin
akram_bindas20-Nov-08 1:07
akram_bindas20-Nov-08 1:07 

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.