Click here to Skip to main content
15,924,553 members
Home / Discussions / C#
   

C#

 
GeneralRe: Threading Question Pin
NameYou13-Dec-06 1:32
NameYou13-Dec-06 1:32 
AnswerRe: Threading Question Pin
sno-114-Dec-06 3:52
sno-114-Dec-06 3:52 
Questionfont Pin
hadad12-Dec-06 6:49
hadad12-Dec-06 6:49 
AnswerRe: font Pin
Nader Elshehabi12-Dec-06 7:59
Nader Elshehabi12-Dec-06 7:59 
Questionsending messages to a window from a windows service Pin
George_Lucian12-Dec-06 5:49
George_Lucian12-Dec-06 5:49 
AnswerRe: sending messages to a window from a windows service Pin
Nader Elshehabi12-Dec-06 8:05
Nader Elshehabi12-Dec-06 8:05 
QuestionDisabling the context menu [interop.word.dll] Pin
Eytukan12-Dec-06 4:38
Eytukan12-Dec-06 4:38 
QuestionWeb Service Proxy Problem! Pin
Mehdi Mousavi12-Dec-06 4:32
Mehdi Mousavi12-Dec-06 4:32 
Hi folks,
Consider a MyEntity class that's being marked as SerializableAttribute. The object is exposed to the outer world through the following web method:

[WebMethod()]<br />
[SoapHeader("Credentials")]<br />
[SoapDocumentMethod(Use=SoapBindingUse.Encoded)]<br />
public MyEntity GetMyEntity()<br />
{<br />
    //get the entity and return the object.<br />
}


Well, I've to mark the web method with SoapDocumentMethodAttribute, or else, the XMLSerializer doesn't have any idea of how to serialize/deserialize the object. I've also altered the reference.cs file (the proxy file generated for the web service automatically) so that it will uses my business_objects.dll to handle objects, the file that hosts the MyEntity class.

The problem is that whenever the GetMyEntity() function is called, the service proxy tries to construct the object using the properties exposed on MyEntity class, using the default constructor of the class. How am I supposed to instruct the proxy to use the class constructors to get the job done? How am I supposed to control the serialization/deserialization process of the entities?

Please keep in mind that the MyEntity class uses circular references, and therefore, the XMLSerilizer or Literal encoding *cannot be used* to handle the issue.

Any help would be highly appreciated,

TIA,

Mehdi
AnswerRe: Web Service Proxy Problem! Pin
Andy Brummer12-Dec-06 17:27
sitebuilderAndy Brummer12-Dec-06 17:27 
AnswerRe: Web Service Proxy Problem! Pin
Mehdi Mousavi12-Dec-06 19:11
Mehdi Mousavi12-Dec-06 19:11 
GeneralRe: Web Service Proxy Problem! Pin
Andy Brummer13-Dec-06 4:10
sitebuilderAndy Brummer13-Dec-06 4:10 
QuestionToolTab Gone Hay Wire Pin
burrows.stephen12-Dec-06 4:30
burrows.stephen12-Dec-06 4:30 
AnswerRe: ToolTab Gone Hay Wire Pin
Judah Gabriel Himango12-Dec-06 6:47
sponsorJudah Gabriel Himango12-Dec-06 6:47 
GeneralRe: ToolTab Gone Hay Wire Pin
burrows.stephen13-Dec-06 1:00
burrows.stephen13-Dec-06 1:00 
QuestionString conversion Pin
Eduard Keilholz12-Dec-06 4:05
Eduard Keilholz12-Dec-06 4:05 
AnswerRe: String conversion Pin
Pete O'Hanlon12-Dec-06 4:24
mvePete O'Hanlon12-Dec-06 4:24 
GeneralRe: String conversion Pin
Eduard Keilholz12-Dec-06 4:31
Eduard Keilholz12-Dec-06 4:31 
GeneralRe: String conversion Pin
Stefan Troschuetz12-Dec-06 4:42
Stefan Troschuetz12-Dec-06 4:42 
GeneralRe: String conversion Pin
Eduard Keilholz12-Dec-06 21:54
Eduard Keilholz12-Dec-06 21:54 
GeneralRe: String conversion Pin
althamda12-Dec-06 4:51
althamda12-Dec-06 4:51 
AnswerRe: String conversion Pin
althamda12-Dec-06 4:46
althamda12-Dec-06 4:46 
GeneralRe: String conversion Pin
M. A. Deniz Yalman12-Dec-06 4:52
M. A. Deniz Yalman12-Dec-06 4:52 
QuestionOnly One Child Window in MDI Pin
h@s@n12-Dec-06 3:43
h@s@n12-Dec-06 3:43 
AnswerRe: Only One Child Window in MDI Pin
Pete O'Hanlon12-Dec-06 3:46
mvePete O'Hanlon12-Dec-06 3:46 
GeneralRe: Only One Child Window in MDI Pin
h@s@n12-Dec-06 4:07
h@s@n12-Dec-06 4:07 

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.