xml-xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Radu Preotiuc-Pietro" <ra...@bea.com>
Subject RE: XmlBeans, WSDL, SOAP arrays, ...
Date Fri, 19 Mar 2004 21:58:09 GMT
hi alek,
have you tried compiling GoogleSearch.wsdl _and_ the soap encoding schema file at the same
time?
XMLBeans does not include the soap-encoding Schema "natively" but does include support for
the "wsdl:arrayType" attribute.
There is no way in Schema to type an element without giving it a name, AFAIK.

Radu

-----Original Message-----
From: Aleksander Slominski [mailto:aslom@cs.indiana.edu]
Sent: Friday, March 19, 2004 11:53 AM
To: xmlbeans-dev@xml.apache.org
Subject: XmlBeans, WSDL, SOAP arrays, ...


hi,

is there any (documented?) way to get this combination to work?

Array/arrayType shows up in majority of current WSDL files (icncluding 
Google) and supporting this would go long way to help in integrating 
XmlBeans with AXIS ...

is there a way to represent SOAP array with XML Schema ie. sequence of 
elements o fgiven type where name of element is *not* important?

WS-I is no too helpful to in describing how to deal with case when array 
element do not have name declared  
(http://www.ws-i.org/Profiles/Basic/2003-01/BasicProfile-1.0-WGD.html#WSDLTYPES)

in particular i looked on Google API 
(http://api.google.com/GoogleSearch.wsdl) and i wonder if the 
transformation of:

      <xsd:complexType name="ResultElementArray">
        <xsd:complexContent>
          <xsd:restriction base="soapenc:Array">
             <xsd:attribute ref="soapenc:arrayType" 
wsdl:arrayType="typens:ResultElement[]"/>
          </xsd:restriction>
        </xsd:complexContent>
      </xsd:complexType>

to
 
      <xsd:complexType name="ResultElementArray">
        <xsd:sequence>
          <xsd:element name="item" type="xsd:string" minOccurs='0' 
maxOccurs='unbounded' />
        </xsd:sequence>
      </xsd:complexType>

can be improved so "item" is not required as element name in the 
sequence od strings (and such that it still works with XmlBeans)? a 
naive approach did not work:

      <xsd:complexType name="ResultElementArray">
        <xsd:sequence>
          <xsd:any type="xsd:string" minOccurs='0' maxOccurs='unbounded' />
        </xsd:sequence>
      </xsd:complexType>


thanks,

alek

C:\Offnet\xml-xmlbeans\v1>bin\scomp -debug  GoogleSearch.wsdl
C:\Offnet\xml-xmlbeans\v1\GoogleSearch.wsdl:0: warning: The WSDL 
GoogleSearch.ws
dl uses SOAP encoding. SOAP encoding is not compatible with literal XML 
Schema.
C:\Offnet\xml-xmlbeans\v1\GoogleSearch.wsdl:0: error: Type 
Array@http://schemas.
xmlsoap.org/soap/encoding/ not found.
C:\Offnet\xml-xmlbeans\v1\GoogleSearch.wsdl:0: error: Attribute 
arrayType@http:/
/schemas.xmlsoap.org/soap/encoding/ not found.
C:\Offnet\xml-xmlbeans\v1\GoogleSearch.wsdl:0: error: Type 
Array@http://schemas.
xmlsoap.org/soap/encoding/ not found.
C:\Offnet\xml-xmlbeans\v1\GoogleSearch.wsdl:0: error: Attribute 
arrayType@http:/
/schemas.xmlsoap.org/soap/encoding/ not found.
Time to build schema type system: 6.9 seconds

-- 
The best way to predict the future is to invent it - Alan Kay


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Mime
View raw message