pub.xml.getXMLNodeIterator is not working

Hi there,

I am currently trying to loop through an XML node by using pub.xml.getXMLNodeIterator. However, I encounter this error

Error: [ISC.0042.9328] Error: namespace prefix hvas1 not defined for element mySayHello2

This is how my SOAP request looks like like:-

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/
xmlns:hvas=“hvas_ext2.mySayHello2.doc”
xmlns:hvas1=“http://hkgabdlapp90.aia.biz/hvas_ext2.mySayHello2.flow”>
soapenv:Header
hvas:CodeFirstRequestHeader
?
?
?
</hvas:CodeFirstRequestHeader>
</soapenv:Header>
soapenv:Body
hvas1:mySayHello2
?
?
</hvas1:mySayHello2>
</soapenv:Body>
</soapenv:Envelope>

I have already done declaring the prefix in pub.xml.getXMLNodeIterator.nsDecls as hvas1=“http://hkgabdlapp90.aia.biz/hvas_ext2.mySayHello2.flow”> but to no avail. Does anyone know what is wrong with my setting by any chance?

Regards,
Ronnie She Chien Wei

Hi guys, any clue? I still can not get it working.

Hi,

Have you imported that schema into the IS?

Best regards,

Thanks Gerardo, may I know how to import schema into the IS? I am totally out of idea…

Hi Ronnie,

use Designer for that.

In Designer select “New” → “Schema” in the context menu of your package/folder, where you want the node to be created, and follow the Creation Wizard.

See Service Development Guide for Details.

Regards,
Holger