Best practice to return error messages
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Best practice to return error messages




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Best practice to return error messages  
Christoffer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-19-04 12:47 PM

Hello, I have a question...

I've set up an Orchestration as a Web Service. The Orchestration performs a
cd-key check to ensure that the calling client has an active cd-key. This is
done by using an Expression Shape and calling an assembly. The assembly
returns a boolean value indicating of the cd-key is active or not. The
Orchestration has a variable to which the value is assigned. The next step
is the Decide Shape where the value is checked for true or false. If it's
true, the Orchestration proceeds with a query and returns a xml document.
However, if the value is false, that is, the cd-key is not active, I would
like to return an error message or similar to the client calling the Web
Service.

What is the best practice of returning error messages from an Orchestration
to a client?

Thanks,
Chris







[ Post a follow-up to this message ]



    Re: Best practice to return error messages  
Christoffer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-19-04 10:52 PM

Right, I figured out it was all about creating a New Fault Message on the
port. Said and done, and as for the message, I created a new schema called
SerialInvalid and a new message with SerialInvalid as its Message Type.

Now, after constructing the fault message and sending it to the Fault
Message Operation I receive a SoapException at the Web Service end. How do I
go about extracting the SerialInvalid message from the SoapException? I had
a look at the SoapException.Detail property but it doesn't seem to include
the message I sent back.

Thanks,
Chris

"Christoffer" <christoffer@nospam.com> skrev i meddelandet
news:ObDavAdhEHA.592@TK2MSFTNGP11.phx.gbl...
> Hello, I have a question...
>
> I've set up an Orchestration as a Web Service. The Orchestration performs
a
> cd-key check to ensure that the calling client has an active cd-key. This
is
> done by using an Expression Shape and calling an assembly. The assembly
> returns a boolean value indicating of the cd-key is active or not. The
> Orchestration has a variable to which the value is assigned. The next step
> is the Decide Shape where the value is checked for true or false. If it's
> true, the Orchestration proceeds with a query and returns a xml document.
> However, if the value is false, that is, the cd-key is not active, I would
> like to return an error message or similar to the client calling the Web
> Service.
>
> What is the best practice of returning error messages from an
Orchestration
> to a client?
>
> Thanks,
> Chris
>
>







[ Post a follow-up to this message ]



    Re: Best practice to return error messages  
abdulsait


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-24-04 11:58 PM

You can just create a new orchestration variable of type "string" and assign
the error message to the string. You dont really need another schema. You ca
n
then send this string as the fault message and extract it using the
SoapException.Detail.

Abcool

"Christoffer" wrote:

> Right, I figured out it was all about creating a New Fault Message on the
> port. Said and done, and as for the message, I created a new schema called
> SerialInvalid and a new message with SerialInvalid as its Message Type.
>
> Now, after constructing the fault message and sending it to the Fault
> Message Operation I receive a SoapException at the Web Service end. How do
 I
> go about extracting the SerialInvalid message from the SoapException? I ha
d
> a look at the SoapException.Detail property but it doesn't seem to include
> the message I sent back.
>
> Thanks,
> Chris
>
> "Christoffer" <christoffer@nospam.com> skrev i meddelandet
> news:ObDavAdhEHA.592@TK2MSFTNGP11.phx.gbl... 
> a 
> is 
> Orchestration 
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:10 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register