Problems with dynamic port binding to consume web service
- From: Erik <Erik@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 17 May 2021 01:24:02 -0700
Hi there,
I'm trying to create an application which use a dynamic web port to call
different web services. I first designed a simple orchestration which take a
xml file from a receive location and processes this message by consuming a
web service by a static web port and stores a resulting xml file throu a send
port a folder on my server. This worked well. Then I reconfigured the web
port to the dynamic mode, added an epression schape to initialize / setup the
port address by an expression like this:
Dynamic_WebPort(Microsoft.XLANGs.BaseTypes.Address) =
"http://localhost/LoanRatingServices/LoanRatingService.asmx";;
The service adress I use is adress of the service also used with the static
port.
Build and Deploy of the application succeed, but when I run the application
by copying and corresponding xml file to the receive loaction the application
resumes with this error:
Ereignistyp: Fehler
Ereignisquelle: XLANG/s
Ereigniskategorie: Keine
Ereigniskennung: 10025
Datum: 16.05.2021
Zeit: 15:42:32
Benutzer: Nicht zutreffend
Computer: EXP
Beschreibung:
Uncaught exception (see the 'inner exception' below) has suspended an
instance of service
'LoanProcessingOrchestrations.LoanRatingProcess(4f778269-f4cb-a534-5ec7-7e19cf80c470)'.
The service instance will remain suspended until administratively resumed or
terminated.
If resumed the instance will continue from its last persisted state and may
re-throw the same unexpected exception.
InstanceId: 4a8ec5a0-c19f-41b3-a8fa-cca7fe51f223
Shape name: Send_LoanRatingRequestMessage
ShapeId: a8a73334-77c6-490e-ae02-aeefe9ae4378
Exception thrown from: segment 1, progress 11
Inner exception: Failed while attempting to send message
'LoanRatingRequestMessage'.
Exception type: SendFailedException
Source: Microsoft.XLANGs.BizTalk.Engine
Target Site: Void
WriteMessageState(Microsoft.BizTalk.Interop.IBTPEPInfoLookup, System.Guid,
Microsoft.XLANGs.BaseTypes.XLANGMessage, Microsoft.XLANGs.Core.Segment,
System.String, System.String, System.Collections.IList, Boolean,
System.Collections.IList)
The following is a stack trace that identifies the location where the
exception occured
at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXXlangStore.WriteMessageState(IBTPEPInfoLookup
pepLookup, Guid portId, XLANGMessage msg, Segment seg, String opname, String
url, IList promoteProps, Boolean track, IList toPromote)
at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXLogicalPortBinding.SendMessage(XLANGMessage
msg, XlangStore store, Segment seg, OperationInfo op, IList additionalProps,
IList toPromote, Boolean ignoreRoutingFailure)
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXPortBase.SendMessage(Int32
iOperation, XLANGMessage msg, Correlation[] initCorrelations, Correlation[]
followCorrelations, SubscriptionWrapper& subscriptionWrapper, Context cxt,
Segment seg, ActivityFlags flags)
at Microsoft.XLANGs.Core.PortBase.SendMessage(Int32 iOperation,
XLANGMessage msg, Correlation[] initCorrelations, Correlation[]
followCorrelations, SubscriptionWrapper& subscriptionWrapper, Context cxt,
Segment seg)
at LoanProcessingOrchestrations.LoanRatingProcess.segment1(StopConditions
stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s,
StopConditions stopCond, Exception& exp)
Additional error information:
Exception from HRESULT: 0xC0C01672
Exception type: COMException
Source: Microsoft.XLANGs.BizTalk.Engine
Target Site: Void PostToSendPort(System.Guid ByRef,
Microsoft.BizTalk.Agent.Interop.IBTMessageBatch,
Microsoft.BizTalk.Agent.Interop.IBTMessage, System.String, System.String,
Microsoft.BizTalk.Interop.IBTMMessageList ByRef)
The following is a stack trace that identifies the location where the
exception occured
at Microsoft.BizTalk.Interop.IBTPEPInfoLookup.PostToSendPort(Guid&
sendPortID, IBTMessageBatch batch, IBTMessage msg, String operationName,
String url, IBTMMessageList& dlMsgList)
at
Microsoft.BizTalk.XLANGs.BTXEngine.BTXXlangStore.WriteMessageState(IBTPEPInfoLookup
pepLookup, Guid portId, XLANGMessage msg, Segment seg, String opname, String
url, IList promoteProps, Boolean track, IList toPromote)
If I try to use the Orchestration Debugger an error messages comes up saying
that the tracking database doesn't have any records for the service
instance. And the Message Flow can't be display as well because there where
no messages ...
Can anyone help? Thanks
Erik
.
- Prev by Date: Re: Mapping more than 100 messages to one message
- Next by Date: Re: BizTalk flat file wizard
- Previous by thread: Re: SQL Adapter and transactions - Need help!!
- Next by thread: Re: BizTalk flat file wizard
- Index(es):
Relevant Pages
|