OK. I'll try explain my problem so simple as possible.
I have to send a complex data type to a WebService from a Asp.net
webapplication.
My Data type look like this. (A class with a porperty)
-------------
namespace Elsam.Turabs.Cl assLibraries.Tu rabsLogExeption {
[Serializable]
public class TurabsException Carrier
{
public TurabsException Carrier()
{}
private DateTime m_TimeOccured = DateTime.MinVal ue;
public DateTime TimeOccured
{
public DateTime TimeOccured
{
set { m_TimeOccured = value; }
get { return m_TimeOccured; } }}
-------------
A method in my webservice rescives this TurabsException Carrier object like
this:
[WebMethod]
public void SaveExceptionTo DB(TurabsExcept ionCarrier TEC)
In my Asp.net application i have to instantiate a TurabsException Carrier
object, fill it, and send it to my webservice method....
I do this by creating a webreference with Visual studio .net 2003. BUT. the
proxy class's TurabsException Carrier object and the one in my ASP.net
application is in diffrent namespaces now, and is therefor apperently not
compatible. hmmmmmm. Right it try to force them in same namespace...Ban g. No
i have to diffenitions on TurabsException Carrier.
the ONLY solution i have found is to make the webreference and manually
remove the TurabsException Carrier wich is created in my proxy. But tha means
i have to do this every time i update my webreference.
Was that clear at all?
REALLY hope someone has a solution.
Regards
Anders, Denmark