|
Home > Archive > BizTalk Server General > June 2005 > Setting XML name spaces in biztalk
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 |
Setting XML name spaces in biztalk
|
|
| okaminer 2005-06-23, 5:55 pm |
| hi
I'm trying to set XML namespaces in message which is going out of
Biztalk and I an haing a bit of a problem
first: In the schema The "Target Namespace" property (in the schema
properties) let you add only one name space. I need to add several
namespaces
Second: the xmlns always come with "ns0" like this:
xmlns:ns0="http://schemas.microsoft......
And I want it to be like this:
xmlns:my="http://schemas.microsoft......
You can see that is the line above I have replaced the word "ns0" with
"my"
aperantlly in biztalk it is much harder (and if not please let me know
how to do it
Please help!!!!
| |
| Marvin Smit 2005-06-23, 5:55 pm |
| Hi,
When you define a schema, you always define that for a single target
namespace.
If you need to use multiple namespaces, you should make the seperate
schemas (starting with the lowest common denominator) and "import" the
schema's you will be reusing in the higher level schema.
For changing the prefix:
- Open the Schema Editor.
- Select the "Schema" node.
- property-page->Imports (click).
There you can change the prefixes assigned to the different namespaces
used.
Hope this helps,
Marvin Smit.
On 23 Jun 2005 07:46:45 -0700, "okaminer" <okaminer1@yahoo.com> wrote:
>hi
>
>I'm trying to set XML namespaces in message which is going out of
>Biztalk and I an haing a bit of a problem
>
>first: In the schema The "Target Namespace" property (in the schema
>properties) let you add only one name space. I need to add several
>namespaces
>
>
>Second: the xmlns always come with "ns0" like this:
>xmlns:ns0="http://schemas.microsoft......
>
>And I want it to be like this:
>xmlns:my="http://schemas.microsoft......
>You can see that is the line above I have replaced the word "ns0" with
>"my"
>aperantlly in biztalk it is much harder (and if not please let me know
>how to do it
>
>Please help!!!!
| |
| okaminer 2005-06-26, 2:47 am |
| Thanks for replying
Still I have some questions
The schema I am talking about is an infoPath schema (which I have
included in my project).
When I open it, I can find in the "include" property several prefixes
alreay included such as the "my" prefix (which has the same namespace
as the target namespace)
Also if I look at the schema it self the nodes have the prefix "my".
for example of an element:
<xsd:element minOccurs="0" ref="my:SCARDetails">
But still when I generate an instance of this schema all the "my"
prefixes are replaced by the "ns0" prefix
Question: after I import a schema using the import property how do I
use it (let say in Map)?
thansk for the help
|
|
|
|
|