Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » namespace prefix to URL resolution
namespace prefix to URL resolution [message #575113] Thu, 31 July 2003 16:50
Eclipse UserFriend
Originally posted by: carman.itc.it

Dear All,

I'm trying to obtain the (simple) type definitions of "elements" within
soap encoded arrays. Here's an example of one such array declaration:

<xsd:attribute ref="soapenc:arrayType"
wsdl:arrayType="typens:CustomerReview[]"/>

Here the attribute, "arrayType" is a string, but the SOAP engine
understands that the string really contains objects of type
"typens:CustomerReview" as a single dimensional array. (Ugly way of
encoding your data, I know, but people seem to use this construction!)

My problem is, that when inspecting such an attribute, I want to resolve
the "typens:CustomerReview" (simple) type definition and view its
properties. Before calling the resolveSimpleTypeDefinition() method, I
need to find the URL which the namespace prefix "typens" represents. I had
a look in both the XSD and DOM apis and couldn't find a method to do this.
Does anybody know how to map prefixes to the URLs they represent? I'm sure
it must be really simple.

Thanks a lot,

Mark
Previous Topic:Generating Java Classes from XSD
Next Topic:Generating Java Classes from XSD
Goto Forum:
  


Current Time: Fri Apr 26 10:07:13 GMT 2024

Powered by FUDForum. Page generated in 0.03196 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top