473,396 Members | 1,877 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,396 software developers and data experts.

custom datatypes

Hi All.. i need help in this issue...
Public Attributes & Properties for shared classes amoung webservice are
accessible, but how can we call the methods.
i have a webMethod that returns a custom datatype to the client, where i
need to call a method of that returned class. here is an example :

//Web Service Namespace
public class Meeting
{
public string subject;
private ArrayList attachments;

public void AddAttachment( string fileName, byte[] data )
{
// Code to do manipulate the attachmentsand add it to my ArrayList
}
}

// My Web Method
[WebMethod()]
public Meeting getMeeting( int meetID )
{
// code goes here to get the required meeting
Meeting meeting = new Meeting();
return meeting;
}

[WebMethod()]
public void UpdateMeeting( Meeting meeting )
{
// Do any Operation Here
}

-----------------------------------------------------------------
// Now Here it Goes My Client Code

public void UpdateMeeting( int meetID )
{
//Call my Web Service
MeetingWS proxy = new MeetingWS();
//Here i Need to Define the Meeting Object
MeetingWS.Meeting m = new MeetingWS.Meeting();
m = proxy.getMeeting( meetID );
// here goes the problem
m.AddAttachment( "anything", myArrOfBytes ); // Can't Call this Methods
where
m.fileName = "MyFileName" // This is accessible
// if this problem is solved then i want to update that meeting by calling
the web method
proxy.UpdateMeeting( m );

}
-----------------------------------------------------------

Many Thanks.

Gibb
Nov 23 '05 #1
4 1695
u can by pass it easily to change the webmethod

expose a webmethod called
[webmethod()]
public void addAttachment(int meetID, Object Anything)
{
//logic to add attachment to a specific meeting
}


--
Can You?You Can.
"Gibb" wrote:
Hi All.. i need help in this issue...
Public Attributes & Properties for shared classes amoung webservice are
accessible, but how can we call the methods.
i have a webMethod that returns a custom datatype to the client, where i
need to call a method of that returned class. here is an example :

//Web Service Namespace
public class Meeting
{
public string subject;
private ArrayList attachments;

public void AddAttachment( string fileName, byte[] data )
{
// Code to do manipulate the attachmentsand add it to my ArrayList
}
}

// My Web Method
[WebMethod()]
public Meeting getMeeting( int meetID )
{
// code goes here to get the required meeting
Meeting meeting = new Meeting();
return meeting;
}

[WebMethod()]
public void UpdateMeeting( Meeting meeting )
{
// Do any Operation Here
}

-----------------------------------------------------------------
// Now Here it Goes My Client Code

public void UpdateMeeting( int meetID )
{
//Call my Web Service
MeetingWS proxy = new MeetingWS();
//Here i Need to Define the Meeting Object
MeetingWS.Meeting m = new MeetingWS.Meeting();
m = proxy.getMeeting( meetID );
// here goes the problem
m.AddAttachment( "anything", myArrOfBytes ); // Can't Call this Methods
where
m.fileName = "MyFileName" // This is accessible
// if this problem is solved then i want to update that meeting by calling
the web method
proxy.UpdateMeeting( m );

}
-----------------------------------------------------------

Many Thanks.

Gibb

Nov 23 '05 #2
u can by pass it easily to change the webmethod

expose a webmethod called
[webmethod()]
public void addAttachment(int meetID, Object Anything)
{
//logic to add attachment to a specific meeting
}


--
Can You?You Can.
"Gibb" wrote:
Hi All.. i need help in this issue...
Public Attributes & Properties for shared classes amoung webservice are
accessible, but how can we call the methods.
i have a webMethod that returns a custom datatype to the client, where i
need to call a method of that returned class. here is an example :

//Web Service Namespace
public class Meeting
{
public string subject;
private ArrayList attachments;

public void AddAttachment( string fileName, byte[] data )
{
// Code to do manipulate the attachmentsand add it to my ArrayList
}
}

// My Web Method
[WebMethod()]
public Meeting getMeeting( int meetID )
{
// code goes here to get the required meeting
Meeting meeting = new Meeting();
return meeting;
}

[WebMethod()]
public void UpdateMeeting( Meeting meeting )
{
// Do any Operation Here
}

-----------------------------------------------------------------
// Now Here it Goes My Client Code

public void UpdateMeeting( int meetID )
{
//Call my Web Service
MeetingWS proxy = new MeetingWS();
//Here i Need to Define the Meeting Object
MeetingWS.Meeting m = new MeetingWS.Meeting();
m = proxy.getMeeting( meetID );
// here goes the problem
m.AddAttachment( "anything", myArrOfBytes ); // Can't Call this Methods
where
m.fileName = "MyFileName" // This is accessible
// if this problem is solved then i want to update that meeting by calling
the web method
proxy.UpdateMeeting( m );

}
-----------------------------------------------------------

Many Thanks.

Gibb

Nov 23 '05 #3
Thank you for this solution, but i already thought of it but didn't fullfill
my needs. what i need is to keep manipulating with an object with many
methods to call and get this object back to the web service to update my
database. i want to minimize proxy calls.
Regards.

"BillyLiu007" wrote:
u can by pass it easily to change the webmethod

expose a webmethod called
[webmethod()]
public void addAttachment(int meetID, Object Anything)
{
//logic to add attachment to a specific meeting
}


--
Can You?You Can.
"Gibb" wrote:
Hi All.. i need help in this issue...
Public Attributes & Properties for shared classes amoung webservice are
accessible, but how can we call the methods.
i have a webMethod that returns a custom datatype to the client, where i
need to call a method of that returned class. here is an example :

//Web Service Namespace
public class Meeting
{
public string subject;
private ArrayList attachments;

public void AddAttachment( string fileName, byte[] data )
{
// Code to do manipulate the attachmentsand add it to my ArrayList
}
}

// My Web Method
[WebMethod()]
public Meeting getMeeting( int meetID )
{
// code goes here to get the required meeting
Meeting meeting = new Meeting();
return meeting;
}

[WebMethod()]
public void UpdateMeeting( Meeting meeting )
{
// Do any Operation Here
}

-----------------------------------------------------------------
// Now Here it Goes My Client Code

public void UpdateMeeting( int meetID )
{
//Call my Web Service
MeetingWS proxy = new MeetingWS();
//Here i Need to Define the Meeting Object
MeetingWS.Meeting m = new MeetingWS.Meeting();
m = proxy.getMeeting( meetID );
// here goes the problem
m.AddAttachment( "anything", myArrOfBytes ); // Can't Call this Methods
where
m.fileName = "MyFileName" // This is accessible
// if this problem is solved then i want to update that meeting by calling
the web method
proxy.UpdateMeeting( m );

}
-----------------------------------------------------------

Many Thanks.

Gibb

Nov 23 '05 #4
Thank you for this solution, but i already thought of it but didn't fullfill
my needs. what i need is to keep manipulating with an object with many
methods to call and get this object back to the web service to update my
database. i want to minimize proxy calls.
Regards.

"BillyLiu007" wrote:
u can by pass it easily to change the webmethod

expose a webmethod called
[webmethod()]
public void addAttachment(int meetID, Object Anything)
{
//logic to add attachment to a specific meeting
}


--
Can You?You Can.
"Gibb" wrote:
Hi All.. i need help in this issue...
Public Attributes & Properties for shared classes amoung webservice are
accessible, but how can we call the methods.
i have a webMethod that returns a custom datatype to the client, where i
need to call a method of that returned class. here is an example :

//Web Service Namespace
public class Meeting
{
public string subject;
private ArrayList attachments;

public void AddAttachment( string fileName, byte[] data )
{
// Code to do manipulate the attachmentsand add it to my ArrayList
}
}

// My Web Method
[WebMethod()]
public Meeting getMeeting( int meetID )
{
// code goes here to get the required meeting
Meeting meeting = new Meeting();
return meeting;
}

[WebMethod()]
public void UpdateMeeting( Meeting meeting )
{
// Do any Operation Here
}

-----------------------------------------------------------------
// Now Here it Goes My Client Code

public void UpdateMeeting( int meetID )
{
//Call my Web Service
MeetingWS proxy = new MeetingWS();
//Here i Need to Define the Meeting Object
MeetingWS.Meeting m = new MeetingWS.Meeting();
m = proxy.getMeeting( meetID );
// here goes the problem
m.AddAttachment( "anything", myArrOfBytes ); // Can't Call this Methods
where
m.fileName = "MyFileName" // This is accessible
// if this problem is solved then i want to update that meeting by calling
the web method
proxy.UpdateMeeting( m );

}
-----------------------------------------------------------

Many Thanks.

Gibb

Nov 23 '05 #5

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

Similar topics

17
by: John Bentley | last post by:
John Bentley: INTRO The phrase "decimal number" within a programming context is ambiguous. It could refer to the decimal datatype or the related but separate concept of a generic decimal number....
3
by: Steve | last post by:
Guys, I've written a custom control (or at least tweaked someone else's!) in C# to be used on forms (rather than asp.net forms). The control is a date time picker, but its Value property returns...
3
by: xAvailx | last post by:
I apologize ahead of time for the long post... Background: Working on a CRM type custom application. The application is for an event management company. The company will provide the application...
1
by: qdm | last post by:
Below is a snippet that I'm sure is quite familiar to most ... <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" Here, I've given the XMLSchema namespace the prefix 'xsd', and with...
1
by: Josue Avila M. | last post by:
HI I Design a Class Wich contains severals DataTypes . (2 Strings and Other Data Types from a Class wich i Desing to) Its Something like This <serializable()> Public Class Emitor Public...
2
by: Mark Gibson | last post by:
Hello, I've been experimenting with dblink recently, and have encountered some limitations I'd like to discuss. I've been trying to create views of remote tables, like so: CREATE VIEW stuff...
0
by: Gibb | last post by:
Hi All.. i need help in this issue... Public Attributes & Properties for shared classes amoung webservice are accessible, but how can we call the methods. i have a webMethod that returns a custom...
8
by: a | last post by:
I'm trying to save data from a custom object into the profile object, but it is not structured the way that I want. I'm trying to get the custom object to serialize as xml to a Profile object...
2
by: Ratnakar .N | last post by:
hello, please define any custom datatypes in .net and provide one example regards ratnakar
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.