Published Web Service requires xmlns=\"\"

Home Page Forums BizTalk 2004 – BizTalk 2010 Published Web Service requires xmlns=\"\"

Viewing 1 reply thread
  • Author
    Posts
    • #12420

      Hi,

      I created an XML schema in BizTalk for XML messages which look like

      <report xmlns=\”http://www.temp.com/schemas\”>
      <header>
      <messageType>…</messageType>

      </header>
      <anotherElement>…</anotherElement>

      </report>

      and published the schema as a BizTalk Web Service. The Web Service generated however expects XML messages of the form:

      <report xmlns=\”http://www.temp.com/schemas\”>
      <header xmlns=\”\”>
      <messageType>…</messageType>

      </header>
      <someElement xmlns=\”\”>…</someElement>

      </report>

      It’s okay to send a message to the Web Service without the second xmlns=\”\” (maybe it’s because ‘anotherElement’ is not a complexType) but if I omit the first xmlns=\”\” for ‘header’, there will be an error.

      Has anyone run into this problem before? Or, if this is what BizTalk would do, is there anyway to configure the pulished web service so that it won’t ask for the xmlns=\”\”?

      Thanks,
      Joey

    • #12421

      Hi Stephen,

      I figured out what caused the problem. When a schema is created in BizTalk from scratch, BizTalk sets the values of the attributes ‘attribubuteFormDefault’ and ‘elementFormDefault’ to ‘unqualified’ by default. After setting ‘elementFormDefault’ to ‘qualified’, the xmlns=\”\” disappeared.

      Joey

      • #12422

        I have not seen this before.
        There must be something specific to your schema.

        Are you importing complex types from other files? Does the header and report have different namespace or one that differs from what’s defined as the default namespace?

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