Error message:
An error occurred invoking the processing service geminor.freight.pub:handleFreightBookings for this document. The original error was com.wm.lang.flow.FlowException: com.wm.app.b2b.server.ServiceException: [ISC.0042.9329] No namespace declaration defined for attribute xsi:nil in element :VoyageNumber
I don’t know how to upload a screenshot, but xmlNodeToDocument has these Service In values:
node → node
makeArrays = false
nsDecls = “i= http://www.w3.org/2001/XMLSchema-instance”
documentTypeName = xxxx
This should declare the namespace for the xsi-prefix.
If this does not help, check if can suppress the generation fo xsi:nil=“true” when preparing the xml or if you can add the declaration of the namespace (xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”) to the root node of the xml during preparation.
This declaration should be located inside the opening root node tag (in your sample above this would be the Header-tag):
<root tag xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
data goes here
</root tag>
thanks for your reply. However, I am more interested in finding out, if it is a more generic/global setting that needs to be done since it worked in 9.8 and the 9.8 and 10.3 services are identical.
I am facing the same problem for my WS provider tests. the namespace http://www.w3.org/2001/XMLSchema-instance has been Added to WSDL but the error below persists for unknown reasons
com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix “xsi” (for attribute “nil”)
Does anyone have any idea how to handle this issue?
I’ve been searching for the solution for the whole day without any result. would you like please to help me, guys?
My question now how do I can add a namespace prefix xsi and its attribute in a docType, knowing that the namespace http://www.w3.org/2001/XMLSchema-instance has been already declared in WSDL and its related XSD ?