Hi Rafael,

Normally, the client application will also have references to the WSDL/XSDs 
implemented by the server.  These files define the server's operational and 
object model interface.  If the client doesn't have these files, it won't know 
what operations it can call or what data structures are required.  With these 
files, the client should easily know that "Port" contains an integer, even 
though the actual XML stores the value as a plain string.

If you use a Java data binding tool (i.e. XmlBeans), the tool should be smart 
enough to generate methods to access "Port" as an integer.  So if you client 
app uses the artifacts generated from your data binding tool (i.e. Java classes 
from XmlBeans representing the XSD types), it should be able to access "Port" 
as an integer without needing to look directly as the WSDL/XSD to know its type.

-Vinh


-----Original Message-----
From: Rafael [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 17, 2008 6:18 AM
To: [email protected]
Subject: HttpServer Example

Hello everyone,

I'm working over the example "HttpServer". This example has 2 element:

  <xsd:element name="Name" type="xsd:string"/>
  <xsd:element name="Port" type="xsd:integer"/>

Exists some method for to know the type of the element from a client 
application ?

For example, I want to know the type of the element "Port" to present this type 
to the client application.


Thank you.

Rafael León Z.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to