I'm sorry I wasn't clear. I'm reading in the WSDL with WSDL4J, creating a
JDOM element to represent the <schema>, adding all the namespace
declarations at the top of the below wsdl to the JDOM element, and using the
Castor SchemaReader to read in the JDOM element.
By calling methods on the Castor ComplexType object, I'm able to access
other data in the below complexType (such as the values of "name" and "base"
and "ref") but not the value of "wsdl:arrayType".
From: "Werner Guttmann" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: <[email protected]>
Subject: AW: [castor-user] SchemaReader ComplexType wsdl:arrayType
Date: Wed, 4 Apr 2007 10:26:11 +0200
Hmm, the SchemaReader internally makes use of (Java) classes that represent
all artefacts as defined by the XML schema specification. Clearly, the
wsdl:types attribute is not part of the specification.
In other words, unless we extend these classes to be able to cope with
'other' information (anyAttribute comes to my mind), you won't be able to
extract the values for the wsdl:types attribute from the ComplexType class.
Does this make any sense to you ?
Werner
> -----Ursprüngliche Nachricht-----
> Von: mitch finegold [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 03. April 2007 21:34
> An: [email protected]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Betreff: [castor-user] SchemaReader ComplexType wsdl:arrayType
>
> I'm using SchemaReader to read in the wsdl:types in the below WSDL and
am
> having trouble accessing data in the "ArrayOf_xsd_float" complex type.
> Specifically, I am not able to get the "xsd:float[]" value of the
> "wsdl:arrayType" attribute using the Castor API.
>
> I have tried calling various methods on the ComplexType object
> (getAttributeDecls(), getBaseType() etc.) but am not able to get this
> data.
>
> Is anyone able read this in and access this data, or know what Castor
> methods will get me this data? Thx for your help.
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="urn:uds"
> xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="urn:uds"
> xmlns:intf="urn:uds"
>
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:tns1="http://dto.uds.common.real.com"
> xmlns:tns2="http://ebi.common.real.com"
> xmlns:tns3="http://util.java"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
> <wsdl:types>
> <schema targetNamespace="urn:uds"
> xmlns="http://www.w3.org/2001/XMLSchema">
> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"
> schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" />
> <import namespace="http://schemas.xmlsoap.org/wsdl/"
> schemaLocation="http://schemas.xmlsoap.org/wsdl/" />
>
> <complexType name="ArrayOf_xsd_float">
> <complexContent>
> <restriction base="soapenc:Array">
> <attribute ref="soapenc:arrayType"
> wsdl:arrayType="xsd:float[]"/>
> </restriction>
> </complexContent>
> </complexType>
> </schema>
> </wsdl:types>
>
> <wsdl:message name="setFloatArrayRequest">
> <wsdl:part name="definitionName" type="xsd:string"/>
> <wsdl:part name="value" type="impl:ArrayOf_xsd_float"/>
> </wsdl:message>
>
> <wsdl:message name="setFloatArrayResponse"></wsdl:message>
>
>
> <wsdl:portType name="ArbitraryAttributesServiceAxisAdapter">
> <wsdl:operation name="setFloatArray" parameterOrder="definitionName
> value">
> <wsdl:input message="impl:setFloatArrayRequest"
> name="setFloatArrayRequest"/>
> <wsdl:output message="impl:setFloatArrayResponse"
> name="setFloatArrayResponse"/>
> </wsdl:operation>
> </wsdl:portType>
>
> <wsdl:binding name="ArbitraryAttributesServiceSoapBinding"
> type="impl:ArbitraryAttributesServiceAxisAdapter">
> <wsdlsoap:binding style="rpc"
> transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="setFloatArray">
> <wsdlsoap:operation soapAction=""/>
> <wsdl:input name="setFloatArrayRequest">
> <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="urn:uds" use="encoded"/>
> </wsdl:input>
> <wsdl:output name="setFloatArrayResponse">
> <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="urn:uds" use="encoded"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="ArbitraryAttributesServiceAxisAdapterService">
> <wsdl:port binding="impl:ArbitraryAttributesServiceSoapBinding"
> name="ArbitraryAttributesService">
> <wsdlsoap:address
> location="http://uds-
> app03.dev.real.com:8080/uds/services/ArbitraryAttributesService"/>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>
> _________________________________________________________________
> MSN is giving away a trip to Vegas to see Elton John. Enter to win
today.
> http://msnconcertcontest.com?icid-nceltontagline
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
_________________________________________________________________
MSN is giving away a trip to Vegas to see Elton John. Enter to win today.
http://msnconcertcontest.com?icid-nceltontagline
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email