Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

creating fault for non-wcf client

 
 
Thread Tools Display Modes
Old 06-01-2007   #1 (permalink)
jvshore
Guest


 

creating fault for non-wcf client

I am using WCF to act as gateway to linux applications, and thus the
client is not a WCF client. I want to return a SOAP fault to the
client - how do I do this?

Old 06-01-2007   #2 (permalink)
jvshore
Guest


 

Re: creating fault for non-wcf client

On Jun 1, 11:43 am, jvshore <jvsh...@earthlink.net> wrote:
> I am using WCF to act as gateway to linux applications, and thus the
> client is not a WCF client. I want to return a SOAP fault to the
> client - how do I do this?


I failed to indicate that the binding is basicHttpBinding and the
client is making calls to the service via SOAP

Old 06-02-2007   #3 (permalink)
Aneesh P
Guest


 

Re: creating fault for non-wcf client

On Jun 1, 11:49 pm, jvshore <jvsh...@earthlink.net> wrote:
> On Jun 1, 11:43 am, jvshore <jvsh...@earthlink.net> wrote:
>
> > I am using WCF to act as gateway to linux applications, and thus the
> > client is not a WCF client. I want to return a SOAP fault to the
> > client - how do I do this?

>
> I failed to indicate that the binding is basicHttpBinding and the
> client is making calls to the service via SOAP


I think you can serialize the caught exception(SOAP fault) and send
it. I am not sure whether we can serialize all faults in WCF.

Old 06-03-2007   #4 (permalink)
Aneesh P
Guest


 

Re: creating fault for non-wcf client

On Jun 3, 12:13 am, Aneesh P <anees...@gmail.com> wrote:
> On Jun 1, 11:49 pm, jvshore <jvsh...@earthlink.net> wrote:
>
> > On Jun 1, 11:43 am, jvshore <jvsh...@earthlink.net> wrote:

>
> > > I am using WCF to act as gateway to linux applications, and thus the
> > > client is not a WCF client. I want to return a SOAP fault to the
> > > client - how do I do this?

>
> > I failed to indicate that the binding is basicHttpBinding and the
> > client is making calls to the service via SOAP

>
> I think you can serialize the caught exception(SOAP fault) and send
> it. I am not sure whether we can serialize all faults in WCF.


In case the fault is not serializabel, we can use a custom
[DataContract] which is serializable and can be sent to any client in
XML format. The logic to handle the fault should be in client side -
like parsing the XML and identifying the error details.

 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
My fault - can't get SideBar to run Les Vista account administration 3 03-30-2008 06:47 PM
fault joe72 Vista mail 1 12-30-2007 10:12 AM
Protection fault sourdoh Vista security 0 07-30-2007 06:42 PM
Program at fault bmv Vista account administration 1 03-14-2007 06:56 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50