axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Mitchell (JIRA)" <>
Subject [jira] Commented: (AXIS2C-849) Generated stub for SimpleType List of String returns no contents
Date Wed, 02 Jan 2008 04:18:34 GMT


Bill Mitchell commented on AXIS2C-849:

Great, Dimuthu.  I rebuilt the stubs, adapted my client to the changed names, and everything
worked fine.  

I only used strtok() because the Microsoft Visual Studio documentation suggested it was thread
safe, just not usable for different strings at the same time.  That may be unique to Microsoft,
though.  Regardless of whether it is thread-safe, you are correct that it is not a good idea
in a library routine where the client might be using strtok for his own purposes.  So avoiding
its use is a definite improvement.  

> Generated stub for SimpleType List of String returns no contents
> ----------------------------------------------------------------
>                 Key: AXIS2C-849
>                 URL:
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: code generation
>    Affects Versions: Current (Nightly)
>         Environment: Windows XP, Visual Studio 2005, guththila parser, libcurl, WSDL2C
from nightly build of 12/19/07
>            Reporter: Bill Mitchell
>         Attachments: adb_MethodListType.c, adb_MethodListType.h, adb_MethodListType.orig.c,
simple_type_list.tar.gz, unrolled.wsdl
> The WSDL fragment below illustrates a SimpleType declared as a list of strings that is
returned as an attribute in a response message.  In the generated stubs, the deserialize routine
in adb_getExemplarResponse.c nicely expects the MethodListType to deserialize the attribute
string into an object and stores the returned MethodListType object as a property of the response.
 Yet the generated adb_MethodListType.c doesn't have any properties and has essentially empty
routines for the deserialize_from_string and serialize_to_string procedures.  
>             <simpleType name="MethodListType">
>                 <list itemType="string"/>
>             </simpleType>
> ...
>             <element name="getExemplarResponse">
>                 <complexType>
>                     <complexContent>
>                         <restriction base="anyType">
>                             <sequence>
>                                 <element name="exemplar" minOccurs="1" maxOccurs="1">
>                                     <complexType>
>                                         <sequence>
>                                             <any namespace="##local" minOccurs="1"
>                                         </sequence>
>                                         <attribute name="handle" type="string" use="required"/>
>                                     </complexType>
>                                 </element>
>                             </sequence>
>                             <attribute name="responseCode" type="integer" use="optional"
>                             <attribute name="responseMessage" type="string" use="optional"/>
>                             <attribute name="supportedMethods" type="fw:MethodListType"
>                         </restriction>
>                     </complexContent>
>                 </complexType>
>             </element>

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:
For additional commands, e-mail:

View raw message