Subject: No namespace in incomming XML document

Home Page Forums BizTalk 2004 – BizTalk 2010 Subject: No namespace in incomming XML document

Viewing 1 reply thread
  • Author
    Posts
    • #16617

      We want to receive cXML Documents with BizTalk. Unfortunately the documents
      generated by the Ariba test client do not have a namespace and looks like
      this:

      <?xml version="1.0" encoding="utf-8"?>
      <!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.1.008/cXML.dtd"%5B%5D&gt;
      <cXML version="1.0" timestamp="2006-11-28T17:59" payloadID="2006-11-28T17:[email protected]">
       <Header> …

      I have now the problem that I encounter a receive error because BizTalk can
      not find a subscriber. The message in the eventlog is the following.

      A message received by adapter "FILE" on receive location
      "ReceiveFolderForCXMLOrders" with URI "\\Srvdevweb01\PunchOutOrders\*.xml" is
      suspended.
       Error details: The published message could not be routed because no
      subscribers were found…

      I use a XMLReceive pipeline.

      Some advise how I can receave such cXML Orders that do not have a namespace
      declaration?

      Thanks Tom

    • #16620

      Hm, interesting. I will test this case this evening and will post the result tomorrow. If found a solution.

      Does the namespace has to do something with the subscribers? Hm 

      • #16621

        The error message indicates that the message has arrived at the message box, where there are no send ports or orchestrations subscribing to this message.

        The pipeline has been completed, so the Xml Disassembler would have found a matching schema and assigned a message type to the message. This is where the namespace is used. It is quite valid to have a schema without a target namespace. And the fact that you are past the Xml Disassembler means it is not the lack of a namespace that is causing the problem

        Are you able to view the subscriptions and also the message context of the failing message.
        Are you routing on something other than message type and receive port. i.e. do you promote data from the cXml Header and use filters on an orchestration receive shape or send port? 

        Is your orchestration/send port enlisted and started.

        An easy test is to create a send port using the file adapter and set a filter of BTS.ReceivePortName = "your receive port name". Do you get a file created in the ouput directory

         

         

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