Hi,
We want to invoke a REST webservice with Stambia.
We've seen that it is documented on this URL :
www.stambia.org/doc/65-technologies/web-...-an-http-get-service
The tutorial explains how to do it with the GET method, but we need to use the POST method.
As mentionned in the "REVERSING THE RESPONSE IN AN OUTPUT PARAMETER" part, we must reverse a XML file made from a response, and copy/paste its first Sequence to the Output node of the wsdl metadata.
We guess that, for the POST method, we can do the same procedure for the Input definition.
We have the following structure :
You can notice that we have renamed the Input part and the Output part with the root XML node.
Then, we tried to execute the mapping.
Here is the error we are facing, on the step "Call WebServices":
org.xml.sax.SAXException: Error on path: /almerys/Almerys_findsaleslist/findsaleslist_port/findsaleslist/output/genericresponse
java.lang.NullPointerException
at com.indy.engine.actionCodes.XmlToWsdlActionCodeI$SimpleContentHandler.endElement(SourceFile:649)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at com.indy.engine.actionCodes.XmlToWsdlActionCodeI.executeSimpleCode(SourceFile:155)
at com.indy.engine.action.common.ActionCodeTypeI.executeCode(SourceFile:1646)
at com.indy.engine.action.common.ActionCodeTypeI.run(SourceFile:1805)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at com.indy.engine.actionCodes.a.g.d(SourceFile:214)
at com.indy.engine.actionCodes.a.g.e(SourceFile:466)
at com.indy.engine.actionCodes.a.g.c(SourceFile:481)
at com.indy.engine.actionCodes.XmlToWsdlActionCodeI$SimpleContentHandler.a(SourceFile:762)
at com.indy.engine.actionCodes.XmlToWsdlActionCodeI$SimpleContentHandler.endElement(SourceFile:628)
... 12 more
We don't know how to solve it.
Any help?