Schemas And Namespaces And Prefixes

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Schemas And Namespaces And Prefixes

Viewing 1 reply thread
  • Author
    Posts
    • #18371

      Oh my!

       I’m just starting out with BT2006.  I have a file from a client that has multiple records in it and a namespace that it doesn’t like.

       Specifically:

      I’m receiveing this:   <Participants xmlns=”http://tempuri.org/COINS_EXPORT_DEF.xsd”&gt;

                                      <Participant>

      I’m wanting this:       <ns0:Participants xmlns:ns0=”http://COINS_SCHEMAS.COINS_ENV”&gt;
                                        <ns1:Participant xmlns:ns1=”http://COINS_SCHEMAS.COINS_DOC”&gt;

      I even have a map that will do it based on an xsl translation.  The map functions fine.  The pipeline just won’t recognize the file as it is.  If I manually test the map on a file and feed the new file to my orchestration it works.  If I try to generate the new file on the fly through BT I get “Error details: The published message could not be routed because no subscribers were found.”

      If anyone can point me in the right direction or offer some advice I would really appreciate it.

    • #18373

       As far as i know if you set the TargetNamespace on the inbound schema to none, then it will accept this without any problems. 

      • #18378

        Thanks for the quick response.  I did try removing the target namespace but BT didn’t like it.

         The problem turned out to be that client wasn’t using a prefix on their namespace.  So when I received:

        <Participants xmls=”http://tempuri.org/blahblah.xsd”>&nbsp;

         Biztalk wouldn’t recognize it as XML

        When I manually changed the file to this:

        <ns0:Participants xmls:ns0=”http://tempuri.org/blahblah.xsd”&gt;

        Biztalk picked it up and ran with it.  So, considering the prefix is part of the standard as defined by W3C, I’ve asked the client to add a prefix. 

        In any case, it seems I’ve found the solution to the problem.

         

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.