[jira] Created: (AXISCPP-639) When AXIS_OUT_PARAM comes with the basic types generating wrong code

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (AXISCPP-639) When AXIS_OUT_PARAM comes with the basic types generating wrong code

JIRA axis-c-dev@ws.apache.org
When AXIS_OUT_PARAM comes with the basic types generating wrong code
--------------------------------------------------------------------

         Key: AXISCPP-639
         URL: http://issues.apache.org/jira/browse/AXISCPP-639
     Project: Axis-C++
        Type: Bug
  Components: WSDL processing - Doc  
    Versions: 1.6 Alpha    
    Reporter: Chinthana Danapala


When AXIS_OUT_PARAM is a basic type it’s put the asterisk in front of it.

E.g.
        *OutValue0 = m_pCall->getElementAsInt("areaCode", 0);

It should be -
        OutValue0 = m_pCall->getElementAsInt("areaCode", 0);

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (AXISCPP-639) When AXIS_OUT_PARAM comes with the basic types generating wrong code

JIRA axis-c-dev@ws.apache.org
     [ http://issues.apache.org/jira/browse/AXISCPP-639?page=all ]

Chinthana Danapala updated AXISCPP-639:
---------------------------------------

    Attachment: ClientStubWriter.java

I have made the changes to the ClientStubWriter.java. Now it's seems to me ok. Here is the diff file.

Index: ClientStubWriter.java
===================================================================
RCS file: /home/cvspublic/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/li
teral/ClientStubWriter.java,v
retrieving revision 1.86
diff -u -r1.86 ClientStubWriter.java
--- ClientStubWriter.java       25 Apr 2005 12:50:39 -0000      1.86
+++ ClientStubWriter.java       10 May 2005 08:43:48 -0000
@@ -792,8 +792,14 @@
                    typeisarray = false;
                }
                typeissimple = CUtils.isSimpleType (currentParaType);
-
-               currentParamName = "*OutValue" + i;
+
+               if (currentParaType.equals ("xsd__string")
+                               || currentParaType.equals ("xsd__anyURI")
+                               || currentParaType.equals ("xsd__QName")
+                               || currentParaType.equals ("xsd__notation"))
+                       currentParamName = "*OutValue" + i;
+               else
+                       currentParamName = "OutValue" + i;
                // Some code need to be merged as we have some duplicated in cod
ing here.
                if (typeisarray)
                {

> When AXIS_OUT_PARAM comes with the basic types generating wrong code
> --------------------------------------------------------------------
>
>          Key: AXISCPP-639
>          URL: http://issues.apache.org/jira/browse/AXISCPP-639
>      Project: Axis-C++
>         Type: Bug
>   Components: WSDL processing - Doc
>     Versions: 1.6 Alpha
>     Reporter: Chinthana Danapala
>  Attachments: ClientStubWriter.java
>
> When AXIS_OUT_PARAM is a basic type it’s put the asterisk in front of it.
> E.g.
> *OutValue0 = m_pCall->getElementAsInt("areaCode", 0);
> It should be -
>         OutValue0 = m_pCall->getElementAsInt("areaCode", 0);

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (AXISCPP-639) When AXIS_OUT_PARAM comes with the basic types generating wrong code

JIRA axis-c-dev@ws.apache.org
In reply to this post by JIRA axis-c-dev@ws.apache.org
     [ http://issues.apache.org/jira/browse/AXISCPP-639?page=all ]

Dushshantha Chandradasa reassigned AXISCPP-639:
-----------------------------------------------

    Assign To: Dushshantha Chandradasa

> When AXIS_OUT_PARAM comes with the basic types generating wrong code
> --------------------------------------------------------------------
>
>          Key: AXISCPP-639
>          URL: http://issues.apache.org/jira/browse/AXISCPP-639
>      Project: Axis-C++
>         Type: Bug
>   Components: WSDL processing - Doc
>     Versions: 1.6 Alpha
>     Reporter: Chinthana Danapala
>     Assignee: Dushshantha Chandradasa
>  Attachments: ClientStubWriter.java
>
> When AXIS_OUT_PARAM is a basic type it’s put the asterisk in front of it.
> E.g.
> *OutValue0 = m_pCall->getElementAsInt("areaCode", 0);
> It should be -
>         OutValue0 = m_pCall->getElementAsInt("areaCode", 0);

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (AXISCPP-639) When AXIS_OUT_PARAM comes with the basic types generating wrong code

JIRA axis-c-dev@ws.apache.org
In reply to this post by JIRA axis-c-dev@ws.apache.org
     [ http://issues.apache.org/jira/browse/AXISCPP-639?page=all ]
     
Dushshantha Chandradasa resolved AXISCPP-639:
---------------------------------------------

    Resolution: Fixed

Thank Chinthana for fixing the Issue

> When AXIS_OUT_PARAM comes with the basic types generating wrong code
> --------------------------------------------------------------------
>
>          Key: AXISCPP-639
>          URL: http://issues.apache.org/jira/browse/AXISCPP-639
>      Project: Axis-C++
>         Type: Bug
>   Components: WSDL processing - Doc
>     Versions: 1.6 Alpha
>     Reporter: Chinthana Danapala
>     Assignee: Dushshantha Chandradasa
>  Attachments: ClientStubWriter.java
>
> When AXIS_OUT_PARAM is a basic type it’s put the asterisk in front of it.
> E.g.
> *OutValue0 = m_pCall->getElementAsInt("areaCode", 0);
> It should be -
>         OutValue0 = m_pCall->getElementAsInt("areaCode", 0);

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (AXISCPP-639) When AXIS_OUT_PARAM comes with the basic types generating wrong code

JIRA axis-c-dev@ws.apache.org
In reply to this post by JIRA axis-c-dev@ws.apache.org
     [ http://issues.apache.org/jira/browse/AXISCPP-639?page=all ]
     
Dushshantha Chandradasa closed AXISCPP-639:
-------------------------------------------


> When AXIS_OUT_PARAM comes with the basic types generating wrong code
> --------------------------------------------------------------------
>
>          Key: AXISCPP-639
>          URL: http://issues.apache.org/jira/browse/AXISCPP-639
>      Project: Axis-C++
>         Type: Bug
>   Components: WSDL processing - Doc
>     Versions: 1.6 Alpha
>     Reporter: Chinthana Danapala
>     Assignee: Dushshantha Chandradasa
>  Attachments: ClientStubWriter.java
>
> When AXIS_OUT_PARAM is a basic type it’s put the asterisk in front of it.
> E.g.
> *OutValue0 = m_pCall->getElementAsInt("areaCode", 0);
> It should be -
>         OutValue0 = m_pCall->getElementAsInt("areaCode", 0);

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira