BizTalk Server General - Map - Validation of Outbound Msg

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > May 2005 > Map - Validation of Outbound Msg





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 Map - Validation of Outbound Msg
Steve Harclerode

2005-05-20, 5:58 pm

Hi,

I've only been working with BizTalk for a few weeks.

I have an orchestration that creates a message via a map. If the incoming
message is invalid, the map will fail. But if my map produces an output
message that is invalid, the orchestration continues on, and no error is
raised.

My boss tells me that one of the great things about BizTalk is that it will
validate messages that come out of a map, and fail if the outbound message
is invalid. How can I get BizTalk to do this?

Thanks,
Steve


ckphua

2005-05-21, 2:51 am

Steve,

If you want to validate the message as it leaves the orchestration, you can
do this by deploying a custom pipeline with an XML Validator component in the
encode stage. If you want to validate it whilst it is still in the
orchestration, you may have to develop and invoke a .NET assembly to do that.
In the assembly, you can probably make use of the
BizTalk.Component.XmlValidator class, but Microsoft does not formally support
that class. Alternatively, you can use the XmlValidatingReader object, with
some additional work of having to retrieve the schema of the message you want
to validate.

Some other less elegant solutions involve sending the message out to the
MsgBox and correlating it back into the orchestration, and validating the
message in the receive pipeline as it returns.

Hope that helps,
ck.

Phua Chiu Kiang
http://www.pckconsulting.com

"Steve Harclerode" wrote:

> Hi,
>
> I've only been working with BizTalk for a few weeks.
>
> I have an orchestration that creates a message via a map. If the incoming
> message is invalid, the map will fail. But if my map produces an output
> message that is invalid, the orchestration continues on, and no error is
> raised.
>
> My boss tells me that one of the great things about BizTalk is that it will
> validate messages that come out of a map, and fail if the outbound message
> is invalid. How can I get BizTalk to do this?
>
> Thanks,
> Steve
>
>
>

sanket.bakshi@gmail.com

2005-05-24, 2:51 am

Hi,
Can you just explain a bit more in detail?
Does it produce an invalid Xml ?
Or is that you are trying to produce a flat file output ?
What is it exactly ?
If some node is missing in the output Xml, you should try checking the
schema for the required and default values.
If your output is a flat file schema, I would suggest checking the
delimiters properly.
The output from the map should always confirm to the target schema
mentioned while creating a map.
It would be great if you could post a few more details to explore
further.

Regards,
Sanket
Check out my Biztalk Blog at -
http://mydotnetandbiztalkspace.blogspot.com

Steve Harclerode

2005-05-24, 6:01 pm

The output was XML.

What we are doing is to get a message from a web service, transform it to a
trading partner's spec (XSD), and then send the new message to the partner's
FTP site. The problem was that one of the fields in the message from the web
service was padded with spaces, and that field in the outbound message was
constrained to be smaller than the number of characters coming from the web
service.

I fixed the issue by using right trim functoids on every string field.
Painful, but effective.

Thanks for the reply, let me know if you would like any more info. We have
done what we need to do, but perhaps someone else could benefit from more
information.

- Steve

<sanket.bakshi@gmail.com> wrote in message
news:1116919777.782005.316170@g47g2000cwa.googlegroups.com...
> Hi,
> Can you just explain a bit more in detail?
> Does it produce an invalid Xml ?
> Or is that you are trying to produce a flat file output ?
> What is it exactly ?
> If some node is missing in the output Xml, you should try checking the
> schema for the required and default values.
> If your output is a flat file schema, I would suggest checking the
> delimiters properly.
> The output from the map should always confirm to the target schema
> mentioned while creating a map.
> It would be great if you could post a few more details to explore
> further.
>
> Regards,
> Sanket
> Check out my Biztalk Blog at -
> http://mydotnetandbiztalkspace.blogspot.com
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com