Click here to Skip to main content
15,920,030 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Thrading with gui? Pin
Sandeep Akhare13-Mar-07 6:57
Sandeep Akhare13-Mar-07 6:57 
GeneralRe: Thrading with gui? Pin
EnigmaRulez13-Mar-07 12:44
EnigmaRulez13-Mar-07 12:44 
QuestionRemove CSS class in C# Pin
digsy_13-Mar-07 3:54
digsy_13-Mar-07 3:54 
AnswerRe: Remove CSS class in C# Pin
Sandeep Akhare13-Mar-07 6:25
Sandeep Akhare13-Mar-07 6:25 
GeneralRe: Remove CSS class in C# Pin
digsy_13-Mar-07 6:34
digsy_13-Mar-07 6:34 
QuestionHow to Edit The SOAP Header in Visual Studio.NET Pin
w13RTH70Lo13-Mar-07 3:27
w13RTH70Lo13-Mar-07 3:27 
QuestionResizing Picture box in StrechImage mode and Gradiant problem!!!??? Pin
Narenge13-Mar-07 2:46
Narenge13-Mar-07 2:46 
QuestionWebservice object parameters from seperate assembly Pin
bradz1513-Mar-07 2:32
bradz1513-Mar-07 2:32 
Hey Guys, I posted this on another forum with no luck. I figured I'd give it a try here too. If you know a solution... please don't be shy!!

---

I've been tasked with creating a webservice. It is useful to pass some parameters as custom objects. These custom objects are defined in a seperate assembly I'll refer to as SS. Both the webservice and the application consuming the web service reference the assembly SS. My problem is that the application consuming the service is changing the type of parameters. The following may help explain...

Assembly SS defines a User object (SS.User)

Web Service references assembly SS
Web Method takes SS.User as a parameter
WebMethod(SS.User TheUser) {
...
}

Application references assembly SS, I want to pass SS.User as a parameter to the web service but when I consume the webservice the method signature looks like this...
Service.WebMethod(TheApplication.TheWebServiceName.User)

My first thought was to create a SS.User object within the application then cast to TheApplication.TheWebServiceName.User then pass it. However, I get a compliation error as that cast is not allowed.

Any thoughts?? Is this expected behavior for some reason I don't understand??

---------------
this next part is my reply to a post, so it's not quite in context but adds some depth.
---------------

Anyways, yes. That I know. The object definition exists on both webservice side and on the application side. Both the application and the webservice independantly reference the SS assembly. The object data should just be serialized and passed to the service, then the object can be recreated on the server. Am I right??

Why when I consume the webservice does the webmethod signature not look like...
WebMethod(SS.User) ??? It looks like WebMethod(ApplicationNamespace.WebServiceName.User). And I can't cast from SS.User to ApplicationNamespace.WebServiceName.User.

This is maddening, because I swear I've done this before with no issues. GAR!

-----------

anwyays, thanks in advance for any replies

-BRad

AnswerRe: Webservice object parameters from seperate assembly Pin
Paddy Boyd13-Mar-07 4:34
Paddy Boyd13-Mar-07 4:34 
GeneralRe: Webservice object parameters from seperate assembly Pin
bradz1513-Mar-07 5:49
bradz1513-Mar-07 5:49 
Questionhow to get text from captcha image Pin
uday_kiran13-Mar-07 2:19
uday_kiran13-Mar-07 2:19 
AnswerRe: how to get text from captcha image Pin
badgrs13-Mar-07 2:46
badgrs13-Mar-07 2:46 
AnswerRe: how to get text from captcha image Pin
Sandeep Akhare13-Mar-07 2:56
Sandeep Akhare13-Mar-07 2:56 
QuestionI need your Opinion about this matter Pin
blitz2bleach13-Mar-07 2:17
blitz2bleach13-Mar-07 2:17 
AnswerRe: I need your Opinion about this matter Pin
Guffa13-Mar-07 7:08
Guffa13-Mar-07 7:08 
QuestionFormView Pin
Tyrone_whitey13-Mar-07 2:05
Tyrone_whitey13-Mar-07 2:05 
QuestionWhat is the point of using .NET data sources? Pin
DaveRRR13-Mar-07 1:56
DaveRRR13-Mar-07 1:56 
AnswerRe: What is the point of using .NET data sources? Pin
kubben13-Mar-07 3:06
kubben13-Mar-07 3:06 
QuestionResizing table Pin
Jeeva Mary Varghese13-Mar-07 1:44
Jeeva Mary Varghese13-Mar-07 1:44 
AnswerRe: Resizing table Pin
mareers13-Mar-07 1:55
mareers13-Mar-07 1:55 
QuestionHow to pass parameters to Sub Report from Main Report ? Pin
prakash_21013-Mar-07 1:34
prakash_21013-Mar-07 1:34 
QuestionImagebuttons Pin
nclauder13-Mar-07 1:32
nclauder13-Mar-07 1:32 
QuestionExtracting web page using ASP Pin
Imthu13-Mar-07 1:27
Imthu13-Mar-07 1:27 
AnswerRe: Extracting web page using ASP Pin
Sandeep Akhare13-Mar-07 2:27
Sandeep Akhare13-Mar-07 2:27 
QuestionInvoking a datagrid from a "background thread"?? Pin
Nada Adel13-Mar-07 1:25
Nada Adel13-Mar-07 1:25 

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.