BizTalk Server General - Error Generating Schema

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > December 2005 > Error Generating Schema





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 Error Generating Schema
MNA

2005-12-21, 5:54 pm

Hi,
I am trying to generated schema to an xml (see at the end of the
message) but getting this error:

"Error parsing WFX:Invalid 'ref' attribute: Namespace 'xml:' is not
available to be referenced in this schema."
Any help will be highly appreciated

<?xml version="1.0" ?>
<g:propertyupdate xmlns:g="DAV:"
xmlns:c="urn:schemas:contacts:"
xmlns:e="http://schemas.microsoft.com/exchange/"
xmlns:x="xml:" xmlns:cal="urn:schemas:calendar:">
<g:set>
<g:prop>

<e:keywords-utf8>
<x:v>Buddies</x:v>
<x:v>Engineers</x:v>
</e:keywords-utf8>
</g:prop>
</g:set>
</g:propertyupdate>

Samuel L

2005-12-22, 2:57 am

Hi!

The error is since BizTalk doesn't find the namespace "xml:" to be a valid
namespace. Are sure it shouldn't be anything else?

It works for me, if I for example change the namespace x to
"http://schemas.microsoft.com/exchange/" or any other valid namespace.

So please make sure what the namespace x should be and let me know if there
is something you don't get. Good luck!


"MNA" wrote:

> Hi,
> I am trying to generated schema to an xml (see at the end of the
> message) but getting this error:
>
> "Error parsing WFX:Invalid 'ref' attribute: Namespace 'xml:' is not
> available to be referenced in this schema."
> Any help will be highly appreciated
>
> <?xml version="1.0" ?>
> <g:propertyupdate xmlns:g="DAV:"
> xmlns:c="urn:schemas:contacts:"
> xmlns:e="http://schemas.microsoft.com/exchange/"
> xmlns:x="xml:" xmlns:cal="urn:schemas:calendar:">
> <g:set>
> <g:prop>
>
> <e:keywords-utf8>
> <x:v>Buddies</x:v>
> <x:v>Engineers</x:v>
> </e:keywords-utf8>
> </g:prop>
> </g:set>
> </g:propertyupdate>
>
>

MNA

2005-12-22, 7:48 am

Thanks Samuel
Can you please explain what do you mean by "valid namespace"? I tried
using "http://schemas.microsoft.com/Somethingelse/" and it gave me the
same error. Another thing is, I cannot change it to anything else
because the consumer of the message is expecting "xml:" namespace. But
I'm still curious what do you mean by "valid namepsace".

Is there any work around available? for example this message has more
then 100 other elements and everything else is working fine. I have
created the schema without this information and mapped to another
schema. Can I use "AnyType" in this message and somehow use script (or
anyother) functiod to populate this information? I don't want to use
XSLT because, as I said everything else is working fine (and my company
wouldn't allow it) and I need only this info to be corrected.

This is what I was thinking



<targetschema xmlns:c="urn:schemas:contacts:"
xmlns:e="http://schemas.microsoft.com/exchange/"
xmlns:x="xml:" xmlns:cal="urn:schemas:calendar:">
<MoreThan100Elements>
</MoreThan100Elements>
<AnyType>
</AnyType>
</targetschema>

<sourceschema>
<MoreThan100Elements>ValuesFor100Elements </MoreThan100Elements>
<InfoWillGoInAnyType value"One,Two,Three"/>
</sourceschema>




And when we run the map it should produce
<targetschema xmlns:c="urn:schemas:contacts:"
xmlns:e="http://schemas.microsoft.com/exchange/"
xmlns:x="xml:" xmlns:cal="urn:schemas:calendar:">
<MoreThan100Elements>ValuesFor100Elements</MoreThan100Elements>
<e:keywords-utf8>
<x:v>One</x:v>
<x:v>Two</x:v>
<x:v>Three</x:v>

</e:keywords-utf8>

</targetschema>


I appreciate your time and thanks for reading such a long message.

Regards

Samuel L

2005-12-22, 5:55 pm

Hrm... Maybe it could work.

But I think that the error is that you're trying to use a namespace "xml:".
This doesn't make sense to me. Are you sure that you will have to use this?
In some way BizTalk doesn't accept this namespace, since it worked after that
I changed this namespace declaration:
xmlns:x="xml:"
to this:
xmlns:x="http://schemas.microsoft.com/exchange/"

If we use a namespace which is not known by BizTalk, then it won't
apparently generate a schema. It did not work if the namespace was something
else not existing, like http://apabepa. Then the same error appeared.

One way to work around this would be to change the namespace x to something
else at design time and then change it back during runtime, by hardcoding in
an expression shape or something like that.

Hope this helps!


"MNA" wrote:

> Thanks Samuel
> Can you please explain what do you mean by "valid namespace"? I tried
> using "http://schemas.microsoft.com/Somethingelse/" and it gave me the
> same error. Another thing is, I cannot change it to anything else
> because the consumer of the message is expecting "xml:" namespace. But
> I'm still curious what do you mean by "valid namepsace".
>
> Is there any work around available? for example this message has more
> then 100 other elements and everything else is working fine. I have
> created the schema without this information and mapped to another
> schema. Can I use "AnyType" in this message and somehow use script (or
> anyother) functiod to populate this information? I don't want to use
> XSLT because, as I said everything else is working fine (and my company
> wouldn't allow it) and I need only this info to be corrected.
>
> This is what I was thinking
>
>
>
> <targetschema xmlns:c="urn:schemas:contacts:"
> xmlns:e="http://schemas.microsoft.com/exchange/"
> xmlns:x="xml:" xmlns:cal="urn:schemas:calendar:">
> <MoreThan100Elements>
> </MoreThan100Elements>
> <AnyType>
> </AnyType>
> </targetschema>
>
> <sourceschema>
> <MoreThan100Elements>ValuesFor100Elements </MoreThan100Elements>
> <InfoWillGoInAnyType value"One,Two,Three"/>
> </sourceschema>
>
>
>
>
> And when we run the map it should produce
> <targetschema xmlns:c="urn:schemas:contacts:"
> xmlns:e="http://schemas.microsoft.com/exchange/"
> xmlns:x="xml:" xmlns:cal="urn:schemas:calendar:">
> <MoreThan100Elements>ValuesFor100Elements</MoreThan100Elements>
> <e:keywords-utf8>
> <x:v>One</x:v>
> <x:v>Two</x:v>
> <x:v>Three</x:v>
>
> </e:keywords-utf8>
>
> </targetschema>
>
>
> I appreciate your time and thanks for reading such a long message.
>
> Regards
>
>

MNA

2005-12-22, 5:55 pm

This namespace ("xml:") is being used by WebDAV in MS exchange server
and it is required and needs to be there.

>If we use a namespace which is not known by BizTalk, then it won't
>apparently generate a schema. It did not work if the namespace was something
>else not existing, like http://apabepa. Then the same error appeared.


Can you please tell how can u make a namespace known to BizTalk?

Thanks in advance

Samuel L

2005-12-22, 5:55 pm

Ok... Sorry, but I don't know how to do that when the schema is "external".
So maybe you will have make some work-around here, like the idea you came up
with earlier.

Have you got any other ideas?


"MNA" wrote:

> This namespace ("xml:") is being used by WebDAV in MS exchange server
> and it is required and needs to be there.
>
>
> Can you please tell how can u make a namespace known to BizTalk?
>
> Thanks in advance
>
>

MNA

2005-12-22, 5:55 pm

Nope I don't have any other idea and I don't know how to populate
<xs:any> in a map

Leonid Ganeline

2005-12-23, 2:49 am

It's mean exactly what it said:
You can't use such namespace as ="xml:"
> xmlns:x="xml:" xmlns:cal="urn:schemas:calendar:">

error in this line.

Seems it's a predefined name.

--

Regards,

Leonid Ganeline
BizTalk Developer, MCSD
http://geekswithblogs.net/leonidganeline/
"MNA" <mnadeemakhter@gmail.com> wrote in message
news:1135197873.889151.97300@f14g2000cwb.googlegroups.com...
> Hi,
> I am trying to generated schema to an xml (see at the end of the
> message) but getting this error:
>
> "Error parsing WFX:Invalid 'ref' attribute: Namespace 'xml:' is not
> available to be referenced in this schema."
> Any help will be highly appreciated
>
> <?xml version="1.0" ?>
> <g:propertyupdate xmlns:g="DAV:"
> xmlns:c="urn:schemas:contacts:"
> xmlns:e="http://schemas.microsoft.com/exchange/"
> xmlns:x="xml:" xmlns:cal="urn:schemas:calendar:">
> <g:set>
> <g:prop>
>
> <e:keywords-utf8>
> <x:v>Buddies</x:v>
> <x:v>Engineers</x:v>
> </e:keywords-utf8>
> </g:prop>
> </g:set>
> </g:propertyupdate>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com