Hi Karolina,

Looks like the generated code handling the anyAttribute correctly, but it is
a bug to generate the error messages you mentioned. I will fix it in the
templates. I think you can safely continue removing those lines from the
generated code you mentioned in mail#1.

Thanks
Dimuthu

On Fri, Jul 4, 2008 at 7:22 PM, Karolina <[EMAIL PROTECTED]> wrote:

> Hello -
>
> Here is the WSDL file.  The following are the four types in which I have
> found the comments/code:
>
> #src/adb_RelatesToType.c:
> #src/adb_AttributedUnsignedLongType.c:
> #src/adb_AttributedURIType.c:
> #src/adb_AttributedQNameType.c:
>
> Thanks,
> Karolina
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "
> http://www.w3.org/2001/XMLSchema.dtd";>
> <!--
>     W3C XML Schema defined in the Web Services Addressing 1.0 specification
>     http://www.w3.org/TR/ws-addr-core
>
>    Copyright (c) 2005 World Wide Web Consortium,
>
>    (Massachusetts Institute of Technology, European Research Consortium for
>    Informatics and Mathematics, Keio University). All Rights Reserved. This
>    work is distributed under the W3C(R) Software License [1] in the hope that
>    it will be useful, but WITHOUT ANY WARRANTY; without even the implied
>    warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>    [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
>
>    $Id: ws-addr.xsd,v 1.3 2005/08/09 13:17:35 hugo Exp $
> -->
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:tns="
> http://www.w3.org/2005/08/addressing"; targetNamespace="
> http://www.w3.org/2005/08/addressing"; blockDefault="#all"
> elementFormDefault="qualified" finalDefault=""
> attributeFormDefault="unqualified">
>
>     <!-- Constructs from the WS-Addressing Core -->
>
>     <xs:element name="EndpointReference" type="tns:EndpointReferenceType"/>
>     <xs:complexType name="EndpointReferenceType" mixed="false">
>         <xs:sequence>
>             <xs:element name="Address" type="tns:AttributedURIType"/>
>             <xs:element name="ReferenceParameters"
> type="tns:ReferenceParametersType" minOccurs="0"/>
>             <xs:element ref="tns:Metadata" minOccurs="0"/>
>             <xs:any namespace="##other" processContents="lax" minOccurs="0"
> maxOccurs="unbounded"/>
>         </xs:sequence>
>         <xs:anyAttribute namespace="##other" processContents="lax"/>
>     </xs:complexType>
>
>     <xs:complexType name="ReferenceParametersType" mixed="false">
>         <xs:sequence>
>             <xs:any namespace="##any" processContents="lax" minOccurs="0"
> maxOccurs="unbounded"/>
>         </xs:sequence>
>         <xs:anyAttribute namespace="##other" processContents="lax"/>
>     </xs:complexType>
>
>     <xs:element name="Metadata" type="tns:MetadataType"/>
>     <xs:complexType name="MetadataType" mixed="false">
>         <xs:sequence>
>             <xs:any namespace="##any" processContents="lax" minOccurs="0"
> maxOccurs="unbounded"/>
>         </xs:sequence>
>         <xs:anyAttribute namespace="##other" processContents="lax"/>
>     </xs:complexType>
>
>     <xs:element name="MessageID" type="tns:AttributedURIType"/>
>     <xs:element name="RelatesTo" type="tns:RelatesToType"/>
>     <xs:complexType name="RelatesToType" mixed="false">
>         <xs:simpleContent>
>             <xs:extension base="xs:anyURI">
>                 <xs:attribute name="RelationshipType"
> type="tns:RelationshipTypeOpenEnum" use="optional" default="
> http://www.w3.org/2005/08/addressing/reply"/>
>                 <xs:anyAttribute namespace="##other"
> processContents="lax"/>
>             </xs:extension>
>         </xs:simpleContent>
>     </xs:complexType>
>
>     <xs:simpleType name="RelationshipTypeOpenEnum">
>         <xs:union memberTypes="tns:RelationshipType xs:anyURI"/>
>     </xs:simpleType>
>
>     <xs:simpleType name="RelationshipType">
>         <xs:restriction base="xs:anyURI">
>             <xs:enumeration value="
> http://www.w3.org/2005/08/addressing/reply"/>
>         </xs:restriction>
>     </xs:simpleType>
>
>     <xs:element name="ReplyTo" type="tns:EndpointReferenceType"/>
>     <xs:element name="From" type="tns:EndpointReferenceType"/>
>     <xs:element name="FaultTo" type="tns:EndpointReferenceType"/>
>     <xs:element name="To" type="tns:AttributedURIType"/>
>     <xs:element name="Action" type="tns:AttributedURIType"/>
>
>     <xs:complexType name="AttributedURIType" mixed="false">
>         <xs:simpleContent>
>             <xs:extension base="xs:anyURI">
>                 <xs:anyAttribute namespace="##other"
> processContents="lax"/>
>             </xs:extension>
>         </xs:simpleContent>
>     </xs:complexType>
>
>     <!-- Constructs from the WS-Addressing SOAP binding -->
>
>     <xs:attribute name="IsReferenceParameter" type="xs:boolean"/>
>
>     <xs:simpleType name="FaultCodesOpenEnumType">
>         <xs:union memberTypes="tns:FaultCodesType xs:QName"/>
>     </xs:simpleType>
>
>     <xs:simpleType name="FaultCodesType">
>         <xs:restriction base="xs:QName">
>             <xs:enumeration value="tns:InvalidAddressingHeader"/>
>             <xs:enumeration value="tns:InvalidAddress"/>
>             <xs:enumeration value="tns:InvalidEPR"/>
>             <xs:enumeration value="tns:InvalidCardinality"/>
>             <xs:enumeration value="tns:MissingAddressInEPR"/>
>             <xs:enumeration value="tns:DuplicateMessageID"/>
>             <xs:enumeration value="tns:ActionMismatch"/>
>             <xs:enumeration value="tns:MessageAddressingHeaderRequired"/>
>             <xs:enumeration value="tns:DestinationUnreachable"/>
>             <xs:enumeration value="tns:ActionNotSupported"/>
>             <xs:enumeration value="tns:EndpointUnavailable"/>
>         </xs:restriction>
>     </xs:simpleType>
>
>     <xs:element name="RetryAfter" type="tns:AttributedUnsignedLongType"/>
>     <xs:complexType name="AttributedUnsignedLongType" mixed="false">
>         <xs:simpleContent>
>             <xs:extension base="xs:unsignedLong">
>                 <xs:anyAttribute namespace="##other"
> processContents="lax"/>
>             </xs:extension>
>         </xs:simpleContent>
>     </xs:complexType>
>
>     <xs:element name="ProblemHeaderQName" type="tns:AttributedQNameType"/>
>     <xs:complexType name="AttributedQNameType" mixed="false">
>         <xs:simpleContent>
>             <xs:extension base="xs:QName">
>                 <xs:anyAttribute namespace="##other"
> processContents="lax"/>
>             </xs:extension>
>         </xs:simpleContent>
>     </xs:complexType>
>
>     <xs:element name="ProblemHeader" type="tns:AttributedAnyType"/>
>     <xs:complexType name="AttributedAnyType" mixed="false">
>         <xs:sequence>
>             <xs:any namespace="##any" processContents="lax" minOccurs="1"
> maxOccurs="1"/>
>         </xs:sequence>
>         <xs:anyAttribute namespace="##other" processContents="lax"/>
>     </xs:complexType>
>
>     <xs:element name="ProblemIRI" type="tns:AttributedURIType"/>
>
>     <xs:element name="ProblemAction" type="tns:ProblemActionType"/>
>     <xs:complexType name="ProblemActionType" mixed="false">
>         <xs:sequence>
>             <xs:element ref="tns:Action" minOccurs="0"/>
>             <xs:element name="SoapAction" minOccurs="0" type="xs:anyURI"/>
>         </xs:sequence>
>         <xs:anyAttribute namespace="##other" processContents="lax"/>
>     </xs:complexType>
>
> </xs:schema>
>
>
> On Fri, Jul 4, 2008 at 3:22 PM, Dimuthu Gamage <[EMAIL PROTECTED]> wrote:
>
>> Hi Karolina,
>>
>> I guess there is one schema type or some construct in your wsdl  schema,
>> that is not supported in WSDL2C. (most probably you should have an
>> "anyAttribute" element.). since wsdl2c can not parse that specific
>> property/attribute it fails serializing and deserializing whole message. If
>> you can send the the WSDL to the list, we can identify where exactly is
>> going wrong.
>>
>> Thanks
>> Dimuthu
>>
>>
>> On Fri, Jul 4, 2008 at 3:39 PM, Karolina <[EMAIL PROTECTED]> wrote:
>>
>>> Hi List -
>>>
>>> I would like to know why the following comments and code appear in the
>>> WSDL2C generated code.  Has anyone encountered them?
>>>
>>> 1) In a deserialize_from_string method:
>>>
>>>          /* can not handle the attribute type axiom_attribute_t**/
>>>
>>>          status = AXIS2_FAILURE;
>>>
>>> 2) In a serialize_to_string method:
>>>
>>>         /* can not handle the property type axiom_attribute_t**/
>>>
>>>          text_value = NULL
>>> In running a client to consume a service generated using WSDL2C, the
>>> client invocation was failing.  In the logs, I found that NULL was being
>>> returned from a deserialize method causing the problem.  On examination of
>>> the WSDL2C generated methods for deserializing, I found the above listed
>>> comments and code.  As a result the method always returns NULL and causes
>>> errors.  In searching through the WSDL2C generated code, I found that such
>>> comments and code appears multiple times in serilizing and deserizlizing
>>> methods.   When I commented out the code, the client and server are able to
>>> successfully exchange messages.
>>>
>>> What could cause these comments/code to be generated? Could this be a
>>> problem with the WSDL files?
>>>
>>> I am new to Axis2 and using WSDL2C.  Your help is appreciated!
>>> -Karolina
>>>
>>
>>
>

Reply via email to