You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Shameera Rathnayaka (JIRA)" <ji...@apache.org> on 2012/09/07 05:53:07 UTC

[jira] [Created] (AXIS2-5416) Add Native approach and XML Stream API base approach Documentations

Shameera Rathnayaka created AXIS2-5416:
------------------------------------------

             Summary: Add Native approach and XML Stream API base approach Documentations
                 Key: AXIS2-5416
                 URL: https://issues.apache.org/jira/browse/AXIS2-5416
             Project: Axis2
          Issue Type: Improvement
          Components: json
    Affects Versions: 1.7.0
            Reporter: Shameera Rathnayaka
            Assignee: Shameera Rathnayaka
             Fix For: 1.7.0


Now Axis2 can process pure JSON requests with both Native and XML Stream API base approaches. So it is necessary to expose this new improvements to Axis2 users by documentations. One page to explain the overall process with details to understand what is happening with each approach. And another page to explain how to configure and add these new approaches to their own services.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5416) Add Native approach and XML Stream API base approach Documentations

Posted by "Shameera Rathnayaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451510#comment-13451510 ] 

Shameera Rathnayaka commented on AXIS2-5416:
--------------------------------------------

Hi , 

You can find a sample which demonstrate the XML Stream API base approach, here AXIS2-5417. 

Thanks,
Shameera.
                
> Add Native approach and XML Stream API base approach Documentations
> -------------------------------------------------------------------
>
>                 Key: AXIS2-5416
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5416
>             Project: Axis2
>          Issue Type: Improvement
>          Components: json
>    Affects Versions: 1.7.0
>            Reporter: Shameera Rathnayaka
>            Assignee: Shameera Rathnayaka
>              Labels: Documentation, json
>             Fix For: 1.7.0
>
>         Attachments: JSONDucumentation.patch
>
>
> Now Axis2 can process pure JSON requests with both Native and XML Stream API base approaches. So it is necessary to expose this new improvements to Axis2 users by documentations. One page to explain the overall process with details to understand what is happening with each approach. And another page to explain how to configure and add these new approaches to their own services.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5416) Add Native approach and XML Stream API base approach Documentations

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453307#comment-13453307 ] 

Andreas Veithen commented on AXIS2-5416:
----------------------------------------

Instead of (or in addition to) testing these classes in isolation, you should implement these tests as end-to-end tests, i.e. instantiate an Axis2 runtime, deploy a test service and then invoke the service over HTTP. For ADB, you should create a WSDL and add the necessary build steps to pom.xml to generate the source code for that service. I recently implemented such tests in axis2-json (for the existing JSON support; look for "POJOService") and axis2-jaxbri. axis2-jaxbri is interesting because there is also code generation involved and the test code is a bit cleaner than in axis2-json.

Using this strategy is the only way you can guarantee that the features you have implemented will work for users and will not be broken by later changes (in the JSON support or elsewhere). This is also important to allow other developers (and yourself) to easily analyze and debug the code in situ (i.e. without having to first setup an Axis2 instance manually).
                
> Add Native approach and XML Stream API base approach Documentations
> -------------------------------------------------------------------
>
>                 Key: AXIS2-5416
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5416
>             Project: Axis2
>          Issue Type: Improvement
>          Components: json
>    Affects Versions: 1.7.0
>            Reporter: Shameera Rathnayaka
>            Assignee: Shameera Rathnayaka
>              Labels: Documentation, json
>             Fix For: 1.7.0
>
>         Attachments: JSONDucumentation.patch
>
>
> Now Axis2 can process pure JSON requests with both Native and XML Stream API base approaches. So it is necessary to expose this new improvements to Axis2 users by documentations. One page to explain the overall process with details to understand what is happening with each approach. And another page to explain how to configure and add these new approaches to their own services.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5416) Add Native approach and XML Stream API base approach Documentations

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451358#comment-13451358 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-5416:
-----------------------------------------------------

commit the patch. please add a sample to xml stream based approach.
                
> Add Native approach and XML Stream API base approach Documentations
> -------------------------------------------------------------------
>
>                 Key: AXIS2-5416
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5416
>             Project: Axis2
>          Issue Type: Improvement
>          Components: json
>    Affects Versions: 1.7.0
>            Reporter: Shameera Rathnayaka
>            Assignee: Shameera Rathnayaka
>              Labels: Documentation, json
>             Fix For: 1.7.0
>
>         Attachments: JSONDucumentation.patch
>
>
> Now Axis2 can process pure JSON requests with both Native and XML Stream API base approaches. So it is necessary to expose this new improvements to Axis2 users by documentations. One page to explain the overall process with details to understand what is happening with each approach. And another page to explain how to configure and add these new approaches to their own services.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5416) Add Native approach and XML Stream API base approach Documentations

Posted by "Shameera Rathnayaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450435#comment-13450435 ] 

Shameera Rathnayaka commented on AXIS2-5416:
--------------------------------------------

Hi devs/Andreas,

There is no any unit test which cover this ADB support, There is a sample which demonstrate Native support but not XML Stream API base approach. As I think it is good to write a sample for demonstrate this XML Stream API base approach. Therefore I will write a sample to cover this ADB support too.WDYT?

Think above content structure is good enough :)

Thanks,
Shameera.
                
> Add Native approach and XML Stream API base approach Documentations
> -------------------------------------------------------------------
>
>                 Key: AXIS2-5416
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5416
>             Project: Axis2
>          Issue Type: Improvement
>          Components: json
>    Affects Versions: 1.7.0
>            Reporter: Shameera Rathnayaka
>            Assignee: Shameera Rathnayaka
>              Labels: Documentation, json
>             Fix For: 1.7.0
>
>         Attachments: JSONDucumentation.patch
>
>
> Now Axis2 can process pure JSON requests with both Native and XML Stream API base approaches. So it is necessary to expose this new improvements to Axis2 users by documentations. One page to explain the overall process with details to understand what is happening with each approach. And another page to explain how to configure and add these new approaches to their own services.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5416) Add Native approach and XML Stream API base approach Documentations

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451622#comment-13451622 ] 

Andreas Veithen commented on AXIS2-5416:
----------------------------------------

I did a quick check of the test coverage using Cobertura. I think that the coverage is insufficient. There are even classes that have zero test coverage although they seem very important, e.g. JSONMessageHandler and JsonRpcMessageReceiver. I think that at this point test cases are more important than samples.
                
> Add Native approach and XML Stream API base approach Documentations
> -------------------------------------------------------------------
>
>                 Key: AXIS2-5416
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5416
>             Project: Axis2
>          Issue Type: Improvement
>          Components: json
>    Affects Versions: 1.7.0
>            Reporter: Shameera Rathnayaka
>            Assignee: Shameera Rathnayaka
>              Labels: Documentation, json
>             Fix For: 1.7.0
>
>         Attachments: JSONDucumentation.patch
>
>
> Now Axis2 can process pure JSON requests with both Native and XML Stream API base approaches. So it is necessary to expose this new improvements to Axis2 users by documentations. One page to explain the overall process with details to understand what is happening with each approach. And another page to explain how to configure and add these new approaches to their own services.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5416) Add Native approach and XML Stream API base approach Documentations

Posted by "Shameera Rathnayaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465872#comment-13465872 ] 

Shameera Rathnayaka commented on AXIS2-5416:
--------------------------------------------

According to the Andreas explanation, I have submitted a new patch for AXIS2-5417 which has an integration test(end-to-end test) for JSON XMLStreamAPI approach and two test classes for XMLNodeGenerator and JSONMessageHandler to cover main functionalities of those classes. 

Thanks
Shameera.
                
> Add Native approach and XML Stream API base approach Documentations
> -------------------------------------------------------------------
>
>                 Key: AXIS2-5416
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5416
>             Project: Axis2
>          Issue Type: Improvement
>          Components: json
>    Affects Versions: 1.7.0
>            Reporter: Shameera Rathnayaka
>            Assignee: Shameera Rathnayaka
>              Labels: Documentation, json
>             Fix For: 1.7.0
>
>         Attachments: JSONDucumentation.patch
>
>
> Now Axis2 can process pure JSON requests with both Native and XML Stream API base approaches. So it is necessary to expose this new improvements to Axis2 users by documentations. One page to explain the overall process with details to understand what is happening with each approach. And another page to explain how to configure and add these new approaches to their own services.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-5416) Add Native approach and XML Stream API base approach Documentations

Posted by "Shameera Rathnayaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shameera Rathnayaka updated AXIS2-5416:
---------------------------------------

    Attachment: JSONDucumentation.patch

Hi devs, 

I have attached a patch with this, after applying this patch. JSON support part of Table of Content, is look like 

JSON suppport
       JSON support with Mapped/Badgerfish formats*
       Pure JSON Support
             Native Approach
             XML Stream API Base Approach
             User Guide

* This will link to previous JSON Support page. 

Thanks,
Shameera.

                
> Add Native approach and XML Stream API base approach Documentations
> -------------------------------------------------------------------
>
>                 Key: AXIS2-5416
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5416
>             Project: Axis2
>          Issue Type: Improvement
>          Components: json
>    Affects Versions: 1.7.0
>            Reporter: Shameera Rathnayaka
>            Assignee: Shameera Rathnayaka
>              Labels: Documentation, json
>             Fix For: 1.7.0
>
>         Attachments: JSONDucumentation.patch
>
>
> Now Axis2 can process pure JSON requests with both Native and XML Stream API base approaches. So it is necessary to expose this new improvements to Axis2 users by documentations. One page to explain the overall process with details to understand what is happening with each approach. And another page to explain how to configure and add these new approaches to their own services.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5416) Add Native approach and XML Stream API base approach Documentations

Posted by "Shameera Rathnayaka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453273#comment-13453273 ] 

Shameera Rathnayaka commented on AXIS2-5416:
--------------------------------------------

Hi dev/Andreas,

I think sample is a good description for the users, it explain clearly how to use XML Stream API base approach. 

Yes there is no any test coverage for few classes. I am working on it and i have already written test cases for JSONMessageHandler and XMLNodeGenerator to cover all functionalities.But when I try to write a test case for JsonRPCMessageReceiver, I couldn't find a way to set ConfigurationContext of ServiceContext. Because it is used to get the service object. As i can see there are only two methods which set ConfigurationContext of the ServiceContext,  readExternal(ObjectInput in) and a constructor, which is only accessible within that package. Unfortunately other messageReceivers don't have any test coverage therefore i don't have any code segment to refer. Can somebody help me on this case. 

Thanks,
Shameera.
 
                
> Add Native approach and XML Stream API base approach Documentations
> -------------------------------------------------------------------
>
>                 Key: AXIS2-5416
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5416
>             Project: Axis2
>          Issue Type: Improvement
>          Components: json
>    Affects Versions: 1.7.0
>            Reporter: Shameera Rathnayaka
>            Assignee: Shameera Rathnayaka
>              Labels: Documentation, json
>             Fix For: 1.7.0
>
>         Attachments: JSONDucumentation.patch
>
>
> Now Axis2 can process pure JSON requests with both Native and XML Stream API base approaches. So it is necessary to expose this new improvements to Axis2 users by documentations. One page to explain the overall process with details to understand what is happening with each approach. And another page to explain how to configure and add these new approaches to their own services.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5416) Add Native approach and XML Stream API base approach Documentations

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450410#comment-13450410 ] 

Andreas Veithen commented on AXIS2-5416:
----------------------------------------

+            <p> As you can see the native approach can only be used with POJO services but if you need to expose your
+                services which is generated by using ADB or xmlbeans databinding then you need to use this XML Stream
+                API based approach. With this approach you can send pure JSON requests to the relevant services.

Do we have a unit test that demonstrates this?
                
> Add Native approach and XML Stream API base approach Documentations
> -------------------------------------------------------------------
>
>                 Key: AXIS2-5416
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5416
>             Project: Axis2
>          Issue Type: Improvement
>          Components: json
>    Affects Versions: 1.7.0
>            Reporter: Shameera Rathnayaka
>            Assignee: Shameera Rathnayaka
>              Labels: Documentation, json
>             Fix For: 1.7.0
>
>         Attachments: JSONDucumentation.patch
>
>
> Now Axis2 can process pure JSON requests with both Native and XML Stream API base approaches. So it is necessary to expose this new improvements to Axis2 users by documentations. One page to explain the overall process with details to understand what is happening with each approach. And another page to explain how to configure and add these new approaches to their own services.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org