From: Charlie B. <cha...@gm...> - 2006-11-08 21:16:41
|
I'm trying to parse a wsdl file the includes complex data types. I'm doing this in hopes of creating a patch for soap::lite. The part I'm having trouble with is breaking down complexType data into it's simpleType components. Here is part of the wsdl I'm working with <complexType name="ArrayOfstring"> <complexContent> <restriction base="SOAP-ENC:Array"> <sequence> <element name="item" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> </sequence> <attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="xsd:string[]"/> </restriction> </complexContent> on line 2856 of Lite.pm there is: @parts = $msg->part; $services{$opername}->{parameters} = [ @parts ]; The line above works by adding the complex types to the parameters array that prints out in the stub file. What I'm trying to do now is get a list of the parts of the complexType (e.g. ArrayOfstring). I'm at a loss on how to get this data from the objects that are available in SOAP::Schema. Any help in pointing out where/how to parse this data would be appreciated. |