473,387 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Request format is unrecognized

I've this problem: i'm trying to build a method that outputs an object like
this:

public class Autenticazione
{

public string Username
{
set
{
Username=value;
}

get
{
return Username;
}

}

public string Password
{
set
{
Password=value;
}

get
{
return Password;
}

}

The WebService implementation is this:

public class Service1 : System.Web.Services.WebService
{
public static Autenticazione aut;
public Service1()
{
InitializeComponent();
aut = new Autenticazione();
aut.Username="username di prova";
aut.Password="password di prova";
}
[WebMethod]
public Autenticazione get_Autenticazione()
{
return aut;

}

When i try to call the method, i receive this response:
Request format is unrecognized.

Is there anyone who can help me?

Thanks

Francesca

Nov 23 '05 #1
2 1619
it was suprising. you didn't get StackOverFlowException
try this instead
public class Autenticazione
{
private string m_userName;
private string m_password;
public string Username
{
set
{
m_userName = value;
}

get
{
return m_userName;
}

}

public string Password
{
set
{
m_password = value;
}

get
{
return m_password;
}

}
public class Service1 : System.Web.Services.WebService
{
public Service1()
{

InitializeComponent();
}
[WebMethod]
public Autenticazione get_Autenticazione()
{
Autenticazione aut = new Autenticazione();
aut.Username="username di prova";
aut.Password="password di prova";
return aut;

}
}
regards
erymuzuan
Nov 23 '05 #2

i forgot try/get use, Thanks.

"erymuzuan" wrote:
it was suprising. you didn't get StackOverFlowException
try this instead


Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: qbsu21th | last post by:
Dear Sir/Madam, I'm writing a small VB6.0 and Access 2002 application in XP OS. I selected the data control property RecordSource, I got the "Unrecognized database format 'xxx/xx/*.mdb' " error....
14
by: L Mehl | last post by:
I tested a FE/BE application developed in A2000 on a A2002 machine and got this message when exiting the app. Clicking the only available button "OK", exits the application, as intended. The FE...
7
by: timmso | last post by:
I'm using Ado.net in an asp.net project with an Access backend. Whenever I try to do a simple Select or Update, I inevitably see the error "Unrecognized database format". I'm using Access 2000. ...
1
by: Trygve Lorentzen | last post by:
Hi, my webservice is running on Win2000 SP4, IIS 5.0 fully patched, connecting to a MySQL database and mainly returning Typed DataSet's from webmethods. After running for a while, generally a...
0
by: Merighi | last post by:
I've this problem: i'm trying to build a method that outputs an object like this: public class Autenticazione { public string Username { set { Username=value;
2
by: Dave | last post by:
running server 2003, .net 1.1, developing with vs 2003. i have a simple one function webservice that takes 4 string inputs. calling it with http post from simple form made by cutting out the demo...
1
by: Rabbit | last post by:
Can anyone tell me why my web developed in .net 2.0, using Access database (.mdb). working fine at my development machines, but when I deploy it onto new Windows Server 2003, the web returns...
6
by: James12345 | last post by:
i have created a database for our advisors to log their call types. It is being run on about 10 different machines. Every couple of weeks, when someone tries to open it, the error Unrecognized...
1
by: syed_razi | last post by:
I have a VB 6.0 application using Access as backend. It is being used on a local area network. The backend database is password protected. The problem is that the database gives me a run time...
4
by: Hepburn08 | last post by:
Hi, I need some help opening a corrupt Microsoft Access database file. I get an error message that says "unrecognized database format". Since I can't open it, I can't export the data to another new...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.