Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2012-10-30T09:43:37Z by kimbert@uk.ibm.com
Rahul05
Rahul05
6 Posts
ACCEPTED ANSWER

Pinned topic XMl VALIDATION

‏2012-10-30T05:01:05Z |
Hi

i have to validate xml message.But i do not have XSD. So in message model i created xsd with the xml .With this xsd i created message set and try to validate xml.how can i resolve this problem . my flow start with http input node . failure and catch terminals of the http input node connected to error handler subflow.but i am not receving the message to subflow.while validating with incorrect xml i am getting following exception.i am using message broker v8.0

?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>BIP3113E: Exception detected in message flow testflow (broker MB8BROKER) </faultstring>
BIP5009E: XML Parsing Errors have occurred

BIP5025E: XML schema validation error &apos;&apos;cvc-complex-type.2.4.a: Expecting element with local name "plancode" but saw "pla".&apos;&apos; on line &apos;1&apos; column &apos;55&apos; when parsing element &apos;&apos;/Root/XMLNSC/publishproducts/products/product/productinfo&apos;&apos;. : F:\build\slot1\S800_P\src\MTI\MTIforBroker\GenXmlParser4\ImbXMLNSCDocHandler.cpp: 702: ImbXMLNSCDocHandler::handleParseErrors: ComIbmWSInputNode: publishproduct#FCMComposite_1_1</text></detail>
</SOAP-ENV:Fault>
Updated on 2012-10-30T09:43:37Z at 2012-10-30T09:43:37Z by kimbert@uk.ibm.com
  • kimbert@uk.ibm.com
    kimbert@uk.ibm.com
    515 Posts
    ACCEPTED ANSWER

    Re: XMl VALIDATION

    ‏2012-10-30T09:43:37Z  in response to Rahul05
    This is a question about error handling in HTTP flows, right? You want to know why your error handling subflow is not being called when there is an error in the flow.

    Have you taken a debug-level user trace to find out what the flow is doing - it may give a clue about why it is doing this.