Sounds to me like your orchestration may not be exposed as a simple
web service. In my experience BizTalk will always wrap parameters
(which I understand is good practice). There are a few things you can
do to get aroundthis, some of them less elegant than others.
Real quick and dirty:
Create an orchestration variable of type XmlDo***ent (browse .NET
types to get it).
In your Message Assignment shape do:
do***ent.LoadXml("<MyExposedResult>...</MyExposedResult>");
using a string containing an instance of your XML response.
Then ResultMessage = do***ent; will assign this to your result message
and you can use it as you please.
Be sure you get the XML right in the LoadXml.
You could also store the XML as a resource within the project, which
is probably a neater solution.
Alternatively you could make a map to your result message type and
just put some filler in it, like a constant value or something, do the
transform first and the assignment second and you'll be set.
If you want to see what your SOAP response looks like this will tell
you more about what types you're returning. I hope this helps,
granted it's not exactly pretty.
Kind Regards,
-Dan


|