|
Home > Archive > BizTalk Server Orchestration > June 2005 > [Newbie Question] xml without namespace
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 |
[Newbie Question] xml without namespace
|
|
| Thomas Reinhardt 2005-06-09, 5:51 pm |
| Hi Group !
Isn't it possible to use a xml-file without namespace definition inside as a
data source? When I omit the namespace tag (which is what my source
application does) the orchestration won't run. I'm sure there's just a
little click I haven't done...
Thanks for your help,
Thomas
| |
| Dan Tharp 2005-06-09, 5:51 pm |
| My guess would be that the orchestration is failing because your
specification is saying there should be a namespace, but the actual XML file
coming into the orchestration doesn't have a namespace, so the schema
validation is failing.
When you define the schema for the XML document, you can have it NOT have a
namespace (all of my documents that I receive from customers do not have
namespaces) and this is fine.
However, you'll get WARNINGS when you compile that you "should" probably
have namespaces...but it's jus a warning.
Just make sure as you're defining your schema to validate a sample document
that contains no namespace to make sure your schema is valid before you try
and run it through an orchestration.
Hope this helps.
Dan Tharp
"Thomas Reinhardt" <reinhardt.thomas@t-online.de> wrote in message
news:d89hhi$bd3$04$1@news.t-online.com...
> Hi Group !
>
> Isn't it possible to use a xml-file without namespace definition inside as
> a
> data source? When I omit the namespace tag (which is what my source
> application does) the orchestration won't run. I'm sure there's just a
> little click I haven't done...
>
> Thanks for your help,
> Thomas
>
| |
| Thomas Reinhardt 2005-06-09, 5:51 pm |
| Dan Tharp wrote:
> My guess would be that the orchestration is failing because your
> specification is saying there should be a namespace, but the actual XML
> file coming into the orchestration doesn't have a namespace, so the schema
> validation is failing.
> When you define the schema for the XML document, you can have it NOT have
> a namespace (all of my documents that I receive from customers do not have
> namespaces) and this is fine.
> However, you'll get WARNINGS when you compile that you "should" probably
> have namespaces...but it's jus a warning.
> Just make sure as you're defining your schema to validate a sample
> document that contains no namespace to make sure your schema is valid
> before you try and run it through an orchestration.
> Hope this helps.
> Dan Tharp
Thanks for answering...
I haven't any namespaces defined in my schema except of
xmlns:b="http://schemas.microsoft...." and
xmlns:xs="...."
- I tried to remove them but wasn't successful. I suppose these are some
kind of internal usage for.
I discovered some error messages which might be useful. Whenever I try to
run a orchestration (by copying my xmlfile to the receive location) I'm
getting 4 errors in the event viewer.
the errors read as follows (translated from German):
(1) The messaging-module has halted "1" messages from adapter "FILE" due to
errors during processing
(2) The adapter "FILE" has halted a message from source-url "c:\.....".
Details: "No appropriate subscription found
(3) [message (2) repeated]. This error raises if the subscribed
orchestration or the send-port wasn't started or some necessary message
properties haven't high enough priorities.
(4) Error in message-module during deployment of a batch of "1" messages to
the messagebox-database for adapter "FILE"
I can't see any sense in these messages - all ports are (as far as I can
see) started. My BizTalk installation is running fine when I use namespaces
so I think I am missing something I need to switch on/off.
Any further ideas?
PS: sorry for asking stupid questions ;)
| |
| Dan Tharp 2005-06-10, 5:51 pm |
| It looks like you have a send port which isn't tied to your receive port, so
when the document comes in, Biztalk basically doesn't know where it's
supposed to go.
Try editting your send port and see if it's tied to the receive port(s) at
all.
Right click the send port, choose Edit, click Filters & Maps on the
left-hand side, click Filters, and see if there's anything there on the
right-hand side.
If not, add an entry something like this:
Property: BTS.ReceivePortName
Operation: == (2 equal signs)
Value: (your receive port's name)
You could use all sorts of other "Property" settings, but using
BTS.ReceivePortName and your receive ports name as the value is the most
straightforward.
Hope this helps.
P.S. - Don't worry about asking stupid questions...there's no such thing.
I've been using BizTalk for almost 4 years, but I'm brand new to BizTalk
2004 and most of the time, I have no clue what I'm doing (BTS2004 is very
very different from BTS2000 and BTS2002).
You only learn if you ask.
Good luck!
Dan
"Thomas Reinhardt" <reinhardt.thomas@t-online.de> wrote in message
news:d8ae93$u6t$00$1@news.t-online.com...
> Dan Tharp wrote:
>
>
> Thanks for answering...
>
> I haven't any namespaces defined in my schema except of
> xmlns:b="http://schemas.microsoft...." and
> xmlns:xs="...."
> - I tried to remove them but wasn't successful. I suppose these are some
> kind of internal usage for.
>
> I discovered some error messages which might be useful. Whenever I try to
> run a orchestration (by copying my xmlfile to the receive location) I'm
> getting 4 errors in the event viewer.
> the errors read as follows (translated from German):
> (1) The messaging-module has halted "1" messages from adapter "FILE" due
> to
> errors during processing
> (2) The adapter "FILE" has halted a message from source-url "c:\.....".
> Details: "No appropriate subscription found
> (3) [message (2) repeated]. This error raises if the subscribed
> orchestration or the send-port wasn't started or some necessary message
> properties haven't high enough priorities.
> (4) Error in message-module during deployment of a batch of "1" messages
> to
> the messagebox-database for adapter "FILE"
>
> I can't see any sense in these messages - all ports are (as far as I can
> see) started. My BizTalk installation is running fine when I use
> namespaces
> so I think I am missing something I need to switch on/off.
>
> Any further ideas?
>
>
> PS: sorry for asking stupid questions ;)
>
| |
| Thomas Reinhardt 2005-06-11, 8:47 pm |
| Dan Tharp wrote:
> It looks like you have a send port which isn't tied to your receive port,
> so when the document comes in, Biztalk basically doesn't know where it's
> supposed to go.
> Try editting your send port and see if it's tied to the receive port(s) at
> all.
> Right click the send port, choose Edit, click Filters & Maps on the
> left-hand side, click Filters, and see if there's anything there on the
> right-hand side.
> If not, add an entry something like this:
> Property: BTS.ReceivePortName
> Operation: == (2 equal signs)
> Value: (your receive port's name)
>
> You could use all sorts of other "Property" settings, but using
> BTS.ReceivePortName and your receive ports name as the value is the most
> straightforward.
>
> Hope this helps.
Hmm, this didn't change anything. But besides: do I really have to configure
the port-mappings twice (first when designing the orchestration and second
after deploying)?
I'll try again tomorrow...
Best regards,
Thomas
| |
| Matt Milner 2005-06-18, 2:47 am |
| Since you don't have a namespace, you may need to create a receive pipeline
with the xmldisassembler on it. Configure the disassembler to use your
document spec. The configure this pipeline on your receive location.
Matt
"Thomas Reinhardt" <reinhardt.thomas@t-online.de> wrote in message
news:d89hhi$bd3$04$1@news.t-online.com...
> Hi Group !
>
> Isn't it possible to use a xml-file without namespace definition inside as
> a
> data source? When I omit the namespace tag (which is what my source
> application does) the orchestration won't run. I'm sure there's just a
> little click I haven't done...
>
> Thanks for your help,
> Thomas
>
| |
| McGeeky 2005-06-19, 7:51 am |
| Hi Matt,
Do you know of a technique to replace on namespace with another in the
pipeline? E.g. an incoming namespace is http://A which can then be renamed
to http://B
The goal is to link two orchestrations together. When orchestration A
completes it sends out a message which notifies orchestration B. But I don't
want orchestration B to be dependent upon orchestration A's assembly nor its
message schema. I want it to be loosely coupled. But I still want it to use
the message that orchestration A sends.
Any tips?
Thanks
--
McGeeky
http://mcgeeky.blogspot.com
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
news:Oizdwt7cFHA.2384@TK2MSFTNGP10.phx.gbl...
> Since you don't have a namespace, you may need to create a receive
pipeline
> with the xmldisassembler on it. Configure the disassembler to use your
> document spec. The configure this pipeline on your receive location.
>
> Matt
>
>
> "Thomas Reinhardt" <reinhardt.thomas@t-online.de> wrote in message
> news:d89hhi$bd3$04$1@news.t-online.com...
as[vbcol=seagreen]
>
>
| |
| Marvin Smit 2005-06-20, 7:47 am |
| Hi,
I think an XSLT Transformation will do very nicely in this scenario.
Hope this helps,
Marvin Smit
On Sun, 19 Jun 2005 12:33:14 +0100, "McGeeky" <anon@anon.com> wrote:
>Hi Matt,
>
>Do you know of a technique to replace on namespace with another in the
>pipeline? E.g. an incoming namespace is http://A which can then be renamed
>to http://B
>
>The goal is to link two orchestrations together. When orchestration A
>completes it sends out a message which notifies orchestration B. But I don't
>want orchestration B to be dependent upon orchestration A's assembly nor its
>message schema. I want it to be loosely coupled. But I still want it to use
>the message that orchestration A sends.
>
>Any tips?
>
>Thanks
| |
| McGeeky 2005-06-20, 7:47 am |
| To use XSLT, would I create a BizTalk map but tell it to use my custom XSLT
instead?
--
McGeeky
http://mcgeeky.blogspot.com
"Marvin Smit" <marvin.smit@gmail.com> wrote in message
news:eh7db1dsi2h2367b9tk3tejiffl9bd3ecs@
4ax.com...
> Hi,
>
> I think an XSLT Transformation will do very nicely in this scenario.
>
> Hope this helps,
>
> Marvin Smit
>
>
> On Sun, 19 Jun 2005 12:33:14 +0100, "McGeeky" <anon@anon.com> wrote:
>
>
| |
| Marvin Smit 2005-06-20, 7:47 am |
|
Definitily an option.
Depending on where you want this (transformation) to happen/be
reused..... Go with a map or write the code yourself in a pipeline
component.
Marvin Smit
On Mon, 20 Jun 2005 12:46:48 +0100, "McGeeky" <anon@anon.com> wrote:
>To use XSLT, would I create a BizTalk map but tell it to use my custom XSLT
>instead?
| |
| Matt Milner 2005-06-21, 2:48 am |
| I'd say either a) create a pipeline component which replaces the schemas,
this could be as simple as reading each line of text and doing a string
replace (though that might not be as robust as you would like) or b) use a
map in the receive or sent port configuration (or orchestration A) to map
from one namespace to the other. A map is a heavy thing to use in the
orchestration and the pipeline component will probably perform best if
written to use streaming.
Matt
"McGeeky" <anon@anon.com> wrote in message
news:u5EhhKMdFHA.2588@TK2MSFTNGP15.phx.gbl...
> Hi Matt,
>
> Do you know of a technique to replace on namespace with another in the
> pipeline? E.g. an incoming namespace is http://A which can then be renamed
> to http://B
>
> The goal is to link two orchestrations together. When orchestration A
> completes it sends out a message which notifies orchestration B. But I
> don't
> want orchestration B to be dependent upon orchestration A's assembly nor
> its
> message schema. I want it to be loosely coupled. But I still want it to
> use
> the message that orchestration A sends.
>
> Any tips?
>
> Thanks
>
> --
> McGeeky
> http://mcgeeky.blogspot.com
>
>
> "Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
> news:Oizdwt7cFHA.2384@TK2MSFTNGP10.phx.gbl...
> pipeline
> as
>
>
| |
| McGeeky 2005-06-21, 7:55 am |
| Thanks Matt.
Which type of pipeline component is most appropriate for making a change
like that to the message?
--
McGeeky
http://mcgeeky.blogspot.com
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
news:OODyx2gdFHA.2076@TK2MSFTNGP15.phx.gbl...
> I'd say either a) create a pipeline component which replaces the schemas,
> this could be as simple as reading each line of text and doing a string
> replace (though that might not be as robust as you would like) or b) use a
> map in the receive or sent port configuration (or orchestration A) to map
> from one namespace to the other. A map is a heavy thing to use in the
> orchestration and the pipeline component will probably perform best if
> written to use streaming.
>
> Matt
>
>
> "McGeeky" <anon@anon.com> wrote in message
> news:u5EhhKMdFHA.2588@TK2MSFTNGP15.phx.gbl...
>
>
|
|
|
|
|