The Artima Developer Community
Sponsored Link

Web Services Forum
Axis deserialising problem

1 reply on 1 page. Most recent reply: Feb 18, 2005 5:50 AM by Gilles

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Gilles

Posts: 2
Nickname: ganso
Registered: Feb, 2005

Axis deserialising problem Posted: Feb 18, 2005 5:48 AM
Reply to this message Reply
Advertisement
Hi, I have a problem while deserialising lists with AXIS 1.1. The serialized message (SOAP) is correct but the other way gives me the following exception:

Could not convert LinkType to bean field routeManeuvers[1]', type ManeuverType
(see WSDL for type definition)

The thing is that I have list of lists elsewhere in the WSDL but this one is not working, here is the XSD (relevant part) contained in my WSDL file.



<xs:complexType name="DetermineRouteResponseType">
<xs:sequence>
<xs:element name="RouteManeuvers" type="w:ManeuverType" minOccurs="0" maxOccurs="unbounded"/>
</xs:complexType>

<xs:complexType name="ManeuverType">
<xs:sequence>
<xs:element name="Places" type="w:PlaceType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Geometry" type="w:ConnectedLinksType" minOccurs="0"/>
</xs:complexType>

<xs:complexType name="ConnectedLinksType">
<xs:sequence>
<xs:element name="Links" type="w:LinkType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="type" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Intersection"/> <xs:enumeration value="RoundAbout"/>
<xs:enumeration value="EnclosedTrafficArea"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>

<xs:complexType name="LinkType">
<xs:sequence>
<xs:element name="InterLinkAngle" type="w:AngleType" minOccurs="0"/>
<xs:element name="PositionOnRoundabout" type="w:AngleType" minOccurs="0"/>
<xs:element name="Length" type="w:DistanceType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="type" type="xs:string" use="optional"/>
<xs:attribute name="id" type="xs:string" use="optional"/>
<xs:attribute name="roadClass" type="xs:int" use="optional"/>
<xs:attribute name="accessible" type="xs:boolean" use="optional"/>
<xs:attribute name="oneWay" type="xs:boolean" use="optional"/>
<xs:attribute name="isManeuverEntryLink" type="xs:boolean" use="optional"/>
<xs:attribute name="isManeuverExitLink" type="xs:boolean" use="optional"/>
<xs:attribute name="isRouteLink" type="xs:boolean" use="optional"/>
<xs:attribute name="previousLinkId" type="xs:string" use="optional"/>
</xs:complexType>



The thing is that if I remove the LinkType it works, even with a list of 'Places' inside a list of 'routeManeuvers'. If I add the connectedLinks, the serialization is fine but not the deserialization.

I have already tried to create ArrayOfObject complex types for all lists without success.

Can anyone help ?
Thanks


Gilles

Posts: 2
Nickname: ganso
Registered: Feb, 2005

Re: Axis deserialising problem Posted: Feb 18, 2005 5:50 AM
Reply to this message Reply
Note : I have seen some formatting pblms in the code I put in my thread. My original code is properly formated, I made some mistakes putting it in the post, sorry about that

Flat View: This topic has 1 reply on 1 page
Topic: Help with Axis Previous Topic   Next Topic Topic: Code generation using TierDeveloper

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use