You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-c-dev@ws.apache.org by "Dimuthu Gamage (JIRA)" <ji...@apache.org> on 2010/04/21 04:57:50 UTC

[jira] Commented: (AXIS2C-480) improve support for XSD constructs

    [ https://issues.apache.org/jira/browse/AXIS2C-480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859173#action_12859173 ] 

Dimuthu Gamage commented on AXIS2C-480:
---------------------------------------

This is a long standing issue, requesting lot of improvements. And most of the parts are already there in the tool for years. So I putting a comment mentioning those just for the record, 

Already implemented, xsd:all, xsd:union, anonymous complexTypes (nested at arbitrary depth), xml attributes

Still to be implemented: 

1. Multiple port types in one WSDL - We can probably do this by prefixing the port name to the method. But it will make the method longer. But we already have an option which port to use when generating code.

2. Restrictions of simple/builtin types,  detection of presence/absence of optional xml attributes - These are mostly validation stuff required when parsing soap messages. These are used very rarely, but I agree it is important to have them. 


Thanks
Dimuthu





> improve support for XSD constructs
> ----------------------------------
>
>                 Key: AXIS2C-480
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-480
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: code generation
>    Affects Versions: 0.95, 0.96, Current (Nightly)
>         Environment: WIN2KSP4 VS6SP6
>            Reporter: Franz Fehringer
>            Assignee: Dimuthu Gamage
>
> Current XSD support is rather limited (see excerpt from mail exchange Franz Fehringer <-> Milinda Pathirage below).
> It should be improved to allow real world use of AXIS2C.
>     Are the following areas settlet with these tools:
>         * Multiple port types in one WSDL?
> If there are multiple port types in WSDL Java tool (org.apache.axis2.wsdl.WSDL2C) generate source code for only one port type. You can give port name as a argument to WSDL2C tool and in this case port type is selected from the port binding for given port.
>         * xsd:all?
> (WSDL2C Java tool)Not supported.
>         * xsd:union?
> (WSDL2C Java tool)Not supported.
>         * anonymous complexTypes (nested at arbitrary depth)?
> (WSDL2C Java tool)Support for anonymous complexTypes.
>         * restrictions of simple/builtin types?
>         * detection of presence/absence of optional xml attributes?
> (WSDL2C Java tool)Not supported. 
>         * xml attributes, whose types are userdefined?
> (WSDL2C Java tool)Not supported. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Re: [axis2/C] Is there a test framework?

Posted by Danushka Menikkumbura <da...@wso2.com>.
>
> Is there such a framework in AXIS2/C?  If not, I am thinking that we
> should bring that forward and tailor it to axis2/C.  Any objections?
>

+1.

Danushka

Re: [axis2/C] Is there a test framework?

Posted by Selvaratnam Uthaiyashankar <ut...@gmail.com>.
On Fri, May 14, 2010 at 1:16 AM, Nadir Amra <am...@us.ibm.com> wrote:
> In Axis C++ we had a test framework built around ant where a test entails:
>
>  - start java mock server with canned response file
>  -  the Web service client application gets created (entails generating
> stubs against a WSDL,, compiling and building client application)
>  - The client application is invoked, client sends request and the
> response is written to stdout.
>  -  The response is captured and compared with a "good"response output
> that was previously generated and FAIL or SUCCESS is posted to a file. In
> addition, it is possible to compare the request/response streams that is
> sent received.
>
>
> Is there such a framework in AXIS2/C?  If not, I am thinking that we
> should bring that forward and tailor it to axis2/C.

+1 for adding it.

Regards,
Shankar

Any objections?
>
> Nadir Amra
> Integrated Web Services for IBM i Operating System
> Internet: amra@us.ibm.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>



-- 
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"

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


Re: [axis2/C] Is there a test framework?

Posted by Lahiru Gunathilake <gl...@gmail.com>.
On Fri, May 14, 2010 at 2:33 PM, Nandika Jayawardana <ja...@gmail.com>wrote:

>
>
> On Fri, May 14, 2010 at 1:16 AM, Nadir Amra <am...@us.ibm.com> wrote:
>
>> In Axis C++ we had a test framework built around ant where a test entails:
>>
>>  - start java mock server with canned response file
>>  -  the Web service client application gets created (entails generating
>> stubs against a WSDL,, compiling and building client application)
>>  - The client application is invoked, client sends request and the
>> response is written to stdout.
>>  -  The response is captured and compared with a "good"response output
>> that was previously generated and FAIL or SUCCESS is posted to a file. In
>> addition, it is possible to compare the request/response streams that is
>> sent received.
>>
>>
>> Is there such a framework in AXIS2/C?  If not, I am thinking that we
>> should bring that forward and tailor it to axis2/C.  Any objections?
>>
>
> +1 for adding the test framework.
>
+1

Thanks
Lahiru

>
>
> Regards
> Nandika
>
>>
>> Nadir Amra
>> Integrated Web Services for IBM i Operating System
>> Internet: amra@us.ibm.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>
>>
>
>
> --
> http://nandikajayawardana.blogspot.com/
> WSO2 Inc: http://www.wso2.com
>



-- 
Apache Qpid, Worlds dominant messaging middleware..!!!

Senior Software Engineer
WSO2 Inc

Re: [axis2/C] Is there a test framework?

Posted by Lahiru Gunathilake <gl...@gmail.com>.
On Fri, May 14, 2010 at 2:33 PM, Nandika Jayawardana <ja...@gmail.com>wrote:

>
>
> On Fri, May 14, 2010 at 1:16 AM, Nadir Amra <am...@us.ibm.com> wrote:
>
>> In Axis C++ we had a test framework built around ant where a test entails:
>>
>>  - start java mock server with canned response file
>>  -  the Web service client application gets created (entails generating
>> stubs against a WSDL,, compiling and building client application)
>>  - The client application is invoked, client sends request and the
>> response is written to stdout.
>>  -  The response is captured and compared with a "good"response output
>> that was previously generated and FAIL or SUCCESS is posted to a file. In
>> addition, it is possible to compare the request/response streams that is
>> sent received.
>>
>>
>> Is there such a framework in AXIS2/C?  If not, I am thinking that we
>> should bring that forward and tailor it to axis2/C.  Any objections?
>>
>
> +1 for adding the test framework.
>
+1

Thanks
Lahiru

>
>
> Regards
> Nandika
>
>>
>> Nadir Amra
>> Integrated Web Services for IBM i Operating System
>> Internet: amra@us.ibm.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>
>>
>
>
> --
> http://nandikajayawardana.blogspot.com/
> WSO2 Inc: http://www.wso2.com
>



-- 
Apache Qpid, Worlds dominant messaging middleware..!!!

Senior Software Engineer
WSO2 Inc

Re: [axis2/C] Is there a test framework?

Posted by Nandika Jayawardana <ja...@gmail.com>.
On Fri, May 14, 2010 at 1:16 AM, Nadir Amra <am...@us.ibm.com> wrote:

> In Axis C++ we had a test framework built around ant where a test entails:
>
>  - start java mock server with canned response file
>  -  the Web service client application gets created (entails generating
> stubs against a WSDL,, compiling and building client application)
>  - The client application is invoked, client sends request and the
> response is written to stdout.
>  -  The response is captured and compared with a "good"response output
> that was previously generated and FAIL or SUCCESS is posted to a file. In
> addition, it is possible to compare the request/response streams that is
> sent received.
>
>
> Is there such a framework in AXIS2/C?  If not, I am thinking that we
> should bring that forward and tailor it to axis2/C.  Any objections?
>

+1 for adding the test framework.


Regards
Nandika

>
> Nadir Amra
> Integrated Web Services for IBM i Operating System
> Internet: amra@us.ibm.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>


-- 
http://nandikajayawardana.blogspot.com/
WSO2 Inc: http://www.wso2.com

Re: [axis2/C] Is there a test framework?

Posted by Samisa Abeysinghe <sa...@wso2.com>.
On Fri, May 14, 2010 at 9:33 AM, Damitha Kumarage <da...@wso2.com> wrote:

> Nadir Amra wrote:
>
>> In Axis C++ we had a test framework built around ant where a test entails:
>>
>>  - start java mock server with canned response file
>>  -  the Web service client application gets created (entails generating
>> stubs against a WSDL,, compiling and building client application)
>>  - The client application is invoked, client sends request and the
>> response is written to stdout.  -  The response is captured and compared
>> with a "good"response output that was previously generated and FAIL or
>> SUCCESS is posted to a file. In addition, it is possible to compare the
>> request/response streams that is sent received.
>> Is there such a framework in AXIS2/C?  If not, I am thinking that we
>> should bring that forward and tailor it to axis2/C.  Any objections?
>>
>>
> AFAIK there is no such frame work for Axis2/C. This would be a great
> addition.
>

+1 for adding the test framework.

Samisa...

>
> Thanks,
> Damitha
>
>  Nadir Amra
>> Integrated Web Services for IBM i Operating System
>> Internet: amra@us.ibm.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>
>>
>>
>>
>
>
> --
> __________________________________________________________________
>
> Damitha Kumarage
> Technical Lead; WSO2 Inc.
> "Oxygenating the Web Service Platform; " http://www.wso2.com/
>
> blog: " http://damithakumarage.wordpress.com/
>
> __________________________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
> --
Samisa Abeysinghe
Director, Engineering - WSO2 Inc.

http://wso2.com/ - "lean . enterprise . middleware"

Re: [axis2/C] Is there a test framework?

Posted by Samisa Abeysinghe <sa...@wso2.com>.
On Fri, May 14, 2010 at 9:33 AM, Damitha Kumarage <da...@wso2.com> wrote:

> Nadir Amra wrote:
>
>> In Axis C++ we had a test framework built around ant where a test entails:
>>
>>  - start java mock server with canned response file
>>  -  the Web service client application gets created (entails generating
>> stubs against a WSDL,, compiling and building client application)
>>  - The client application is invoked, client sends request and the
>> response is written to stdout.  -  The response is captured and compared
>> with a "good"response output that was previously generated and FAIL or
>> SUCCESS is posted to a file. In addition, it is possible to compare the
>> request/response streams that is sent received.
>> Is there such a framework in AXIS2/C?  If not, I am thinking that we
>> should bring that forward and tailor it to axis2/C.  Any objections?
>>
>>
> AFAIK there is no such frame work for Axis2/C. This would be a great
> addition.
>

+1 for adding the test framework.

Samisa...

>
> Thanks,
> Damitha
>
>  Nadir Amra
>> Integrated Web Services for IBM i Operating System
>> Internet: amra@us.ibm.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: c-dev-help@axis.apache.org
>>
>>
>>
>>
>
>
> --
> __________________________________________________________________
>
> Damitha Kumarage
> Technical Lead; WSO2 Inc.
> "Oxygenating the Web Service Platform; " http://www.wso2.com/
>
> blog: " http://damithakumarage.wordpress.com/
>
> __________________________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
> --
Samisa Abeysinghe
Director, Engineering - WSO2 Inc.

http://wso2.com/ - "lean . enterprise . middleware"

Re: [axis2/C] Is there a test framework?

Posted by Damitha Kumarage <da...@wso2.com>.
Nadir Amra wrote:
> In Axis C++ we had a test framework built around ant where a test entails:
>
>  - start java mock server with canned response file
>  -  the Web service client application gets created (entails generating 
> stubs against a WSDL,, compiling and building client application)
>  - The client application is invoked, client sends request and the 
> response is written to stdout. 
>  -  The response is captured and compared with a "good"response output 
> that was previously generated and FAIL or SUCCESS is posted to a file. In 
> addition, it is possible to compare the request/response streams that is 
> sent received. 
>  
>
> Is there such a framework in AXIS2/C?  If not, I am thinking that we 
> should bring that forward and tailor it to axis2/C.  Any objections?
>   
AFAIK there is no such frame work for Axis2/C. This would be a great 
addition.

Thanks,
Damitha
> Nadir Amra
> Integrated Web Services for IBM i Operating System
> Internet: amra@us.ibm.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>
>   


-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

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


Re: [axis2/C] Is there a test framework?

Posted by Selvaratnam Uthaiyashankar <ut...@gmail.com>.
On Fri, May 14, 2010 at 1:16 AM, Nadir Amra <am...@us.ibm.com> wrote:
> In Axis C++ we had a test framework built around ant where a test entails:
>
>  - start java mock server with canned response file
>  -  the Web service client application gets created (entails generating
> stubs against a WSDL,, compiling and building client application)
>  - The client application is invoked, client sends request and the
> response is written to stdout.
>  -  The response is captured and compared with a "good"response output
> that was previously generated and FAIL or SUCCESS is posted to a file. In
> addition, it is possible to compare the request/response streams that is
> sent received.
>
>
> Is there such a framework in AXIS2/C?  If not, I am thinking that we
> should bring that forward and tailor it to axis2/C.

+1 for adding it.

Regards,
Shankar

Any objections?
>
> Nadir Amra
> Integrated Web Services for IBM i Operating System
> Internet: amra@us.ibm.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>



-- 
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"

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


Re: [axis2/C] Is there a test framework?

Posted by Danushka Menikkumbura <da...@wso2.com>.
>
> Is there such a framework in AXIS2/C?  If not, I am thinking that we
> should bring that forward and tailor it to axis2/C.  Any objections?
>

+1.

Danushka

Re: [axis2/C] Is there a test framework?

Posted by Nandika Jayawardana <ja...@gmail.com>.
On Fri, May 14, 2010 at 1:16 AM, Nadir Amra <am...@us.ibm.com> wrote:

> In Axis C++ we had a test framework built around ant where a test entails:
>
>  - start java mock server with canned response file
>  -  the Web service client application gets created (entails generating
> stubs against a WSDL,, compiling and building client application)
>  - The client application is invoked, client sends request and the
> response is written to stdout.
>  -  The response is captured and compared with a "good"response output
> that was previously generated and FAIL or SUCCESS is posted to a file. In
> addition, it is possible to compare the request/response streams that is
> sent received.
>
>
> Is there such a framework in AXIS2/C?  If not, I am thinking that we
> should bring that forward and tailor it to axis2/C.  Any objections?
>

+1 for adding the test framework.


Regards
Nandika

>
> Nadir Amra
> Integrated Web Services for IBM i Operating System
> Internet: amra@us.ibm.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>


-- 
http://nandikajayawardana.blogspot.com/
WSO2 Inc: http://www.wso2.com

Re: [axis2/C] Is there a test framework?

Posted by Damitha Kumarage <da...@wso2.com>.
Nadir Amra wrote:
> In Axis C++ we had a test framework built around ant where a test entails:
>
>  - start java mock server with canned response file
>  -  the Web service client application gets created (entails generating 
> stubs against a WSDL,, compiling and building client application)
>  - The client application is invoked, client sends request and the 
> response is written to stdout. 
>  -  The response is captured and compared with a "good"response output 
> that was previously generated and FAIL or SUCCESS is posted to a file. In 
> addition, it is possible to compare the request/response streams that is 
> sent received. 
>  
>
> Is there such a framework in AXIS2/C?  If not, I am thinking that we 
> should bring that forward and tailor it to axis2/C.  Any objections?
>   
AFAIK there is no such frame work for Axis2/C. This would be a great 
addition.

Thanks,
Damitha
> Nadir Amra
> Integrated Web Services for IBM i Operating System
> Internet: amra@us.ibm.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>
>   


-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

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


[axis2/C] Is there a test framework?

Posted by Nadir Amra <am...@us.ibm.com>.
In Axis C++ we had a test framework built around ant where a test entails:

 - start java mock server with canned response file
 -  the Web service client application gets created (entails generating 
stubs against a WSDL,, compiling and building client application)
 - The client application is invoked, client sends request and the 
response is written to stdout. 
 -  The response is captured and compared with a "good"response output 
that was previously generated and FAIL or SUCCESS is posted to a file. In 
addition, it is possible to compare the request/response streams that is 
sent received. 
 

Is there such a framework in AXIS2/C?  If not, I am thinking that we 
should bring that forward and tailor it to axis2/C.  Any objections?

Nadir Amra
Integrated Web Services for IBM i Operating System
Internet: amra@us.ibm.com

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


[axis2/C] Is there a test framework?

Posted by Nadir Amra <am...@us.ibm.com>.
In Axis C++ we had a test framework built around ant where a test entails:

 - start java mock server with canned response file
 -  the Web service client application gets created (entails generating 
stubs against a WSDL,, compiling and building client application)
 - The client application is invoked, client sends request and the 
response is written to stdout. 
 -  The response is captured and compared with a "good"response output 
that was previously generated and FAIL or SUCCESS is posted to a file. In 
addition, it is possible to compare the request/response streams that is 
sent received. 
 

Is there such a framework in AXIS2/C?  If not, I am thinking that we 
should bring that forward and tailor it to axis2/C.  Any objections?

Nadir Amra
Integrated Web Services for IBM i Operating System
Internet: amra@us.ibm.com

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