OAG XSD Import - BizTalk2004
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Applications Integration > OAG XSD Import - BizTalk2004




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    OAG XSD Import - BizTalk2004  
Nick


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-03-04 01:46 AM

Hello,

I am trying to import an OAG XSD schema into BTS2004 project and I am
getting all sorts of error.

There are several INCLUDES in the primary XSD.  Do I need to add all
of those in my reference list?  If I do that then how do I change the
primary XSD to refer to these references?

Thanks in advance.
- Nick.





[ Post a follow-up to this message ]



    Re: OAG XSD Import - BizTalk2004  
Greg Forsythe


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-03-04 12:47 PM

You must add the primary XSD and all imported <xs:import> and included
<xs:include> schemas that the primary XSD uses into your project.
This can create a rather large and unwieldy project.

Another way of approaching this is to create a separate schema-only project
that just contains the OAG schemas. Build this project and add the resulting
.dll as a reference into your other project/s
When you need to reference  a schema in your other project/s you can use the
<from referenced assembly> option.
You will need to deploy the OAG Assembly into Biztalk before deploying your
other project/s.
I have successfully done this with the OASIS UBL 1.0 schemas: ref
http://www.gotdotnet.com/Community/...23-fe72f317891a

If you use this method you will be able to reference any OAG schema from any
project.

Greg

"Nick" <nickchhabra@yahoo.com> wrote in message
news:f22e7f03.0411021743.90bb060@posting.google.com...
> Hello,
>
> I am trying to import an OAG XSD schema into BTS2004 project and I am
> getting all sorts of error.
>
> There are several INCLUDES in the primary XSD.  Do I need to add all
> of those in my reference list?  If I do that then how do I change the
> primary XSD to refer to these references?
>
> Thanks in advance.
> - Nick.







[ Post a follow-up to this message ]



    Re: OAG XSD Import - BizTalk2004  
Nick


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-05-04 01:46 AM

Hello Greg,

I tried the first option and added all the imported and included
schemas that the primary XSD uses into my project.

When I try opening the primary schema I get a prompt "Invalid schema"
with details:

1) Cannot resolve schemaLocation attribute. An error occurred at
file:///C:/../Primary.xsd (15, 10) [this the line 3 where the include
is]
2) Undefined complexType
'http://www.openapplications.org/oagis:BusinessObjectDocument' is used
as a base for complex type extension". An error occurred at
file:///C:/../Primary.xsd, (26, 26)

And, when I try to validate the schema I get additional errors like

1) file:///C:/../Primary.xsd : error BEC2009: Node "<Schema>" - Schema
reference "../Resources/Verbs/Show.xsd" is not a valid reference or
does not exist in the current project.

What am I doing wrong?  Any suggestion to get past this?

Appreciate your help.
- Nick.

"Greg Forsythe" <greg.forsythe@unisys.com> wrote in message news:<#FZvvqZwEHA.2728@TK2MSFTNG
P12.phx.gbl>...[vbcol=seagreen]
> You must add the primary XSD and all imported <xs:import> and included
> <xs:include> schemas that the primary XSD uses into your project.
> This can create a rather large and unwieldy project.
>
> Another way of approaching this is to create a separate schema-only projec
t
> that just contains the OAG schemas. Build this project and add the resulti
ng
> .dll as a reference into your other project/s
> When you need to reference  a schema in your other project/s you can use t
he
> <from referenced assembly> option.
> You will need to deploy the OAG Assembly into Biztalk before deploying you
r
> other project/s.
> I have successfully done this with the OASIS UBL 1.0 schemas: ref
> http://www.gotdotnet.com/Community/...23-fe72f317891a
>
> If you use this method you will be able to reference any OAG schema from a
ny
> project.
>
> Greg
>
> "Nick" <nickchhabra@yahoo.com> wrote in message
> news:f22e7f03.0411021743.90bb060@posting.google.com... 





[ Post a follow-up to this message ]



    Re: OAG XSD Import - BizTalk2004  
Greg Forsythe


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-07-04 07:46 AM

Nick,
I downloaded OAG version 8.0 sp3 and tried to create a Biztalk project from
it.
I get a similar error.
The Biztalk schema editor is complaining about an invalid schema  i.e. an
element and a complex type having the same name.
However, this is a valid Xml Schema ref:
http://www.w3.org/TR/xmlschema-1/#c...ameSymbolSpaces
which states:
"For example, the same name can appear in both a type definition and an
element declaration, without conflict or necessary relation between the
two."

Looks like a bug, you should raise this with Microsoft.

Greg





"Nick" <nickchhabra@yahoo.com> wrote in message
news:f22e7f03.0411041712.645bca6@posting.google.com...
> Hello Greg,
>
> I tried the first option and added all the imported and included
> schemas that the primary XSD uses into my project.
>
> When I try opening the primary schema I get a prompt "Invalid schema"
> with details:
>
> 1) Cannot resolve schemaLocation attribute. An error occurred at
> file:///C:/../Primary.xsd (15, 10) [this the line 3 where the include
> is]
> 2) Undefined complexType
> 'http://www.openapplications.org/oagis:BusinessObjectDocument' is used
> as a base for complex type extension". An error occurred at
> file:///C:/../Primary.xsd, (26, 26)
>
> And, when I try to validate the schema I get additional errors like
>
> 1) file:///C:/../Primary.xsd : error BEC2009: Node "<Schema>" - Schema
> reference "../Resources/Verbs/Show.xsd" is not a valid reference or
> does not exist in the current project.
>
> What am I doing wrong?  Any suggestion to get past this?
>
> Appreciate your help.
> - Nick.
>
> "Greg Forsythe" <greg.forsythe@unisys.com> wrote in message
news:<#FZvvqZwEHA.2728@TK2MSFTNGP12.phx.gbl>...[vbcol=seagreen] 
project[vbcol=seagreen] 
resulting[vbcol=seagreen] 
the[vbcol=seagreen] 
your[vbcol=seagreen] 
http://www.gotdotnet.com/Community/...r />
2f317891a[vbcol=seagreen] 
any[vbcol=seagreen] 







[ Post a follow-up to this message ]



    Re: OAG XSD Import - BizTalk2004  
Nick


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-07-04 10:48 PM

I finally figured this out.  It seems simple now but I must admit it
was a challenge to get this going   The key is to:

1) Add the references into you project via Add Reference option and
the system automatically bring the schemas into your project.
2) Copy only the relevant schemas.  No need to bring in all the
reference schemas.
3) Include path needs to be edited for couple of primary schema
../Resources/Verbs/Show.xsd  depending on the location of the
includes.

Thanks.
- Nick.

nickchhabra@yahoo.com (Nick) wrote in message news:<f22e7f03.0411041712.645bca6@posting.goog
le.com>...[vbcol=seagreen]
> Hello Greg,
>
> I tried the first option and added all the imported and included
> schemas that the primary XSD uses into my project.
>
> When I try opening the primary schema I get a prompt "Invalid schema"
> with details:
>
> 1) Cannot resolve schemaLocation attribute. An error occurred at
> file:///C:/../Primary.xsd (15, 10) [this the line 3 where the include
> is]
> 2) Undefined complexType
> 'http://www.openapplications.org/oagis:BusinessObjectDocument' is used
> as a base for complex type extension". An error occurred at
> file:///C:/../Primary.xsd, (26, 26)
>
> And, when I try to validate the schema I get additional errors like
>
> 1) file:///C:/../Primary.xsd : error BEC2009: Node "<Schema>" - Schema
> reference "../Resources/Verbs/Show.xsd" is not a valid reference or
> does not exist in the current project.
>
> What am I doing wrong?  Any suggestion to get past this?
>
> Appreciate your help.
> - Nick.
>
> "Greg Forsythe" <greg.forsythe@unisys.com> wrote in message news:<#FZvvqZw
EHA.2728@TK2MSFTNGP12.phx.gbl>... 





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:22 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register