Extension Attributes [message #11525] |
Fri, 28 February 2003 22:43 |
Eclipse User |
|
|
|
Originally posted by: dsingh.altoweb.com
Hi all,
I have a question about parsing XSD schemas that are used to describe
web service data types. I use the XSD parser to construct an instance
document and I'm having a slight problem with the following.
<xsd:complexType name="ArrayOfString">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array>
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
Is there a way through the API to retrieve the extenstion attributes?
Thanks
Dharminder Singh
|
|
|
Re: Extension Attributes [message #11563 is a reply to message #11525] |
Fri, 28 February 2003 23:57 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
--------------12AB854ECB31FB69F109F151
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Dharminder,
You can drop down into the DOM and look for them:
Element attributeElement = xsdAttributeUse.getElement();
if (attributeElement != null &&
attributeElement.hasAttributeNS(WSDL_URI, "arrayType"))
{
}
Dharminder Singh wrote:
> Hi all,
>
> I have a question about parsing XSD schemas that are used to describe
> web service data types. I use the XSD parser to construct an instance
> document and I'm having a slight problem with the following.
>
> <xsd:complexType name="ArrayOfString">
> <xsd:complexContent>
> <xsd:restriction base="SOAP-ENC:Array>
> <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
> </xsd:restriction>
> </xsd:complexContent>
> </xsd:complexType>
>
> Is there a way through the API to retrieve the extenstion attributes?
>
> Thanks
>
> Dharminder Singh
--------------12AB854ECB31FB69F109F151
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dharminder,
<p>You can drop down into the DOM and look for them:
<blockquote> Element attributeElement = xsdAttributeUse.getElement();
<br> if (attributeElement != null && attributeElement.hasAttributeNS(WSDL_URI,
"arrayType"))
<br>{
<br>}
<br> </blockquote>
Dharminder Singh wrote:
<blockquote TYPE=CITE>Hi all,
<p>I have a question about parsing XSD schemas that are used to describe
<br>web service data types. I use the XSD parser to construct an instance
<br>document and I'm having a slight problem with the following.
<p><xsd:complexType name="ArrayOfString">
<br> <xsd:complexContent>
<br> <xsd:restriction base="SOAP-ENC:Array>
<br> <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
<br> </xsd:restriction>
<br> </xsd:complexContent>
<br></xsd:complexType>
<p>Is there a way through the API to retrieve the extenstion attributes?
<p>Thanks
<p>Dharminder Singh</blockquote>
</html>
--------------12AB854ECB31FB69F109F151--
|
|
|
Re: Extension Attributes [message #565343 is a reply to message #11525] |
Fri, 28 February 2003 23:57 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
--------------12AB854ECB31FB69F109F151
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Dharminder,
You can drop down into the DOM and look for them:
Element attributeElement = xsdAttributeUse.getElement();
if (attributeElement != null &&
attributeElement.hasAttributeNS(WSDL_URI, "arrayType"))
{
}
Dharminder Singh wrote:
> Hi all,
>
> I have a question about parsing XSD schemas that are used to describe
> web service data types. I use the XSD parser to construct an instance
> document and I'm having a slight problem with the following.
>
> <xsd:complexType name="ArrayOfString">
> <xsd:complexContent>
> <xsd:restriction base="SOAP-ENC:Array>
> <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
> </xsd:restriction>
> </xsd:complexContent>
> </xsd:complexType>
>
> Is there a way through the API to retrieve the extenstion attributes?
>
> Thanks
>
> Dharminder Singh
--------------12AB854ECB31FB69F109F151
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dharminder,
<p>You can drop down into the DOM and look for them:
<blockquote> Element attributeElement = xsdAttributeUse.getElement();
<br> if (attributeElement != null && attributeElement.hasAttributeNS(WSDL_URI,
"arrayType"))
<br>{
<br>}
<br> </blockquote>
Dharminder Singh wrote:
<blockquote TYPE=CITE>Hi all,
<p>I have a question about parsing XSD schemas that are used to describe
<br>web service data types. I use the XSD parser to construct an instance
<br>document and I'm having a slight problem with the following.
<p><xsd:complexType name="ArrayOfString">
<br> <xsd:complexContent>
<br> <xsd:restriction base="SOAP-ENC:Array>
<br> <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
<br> </xsd:restriction>
<br> </xsd:complexContent>
<br></xsd:complexType>
<p>Is there a way through the API to retrieve the extenstion attributes?
<p>Thanks
<p>Dharminder Singh</blockquote>
</html>
--------------12AB854ECB31FB69F109F151--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03497 seconds