BizTalk Server General - Couldn't send HWS task response

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > March 2005 > Couldn't send HWS task response





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Couldn't send HWS task response
Alexander Yartsev

2005-03-17, 3:04 am

Hello everybody,

I trying to respond to hws task message using following piece of
code:


String taskMsg = hwss.GetTaskMessage(tguid, null);
XmlDocument taskXml = new XmlDocument();
taskXml.LoadXml(taskMsg);

// (set task status to completed here)

hwss.SendTaskResponse(taskXml.InnerXml, null);


Invoking this from web cause next error:

[code:1:47d4277f8d]
System.Web.Services.Protocols.SoapException: Failed to send the
response message. --> Failed to submit a response message for
action EligibilityDeterminationAction ID
729c4560-d352-6180-ec01-67134d960179. --> The remote server
returned an error: (500) Internal Server Error.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at TaskResponse.barton.HwsService.SendTaskResponse(String
taskResponse, String actingUser)
at TaskResponse.TaskResponse.RenderWebPart(HtmlTextWriter
output)
[/code:1:47d4277f8d]

Help me to do this code work

Alex

Chris Whytock[MSFT]

2005-03-18, 5:54 pm

What do the event logs on your HWS web service machine say?

--Chris

--------------------[vbcol=seagreen]
sv3-rRQAkM4Ul13/+Hbrb/AiITEY3lSCvyoga+LetvLx/oNUmDxLq12/DqZx1hY3ZFfdB28siz0R
r9/Yneq!+4LyIFLg8+rB/SRp0w/vBYoEE7zR/ SdFaUQ2fKK3l952oDdjl6eA4KIQVR4l[vbcol=se
agreen]
complaint properly[vbcol=seagreen]
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.
sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!border1.nntp.dca.g
iganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!news.giganews.co
m.POSTED!not-for-mail[vbcol=seagreen]

I trying to respond to hws task message using following piece of
code:


String taskMsg = hwss.GetTaskMessage(tguid, null);
XmlDocument taskXml = new XmlDocument();
taskXml.LoadXml(taskMsg);

// (set task status to completed here)

hwss.SendTaskResponse(taskXml.InnerXml, null);


Invoking this from web cause next error:

[code:1:47d4277f8d]
System.Web.Services.Protocols.SoapException: Failed to send the
response message. --> Failed to submit a response message for
action EligibilityDeterminationAction ID
729c4560-d352-6180-ec01-67134d960179. --> The remote server
returned an error: (500) Internal Server Error.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message
message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at TaskResponse.barton.HwsService.SendTaskResponse(String
taskResponse, String actingUser)
at TaskResponse.TaskResponse.RenderWebPart(HtmlTextWriter
output)
[/code:1:47d4277f8d]

Help me to do this code work

Alex
[vbcol=seagreen]

Vishal

2005-03-18, 5:54 pm

An IIS internal server error is usally the result of one the following:
a) The BizTalk receive location for HWS messages is not enabled/running -
check the status using BizTalk Admin console. A message to this effect is
logged in the event log.
b) The user account of the application hosting the receive location does
not have sufficient privilages to submit a message to BizTalk message box
database.
c) The HWS orchestration instance to which the message is being posted in
not running or does not have an active subscription corresponding to the
response message. Check the state of the orchestration instance in HAT
and/or using the subscription viewer tool (available in BizTalk SDK).

Hope that helps.

Vishal


| Subject: Couldn't send HWS task response
| From: yartsev@kiberry-dot-ru.no-spam.invalid (Alexander Yartsev)
| Newsgroups: microsoft.public.biztalk.general
| Date: Thu, 17 Mar 2005 01:23:42 -0600
| Hello everybody,

I trying to respond to hws task message using following piece of
code:


String taskMsg = hwss.GetTaskMessage(tguid, null);
XmlDocument taskXml = new XmlDocument();
taskXml.LoadXml(taskMsg);

// (set task status to completed here)

hwss.SendTaskResponse(taskXml.InnerXml, null);


Invoking this from web cause next error:

[code:1:47d4277f8d]
System.Web.Services.Protocols.SoapException: Failed to send the
response message. --> Failed to submit a response message for
action EligibilityDeterminationAction ID
729c4560-d352-6180-ec01-67134d960179. --> The remote server
returned an error: (500) Internal Server Error.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message
message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at TaskResponse.barton.HwsService.SendTaskResponse(String
taskResponse, String actingUser)
at TaskResponse.TaskResponse.RenderWebPart(HtmlTextWriter
output)
[/code:1:47d4277f8d]

Help me to do this code work

Alex

|

Alexander Yartsev

2005-03-23, 6:01 pm

> Chris Whytock[MSFT]wrote:
"]What do the event logs on your HWS web service machine say?
>
> --Chris
>
>


In event log of my system 4 records for each try:

1. BizTalk Server 2004 Error:
The Messaging Engine encountered an error
publishing a batch of "1" messages to the Message Box
database for the transport adapter "BizTalk HTTP Receiver".
Please refer to Health and Activity Tracking tool for more detailed
information on this failure and check the endpoint bindings are
correctly configured.

2. BizTalk Server 2004 Error:
[code:1:0186333574]The Messaging engine failed to process a message
submitted by adapter:BizTalk HTTP Receiver Source
URL:/HwsMessages/BtsHttpReceive.dll?InterruptAndResponse.
Details:Could not find a matching subscription for the message. .
This error occurs if the subscribed orchestration schedule or send
port has not been started, or if some of the message properties
necessary for subscription evaluation have not been promoted. Please
refer to Health and Activity Tracking tool for more detailed
information on this failure
[/code:1:0186333574]

3. HWS Error:
[code:1:0186333574]Failed to submit a response message for action
EligibilityDeterminationAction ID
729c4560-d352-6180-ec01-67134d960179. - The remote server returned an
error: (500) Internal Server Error.[/code:1:0186333574]

4. HWS Warning:
[code:1:0186333574]Failed to send the response message. - Failed to
submit a response message for action EligibilityDeterminationAction
ID 729c4560-d352-6180-ec01-67134d960179.[/code:1:0186333574]

Alex

Asbjørn Rygg

2005-03-23, 8:47 pm

Alexander Yartsev wrote:
>
> "]What do the event logs on your HWS web service machine say?
>
> In event log of my system 4 records for each try:
>
> 1. BizTalk Server 2004 Error:
> The Messaging Engine encountered an error
> publishing a batch of "1" messages to the Message Box
> database for the transport adapter "BizTalk HTTP Receiver".
> Please refer to Health and Activity Tracking tool for more detailed
> information on this failure and check the endpoint bindings are
> correctly configured.
>
> 2. BizTalk Server 2004 Error:
> [code:1:0186333574]The Messaging engine failed to process a message
> submitted by adapter:BizTalk HTTP Receiver Source
> URL:/HwsMessages/BtsHttpReceive.dll?InterruptAndResponse.
> Details:Could not find a matching subscription for the message. .
> This error occurs if the subscribed orchestration schedule or send
> port has not been started, or if some of the message properties
> necessary for subscription evaluation have not been promoted. Please
> refer to Health and Activity Tracking tool for more detailed
> information on this failure
> [/code:1:0186333574]


Hi,

I belive the "Could not find a matching subscription for the message.."
part is the essential key here. The message basically means that BizTalk
have no idea about where to deliver the message. In my experience this
message is caused by one of three common possibilities: a disabled
receive location, a missing port binding or an invalid input message.

Make shure that your taskresponse receive shape inside
EligibilityDeterminationAction are bound to the HTTP interrupt port and
that the HTTP interrupt port is enabled.

HTH,
Asbjørn
Vishal

2005-03-28, 6:12 pm

It looks like the orchestration instance to which the response is submitted
has either ended or is not waiting for the response message. You should
check it's state using HAT and see what execution path is it following.

An IIS internal server error is usally the result of one the following:
a) The BizTalk receive location for HWS messages is not enabled/running -
check the status using BizTalk Admin console. A message to this effect is
logged in the event log.
b) The user account of the application hosting the receive location does
not have sufficient privilages to submit a message to BizTalk message box
database.
c) The HWS orchestration instance to which the message is being posted in
not running or does not have an active subscription corresponding to the
response message. Check the state of the orchestration instance in HAT
and/or using the subscription viewer tool (available in BizTalk SDK).

Hope that helps.

Vishal
--------------------
| NNTP-Posting-Date: Wed, 23 Mar 2005 08:22:56 -0600
| Subject: Re: RE: Couldn't send HWS task response
| From: yartsev@kiberry-dot-ru.no-spam.invalid (Alexander Yartsev)
| Newsgroups: microsoft.public.biztalk.general
| Mime-Version: 1.0
| Content-Type: text/plain; charset=ISO-8859-15
| Content-Transfer-Encoding: 8bit
| User-Agent: newsSync (BizTalk Server) 13112
| References: <Bt-dnd_qOvbjraTfRVn_vA@giganews.com>
| Message-ID: <UpKdnfRhRu5c5tzfRVn_vA@giganews.com>
| Date: Wed, 23 Mar 2005 08:22:57 -0600
| Lines: 1
| X-Trace:
sv3- OErMAsmtZVcxzwDE53uBRBKCHeabNMldNrEO+WVh
sYx8rOkmAFJazcLQaZ5Z/mnHMO4yU0Vc
gAKz2VG!F6ua7OUW/SlcCo8T2LsgowdxJu8eA63ocOX8h0LeWjyEO/OdbhTjzrRTiVgg
| X-Complaints-To: abuse@giganews.com
| X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fa
stwebnet.it!tiscali!newsfeed1.ip.tiscali.net!news.glorb.com!border1.nntp.dca
.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!news.giganews.
com.POSTED!not-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.biztalk.general:25735
| X-Tomcat-NG: microsoft.public.biztalk.general
|
| > Chris Whytock[MSFT]wrote:
| "]What do the event logs on your HWS web service machine say?
| >
| > --Chris
| >
| >
|
| In event log of my system 4 records for each try:
|
| 1. BizTalk Server 2004 Error:
| The Messaging Engine encountered an error
| publishing a batch of "1" messages to the Message Box
| database for the transport adapter "BizTalk HTTP Receiver".
| Please refer to Health and Activity Tracking tool for more detailed
| information on this failure and check the endpoint bindings are
| correctly configured.
|
| 2. BizTalk Server 2004 Error:
| [code:1:0186333574]The Messaging engine failed to process a message
| submitted by adapter:BizTalk HTTP Receiver Source
| URL:/HwsMessages/BtsHttpReceive.dll?InterruptAndResponse.
| Details:Could not find a matching subscription for the message. .
| This error occurs if the subscribed orchestration schedule or send
| port has not been started, or if some of the message properties
| necessary for subscription evaluation have not been promoted. Please
| refer to Health and Activity Tracking tool for more detailed
| information on this failure
| [/code:1:0186333574]
|
| 3. HWS Error:
| [code:1:0186333574]Failed to submit a response message for action
| EligibilityDeterminationAction ID
| 729c4560-d352-6180-ec01-67134d960179. - The remote server returned an
| error: (500) Internal Server Error.[/code:1:0186333574]
|
| 4. HWS Warning:
| [code:1:0186333574]Failed to send the response message. - Failed to
| submit a response message for action EligibilityDeterminationAction
| ID 729c4560-d352-6180-ec01-67134d960179.[/code:1:0186333574]
|
| Alex
|
|

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com