Click here to Skip to main content
15,887,343 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: How would you do it? web modification and SEO... Pin
Roger Wright10-Mar-09 19:06
professionalRoger Wright10-Mar-09 19:06 
GeneralRe: How would you do it? web modification and SEO... Pin
Chris Maunder11-Mar-09 3:35
cofounderChris Maunder11-Mar-09 3:35 
QuestionUser and Profile information [modified] Pin
NetQuestions7-Mar-09 18:47
NetQuestions7-Mar-09 18:47 
AnswerRe: User and Profile information Pin
JMummery8-Mar-09 5:23
professionalJMummery8-Mar-09 5:23 
GeneralRe: User and Profile information Pin
NetQuestions8-Mar-09 20:04
NetQuestions8-Mar-09 20:04 
GeneralRe: User and Profile information Pin
JMummery8-Mar-09 23:39
professionalJMummery8-Mar-09 23:39 
GeneralRe: User and Profile information Pin
NetQuestions9-Mar-09 21:52
NetQuestions9-Mar-09 21:52 
QuestionReference errors using classes defined locally but then imported into a Webservice Pin
redivider6-Mar-09 11:06
redivider6-Mar-09 11:06 
I have a forms project that will allow user to connect to a local database or a webservice hosting the data.
So the flow goes something like:
App builds request object (SearchCriteria) defined in a class library. Local data access layer and webservice both use the SearchCriteria object to run queries, and return a Results object (also defined in the class library).

So my desktop app has a ClassLibrary project which defines the Request and Results classes. This dll is imported into the Webservice solution.

I’ve developed an interface to define the contracts between the desktop app and the data provider (either the local DAL or the Webservice).
public interface IDataAccess
{
  DataTable GetCompanyMatches(SearchCriteria searchCriteria, out Results results);
  …
}

One edit to the Reference.cs file tells the compiler that my Webservice implements the interface.
internal interface WSSoap : ITPDataAccess
The problem is that when the Webservice returns the Results object the desktop app sees the type as Webservice.Results instead of ClassLibrary.Results, so the Webservice does not implement IDataAccess (even though I specify, in the webservice, webservice inherits from/implements IDataAccess.
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class WebService : ITPDataAccess
{…..}

Is there a way to tell the WS to not put the ClassLibrary classes into the Webservice namespace? Is there some way on the app side to use the locally defined classes when interacting with the webservice?
Basically how do i tell the compiler that they are the same thing, without rewriting the Reference.cs file??
QuestionIIS/Http Compression. Pin
Member 23244836-Mar-09 7:09
Member 23244836-Mar-09 7:09 
AnswerRe: IIS/Http Compression. Pin
JMummery8-Mar-09 6:16
professionalJMummery8-Mar-09 6:16 
GeneralRe: IIS/Http Compression. Pin
Member 23244839-Mar-09 12:37
Member 23244839-Mar-09 12:37 
GeneralRe: IIS/Http Compression. Pin
JMummery9-Mar-09 12:41
professionalJMummery9-Mar-09 12:41 
QuestionFunky Flash Video Pin
Marc Firth6-Mar-09 0:22
Marc Firth6-Mar-09 0:22 
AnswerRe: Funky Flash Video Pin
Marc Firth15-Mar-09 23:39
Marc Firth15-Mar-09 23:39 
QuestionSet different language Pin
Ha_805-Mar-09 21:28
Ha_805-Mar-09 21:28 
AnswerRe: Set different language Pin
Vasudevan Deepak Kumar6-Mar-09 21:56
Vasudevan Deepak Kumar6-Mar-09 21:56 
Questionhow to get parent property from subclass [modified] Pin
sito425-Mar-09 14:07
sito425-Mar-09 14:07 
Questionweb based application Pin
SameerMughal5-Mar-09 5:51
SameerMughal5-Mar-09 5:51 
AnswerRe: web based application Pin
led mike5-Mar-09 6:34
led mike5-Mar-09 6:34 
GeneralRe: web based application Pin
SameerMughal5-Mar-09 7:18
SameerMughal5-Mar-09 7:18 
QuestionRe: web based application Pin
led mike5-Mar-09 8:57
led mike5-Mar-09 8:57 
GeneralRe: web based application Pin
Marc Firth6-Mar-09 0:35
Marc Firth6-Mar-09 0:35 
GeneralRe: web based application Pin
SameerMughal6-Mar-09 0:57
SameerMughal6-Mar-09 0:57 
QuestionPDF from database problem Pin
WvdW5-Mar-09 1:06
WvdW5-Mar-09 1:06 
AnswerRe: PDF from database problem Pin
led mike5-Mar-09 6:30
led mike5-Mar-09 6:30 

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.