[Users] bc-soap 4.1 consume - mode JSON

yla [via Petals Forums] ml-node+s974793n3988255h79 at n3.nabble.com
Tue May 15 17:06:09 CEST 2012



Hi,

I would like to expose an internal JBI service endpoint through a JSON
format.

In the document, I see you need to change the mode to JSON in jbi.xml

I tried to do it 

<?xml version="1.0" encoding="UTF-8"?>
<jbi:jbi xmlns:cdk5="http://petals.ow2.org/components/extensions/version-5"
xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:soap="http://petals.ow2.org/components/soap/version-4"
xmlns:sql="http://petals.ow2.org/components/sql/version-1" version="1.0">
  <jbi:services binding-component="true">
    <jbi:consumes endpoint-name="GetDataServicesEndPoint"
interface-name="sql:SqlInterface" service-name="sql:GetDataServices">
      <cdk5:timeout>30000</cdk5:timeout>
      <cdk5:operation>sql:select</cdk5:operation>
      <cdk5:mep>InOut</cdk5:mep>
      <soap:service-name>GetDataServices</soap:service-name>
      <soap:mode>JSON</soap:mode>
      
    </jbi:consumes>
  </jbi:services>
</jbi:jbi>

with or without commenting the lines 
 <soap:enable-http-transport>true</soap:enable-http-transport>
 <soap:enable-jms-transport>false</soap:enable-jms-transport>

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 ?

Regards
Yves

_______________________________________________
If you reply to this email, your message will be added to the discussion below:
http://forum.petalslink.com/bc-soap-4-1-consume-mode-JSON-tp3988255.html
To start a new topic under Users (get help, provide help), email ml-node+s974793n2681628h42 at n3.nabble.com
To unsubscribe from Users (get help, provide help), visit http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2681628&code=dXNlcnNAZm9ydW0ucGV0YWxzbGluay5vcmd8MjY4MTYyOHwtOTE3MDU0NjU4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20120515/f19127b2/attachment.htm>


More information about the Users mailing list