If you use EM Test Page to test your Composites, pay attention when your XSD define that attributes must be qualified (when it uses attributeFormDefault="qualified" in the schema tag definition). When you fill the input form in EM Test Page, the generated message will not include the attribute qualifiers and attribute values will not be found by the XPath expressions in your components, as I'll show in the example below.
Suppose your XSD as the following:
When you go to the EM Test Page, the following form will be generated based on the XSD:
Go to the "XML View". See that the generated XML doesn't contain the qualifier for the two attributes.
Run the process and check the execution audit trail. See that the attributes values was not found.
Go back to the "XML View" and add the qualifiers manually.
Run the process again and check the execution audit trail. See that the attributes values was found now.
This behavior may take a lot of time until you can identify what is happening.
My suggestion: always use SoapUI to test your SOA Suite Composite Projects. With SoapUI is easy to define your test cases, you can save them to run multiple times and the input messages are generated much more closely to the XSD definition.
To download this sample project and do your tests, click here.
No comments:
Post a Comment