Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
QuestionProblem referencing class library in a web service Pin
dlarkin7731-Aug-08 0:54
dlarkin7731-Aug-08 0:54 
AnswerRe: Problem referencing class library in a web service Pin
#realJSOP31-Aug-08 1:11
mve#realJSOP31-Aug-08 1:11 
GeneralRe: Problem referencing class library in a web service Pin
dlarkin7731-Aug-08 2:07
dlarkin7731-Aug-08 2:07 
GeneralRe: Problem referencing class library in a web service Pin
#realJSOP31-Aug-08 2:20
mve#realJSOP31-Aug-08 2:20 
GeneralRe: Problem referencing class library in a web service Pin
dlarkin7731-Aug-08 3:02
dlarkin7731-Aug-08 3:02 
GeneralRe: Problem referencing class library in a web service Pin
#realJSOP31-Aug-08 3:33
mve#realJSOP31-Aug-08 3:33 
GeneralRe: Problem referencing class library in a web service Pin
dlarkin7731-Aug-08 3:37
dlarkin7731-Aug-08 3:37 
AnswerRe: Problem referencing class library in a web service Pin
Wendelius31-Aug-08 7:02
mentorWendelius31-Aug-08 7:02 
The problem is that even though you have the same assembly (common.dll) on both sides, the classes are different. When WebService proxy is created at client side, Visual Studio creates new classes for all classes returned by WebService (based on WSDL).

I solved this by not using Visual Studio Web References. Instead I use WSDL.exe on client side and create the proxy class manually. After the creation is done I strip away all the class definitions that are created for parameters and convert the parameters used in web service calls to classes from common assembly. Then I include this file to the project.

For more info on WSDL, go to Web Services Description Language Tool (Wsdl.exe)[^]

Hope this helps,

Mika
Questionexporting excel file to database Pin
abhijitjathar31-Aug-08 0:29
abhijitjathar31-Aug-08 0:29 
AnswerRe: exporting excel file to database Pin
Natza Mitzi31-Aug-08 2:22
Natza Mitzi31-Aug-08 2:22 
AnswerRe: exporting excel file to database Pin
MumbleB31-Aug-08 7:12
MumbleB31-Aug-08 7:12 
Questionproblem with crystal report in .net2 Pin
Member 385128630-Aug-08 22:01
Member 385128630-Aug-08 22:01 
AnswerRe: problem with crystal report in .net2 Pin
Wendelius30-Aug-08 22:29
mentorWendelius30-Aug-08 22:29 
Questionwhich is better to choose? Pin
Sajjad Izadi30-Aug-08 21:42
Sajjad Izadi30-Aug-08 21:42 
AnswerRe: which is better to choose? Pin
zafersavas30-Aug-08 23:33
zafersavas30-Aug-08 23:33 
GeneralRe: which is better to choose? [modified] Pin
Sajjad Izadi31-Aug-08 1:21
Sajjad Izadi31-Aug-08 1:21 
GeneralRe: which is better to choose? Pin
N a v a n e e t h31-Aug-08 18:06
N a v a n e e t h31-Aug-08 18:06 
AnswerRe: which is better to choose? Pin
Mbah Dhaim31-Aug-08 0:24
Mbah Dhaim31-Aug-08 0:24 
GeneralRe: which is better to choose? [modified] Pin
Sajjad Izadi31-Aug-08 1:24
Sajjad Izadi31-Aug-08 1:24 
GeneralRe: which is better to choose? Pin
Mbah Dhaim31-Aug-08 1:49
Mbah Dhaim31-Aug-08 1:49 
AnswerRe: which is better to choose? Pin
#realJSOP31-Aug-08 1:12
mve#realJSOP31-Aug-08 1:12 
GeneralRe: which is better to choose? [modified] Pin
Sajjad Izadi31-Aug-08 1:27
Sajjad Izadi31-Aug-08 1:27 
GeneralRe: which is better to choose? Pin
#realJSOP31-Aug-08 1:46
mve#realJSOP31-Aug-08 1:46 
AnswerRe: which is better to choose? Pin
Mohammad Dayyan31-Aug-08 4:37
Mohammad Dayyan31-Aug-08 4:37 
GeneralRe: which is better to choose? Pin
N a v a n e e t h31-Aug-08 18:09
N a v a n e e t h31-Aug-08 18:09 

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.