Skip to content

Commit 423c710

Browse files
JSON doc updates
1 parent 5adf40b commit 423c710

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/site/xdoc/docs/json_support_gson.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494

9595
<section name="Native Approach" id="native_approach" >
9696

97+
<p>The Native approach is for JSON use cases without a WSDL nor any XML dependency, and you just want some simple Java Objects that map to and from GSON or Moshi.</p>
98+
9799
<p>With this approach you can expose your POJO service to accept pure JSON request other than converting to
98100
any representation or format. You just need to send a valid JSON string request to the service url and,
99101
in the url you should have addressed the operation as well as the service. Because in this scenario Axis2
@@ -139,6 +141,7 @@
139141
<section name="XML Stream API Base Approach" id="xml_stream_api_base_approach" >
140142

141143

144+
<p>XML Stream API Base Approach is for use cases with a WSDL, and in addition to SOAP you also want to support JSON. This support is currently limited to XML Elements and not XML Attributes - though if you are interested in that support please see AXIS2-6081. </p>
142145
<p> As you can see the native approach can only be used with POJO services but if you need to expose your
143146
services which is generated by using ADB or xmlbeans databinding then you need to use this XML Stream
144147
API based approach. With this approach you can send pure JSON requests to the relevant services.

0 commit comments

Comments
 (0)