Resources for IT Professionals >
Forums Home
>
BizTalk Server Forums
>
BizTalk Server General
>
WCF-Adapter Service call failure.
WCF-Adapter Service call failure.
How can i distinguish between 2 response from a WCF service inside biztalk.
two response are of these categories
1) Service was not available
2) service threw an exception
because i saw in both case WCF-Adapter keep on re-trying and do not have any extra property associated which will tell me which of the above 2 case it is.
My requirement is that if service is not availlable then i would like to retry but if that threw an exceptio nthen i would purge that message and send caller an exception back.
may be you experts can help me?
I have implemented message only solution so i can not catch exceptions.
Software Engineer- Edited byRam Kinkar Pandey Tuesday, November 03, 2009 11:15 AMquestion was not clear
Answers
- I figured this out.
Even my service method which i am calling from Biztalk is "void", i created a send port that was of request-reply type and if service is not available Biztalk sendport will keep on re-trying and if service will throw any exception it will go in non-resumeable mode. And there i may have some subscriber which will subcribe those kind of message and keep purging them.
regards,
Software Engineer- Marked As Answer byRam Kinkar Pandey Tuesday, November 03, 2009 3:16 PM
All Replies
- if you are setting retry count on send port then it will retry that many times till it receives success message from end application it doesnt bother to check if it failed because of service non availability or any other reason .
to handle this case better to have retries in orchestration that is set retry count on send port to 0 and catch exceptions in orchestration and if you receive nack message retry in orchestration if some other exception catch it and you can send email to user or any other option to communicate.
in meesage only scenario you cant implement what you intend to do as it will be one-way you can't send exception back to user.
you atleast need one error handling orchestration which will subscribed to error messages and handle it.
KiranMP - Thanks Kiran,
yours post was helpful.
Software Engineer - I figured this out.
Even my service method which i am calling from Biztalk is "void", i created a send port that was of request-reply type and if service is not available Biztalk sendport will keep on re-trying and if service will throw any exception it will go in non-resumeable mode. And there i may have some subscriber which will subcribe those kind of message and keep purging them.
regards,
Software Engineer- Marked As Answer byRam Kinkar Pandey Tuesday, November 03, 2009 3:16 PM
- biztalk wont keep on retrying it will only retry till the count set on it so if service is not available even after the count set on port it will go to suspended.
KiranMP

