with or without commenting the lines
But when i set the mode to JSON,
I have this error
Description Resource Path Location Type
Invalid jbi.xml: the file could not be loaded and is probably a mal-formed XML document. jbi.xml /su-JSON-GetDataServices-consume/src/main/jbi line 1 Petals markers
and I cannot create the service assembly.
Has someone tried this configuration and can help me ?
You are right. This is a feature upgrade from the last version.
I had not heard about it. And this is probably why the studio does not know the JSON value.
You should ignore the warnings put by the studio. Package it as usual and deploy it in Petals.
Since the "mode" is an enumeration, and that JSON is not known by the studio, it indicates it is not valid. I will post a bug entry about this.
IMO, a JSON support was existing in version 4.0.x (running on Petals 3.x) of the BC SOAP. It seems to me that it was removed from the version 4.1+, but the documentation was not updated. You are right, a dedicated binding-component would be needed.
Yes, you could fork a previous version.
But IMO, it would be more simple to develop your own binding component.
Besides, the SOAP connector is quite big.
You may prefer start from a lighter connector and replace its logic by your own mapping between JSON and XML. Here is a suggestion of a not-so-old connector.
Instead of listening to HL7 (which are HTTP) connections, start a Jetty server and convert the received requests in Petals messages. That will be more simple than starting from the SOAP connector which has a Jetty but also Axis2...