Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Invoking a BizTalk Map in Code
- This topic has 3 replies, 1 voice, and was last updated 9 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
April 7, 2008 at 8:55 AM #19272
Hello:
Here’s my situation. I have an orchestration that I want to be able to listen for internal member schema messages ( hypothetical example ) coming into the system. On the other hand, I have more than one external format or schema for external members to be processed through this orchestration, but i would like to make the orchestration generic so that I do not have the change it when new types of members are added.
What I would like to do is have my orchestrationlisten for my internal member messages and for each external member schema I would have a map that maps that external schema to my internal one at the receive port. That is all fine…and i see that works when I am working with FILE receive ports and the like.
However, another requirement is that these external member messages will be coming through web services, and until now I cannot seem to get maps working on my ( orchestration published as a ) web service receive port. This makes sense to me though because web services are not schema agnostic; they require a specific schema for the request and response unlike a FILE receive port.
So, my question is, is there a way to invoke my map ( external member to internal member ) from my orchestration published web service? In other words, is there a way that I can:
- change the request onf the web service to be the external member schema
- invoke the map dynamically through code to transform the ecternal member to internal
- pass the internal member to my orchestration
- invoke the map dynamically through code to transform the response of the orchestration to the external response
- return the external member response
Any suggestions or thoughts on this would be appreciated. Thanks.
-
April 7, 2008 at 9:39 AM #19273
Hello,
You should be able to invoke a map on a receive port using any adapter type as the transport mechanism – have you checked that the XmlDisassembler component is present on your pipeline – or that you are using the XmlReceive pipeline – to ensure that the MessageType property is promoted into the message context, allowing the receive port map to work?
Nick.
-
April 7, 2008 at 9:43 AM #19274
Kevin,
if you have it working through a file drop, why not convert your web service to drop the incoming file? Also the separation makes testing much easier – hard-wired web service to orchestration is a pain for testing and maintenance.
John D.
-
June 5, 2009 at 12:01 AM #22585
Hi Thr
I am not much xpert to all this but one thing i know for sure that the map can be called using the XSLT code.
and that can be done by calling the dll of the map as one of the client was having that arch.
Unfortunately i dont know how to do that but 200% sure that is a way that exist.
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.