Click here to Skip to main content
15,906,341 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: CultureInfo - Arabic Currency formatting Pin
Blumen16-Aug-08 18:27
Blumen16-Aug-08 18:27 
QuestionJavaScript change individual characters to upper case Pin
jonatec15-Aug-08 0:04
jonatec15-Aug-08 0:04 
AnswerRe: JavaScript change individual characters to upper case Pin
astanton197815-Aug-08 7:29
astanton197815-Aug-08 7:29 
GeneralRe: JavaScript change individual characters to upper case Pin
Perspx15-Aug-08 10:58
Perspx15-Aug-08 10:58 
GeneralRe: JavaScript change individual characters to upper case Pin
jonatec18-Aug-08 0:19
jonatec18-Aug-08 0:19 
QuestionDevelope Web service Pin
Hemant Thaker14-Aug-08 21:45
Hemant Thaker14-Aug-08 21:45 
AnswerRe: Develope Web service[Ignore Repost] Pin
Manas Bhardwaj15-Aug-08 1:43
professionalManas Bhardwaj15-Aug-08 1:43 
QuestionCustom data types in web services and web references Pin
Yellowseed14-Aug-08 11:58
Yellowseed14-Aug-08 11:58 
I've found a way to keep custom types working smoothly through web services, and I'd like to know what others think. Maybe this is already obvious common practise... if so, please let me know -- it'd be reassuring. Also: please criticize Wink | ;-)

1. An assembly "Domain" containing:
class DomainObject { /* complexity abounds */ }
interface IDomainProvider
{
    void Post(DomainObject do);
    DomainObject[] Query(string query);
}
abstract class DomainProvider : ProviderBase, IDomainProvider { ... }
class StubDomainProvider { ... }

2. An assembly "Domain.WebServices" with app.config specifying StubDomainProvider as the default provider:
class DomainWebService : WebService, IDomainProvider { ... }

3. Back in the "Domain" assembly, a web reference to DomainWebService. Since DomainObject uses xml serialization attributes, its schema is nicely preserved: the web reference automatically generates its own DomainWebService.DomainObject class.
4. In the original DomainObject class,
public static explicit operator DomainWebService.DomainObject (DomainObject obj)
{
}
public static explicit operator DomainWebService.DomainObject(DomainObject obj)
{
}

5. Finally, still in the "Domain" assembly,
public WSDomainProvider : DomainProvider { ... }

Pros:
* WSDomainProvider is easy to implement.
Cons:
* DomainObject has to use xml serialization attributes, not IXmlSerializable.
Does any part of this get your spidey-sense tingling? Does it seem like a bad idea in any way?

Web Development seemed like the right forum ... but would another have been more appropriate?
AnswerRe: Custom data types in web services and web references Pin
Shog914-Aug-08 14:35
sitebuilderShog914-Aug-08 14:35 
GeneralRe: Custom data types in web services and web references Pin
Yellowseed15-Aug-08 3:58
Yellowseed15-Aug-08 3:58 
QuestionRemeber input elements when changing page Pin
William Engberts14-Aug-08 3:53
William Engberts14-Aug-08 3:53 
AnswerRe: Remeber input elements when changing page Pin
Mohammad Dayyan15-Aug-08 11:20
Mohammad Dayyan15-Aug-08 11:20 
QuestionAJAX : Retrieve Specific Tag by id & count tag from external html Pin
Lu5ck14-Aug-08 3:24
Lu5ck14-Aug-08 3:24 
AnswerRe: AJAX : Retrieve Specific Tag by id & count tag from external html Pin
SamRST14-Aug-08 3:52
SamRST14-Aug-08 3:52 
AnswerRe: AJAX : Retrieve Specific Tag by id & count tag from external html Pin
Shog914-Aug-08 9:41
sitebuilderShog914-Aug-08 9:41 
GeneralRe: AJAX : Retrieve Specific Tag by id & count tag from external html Pin
Lu5ck14-Aug-08 16:29
Lu5ck14-Aug-08 16:29 
QuestionDynamic row adding..... Pin
SamRST14-Aug-08 1:50
SamRST14-Aug-08 1:50 
AnswerRe: Dynamic row adding..... Pin
SomeGuyThatIsMe14-Aug-08 7:16
SomeGuyThatIsMe14-Aug-08 7:16 
GeneralRe: Dynamic row adding..... Pin
SamRST16-Aug-08 19:52
SamRST16-Aug-08 19:52 
GeneralRe: Dynamic row adding..... Pin
SomeGuyThatIsMe18-Aug-08 2:02
SomeGuyThatIsMe18-Aug-08 2:02 
QuestionPHP: Invalid argument supplied for foreach () Pin
William Engberts14-Aug-08 0:06
William Engberts14-Aug-08 0:06 
AnswerRe: PHP: Invalid argument supplied for foreach () Pin
neilmajithia14-Aug-08 2:44
neilmajithia14-Aug-08 2:44 
GeneralRe: PHP: Invalid argument supplied for foreach () Pin
William Engberts14-Aug-08 3:46
William Engberts14-Aug-08 3:46 
AnswerRe: PHP: Invalid argument supplied for foreach () Pin
Mohammad Dayyan15-Aug-08 11:12
Mohammad Dayyan15-Aug-08 11:12 
QuestionRetrieve Data From Other Website Pin
Hemant Thaker13-Aug-08 18:45
Hemant Thaker13-Aug-08 18:45 

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.