Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Invoke web service method from orchestration
- This topic has 2 replies, 1 voice, and was last updated 9 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
July 20, 2009 at 6:12 AM #22888
I’m trying to invoke a web service method from within an orchestration. I have a web reference to the service. I have created web type messages (one request the other response). I use a Message Assignment shape to initialize said request message. And I have both the Send & Receive shapes connected to appropriate operations on the configured port.
I continue to get: Microsoft.XLANGs.Core.PersistenceException: Exception occurred when persisting state to the database. —> Microsoft.BizTalk.XLANGs.BTXEngine.PersistenceItemException: A batch item failed persistence Item-ID 1c46c359-cf4e-4f7d-ad58-0c09e87544bf OperationType MAIO_CommitBatch Status -1061151998 ErrorInfo The published message could not be routed because no subscribers were found. . —> Microsoft.BizTalk.XLANGs.BTXEngine.PublishMessageException: Failed to publish (send) a message in the batch. This is usually because there is no one expecting to receive this message. The error was The published message could not be routed because no subscribers were found. with status -1061151998.
I tried to use a Transform instead of a Message Assignment to construct the message to send, but it won’t display the message in the drop down to select source and/or destination. Is there something wrong with the way I created my message? I simply selected the _Request & _Response Web Message Types that BizTalk automatically created when I referenced the web service.
[<b>edited by:</b> sbrown63 at 6:37 AM (GMT -6) on Mon, Jul 20 2009]
Additionally … when I stop instances of this orchestration in debugger I see that the value of one of the message parts of my message is null – it is of System.Guid type. Not sure if there are any known issues with passing guids … but my other parts get set correctly … and when I look at the Message Properties of the message it shows that the MessageType property is "guid". Not sure what that means because the message is actually a multi-part message consisting of two strings and a guid.I also changed the Guid property to a string and tried that … same error.
-
July 20, 2009 at 1:44 PM #22891
I think I found the real problem. I’m trying to set the address dynamically on the send port as I want to be able to send to different versions of this web service running on different servers. It appears that after this lione of code the Address is still null. Any ideas?
CRMSendPort(Microsoft.XLANGs.BaseTypes.Address) = System.Configuration.ConfigurationManager.AppSettings.Get(webServiceUrl);
-
July 20, 2009 at 7:24 PM #22893
This turned out to be a problem between my seat and my keyboard. A second set of eyes spotted an incorrect variable assignment … thus rendering the Address null. [:$]
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.