RE: Design question

Tech-Archive recommends: Fix windows errors by optimizing your registry



The JAX-RPC specification (v1.1) dictates that the xsd:any type be
represented by an
instance of a class that implements the javax.xml.soap.SOAPElement
interface. The
SOAPElement interface implements the org.w3c.dom.Node interface and offers a
similar
API as an object implementing the org.w3c.dom.Document interface for
manipulating its
content. Therefore, if you want to pass unmodified XML data you can
manipulate the
data in a document object, use the document to populate an instance of an
object
implementing SOAPElement, and then pass the data in an operation that uses
an xsd:any
as a parameter.
This note will illustrate this concept. You can find a nice introduction to
this topic at
http://www-106.ibm.com/developerworks/library/ws-xsdany.html.
--
Patrick


"TonyR" wrote:

> I've got to write a webservice with vb.net client and server such that the
> client will upload an XML file. The XML needs to be checked against a schema
> and a validation message returned to the client.
>
> The easy way I found to do this is to pass a dataset which works fine,
> unfortunately I have to write the server end such that a non-Microsoft
> customers can develop clients too.
>
> I could upload the file as a byte or string array then validate it (I have
> done this and it works) but I'm wondering if there is an open standard for
> receiving an .XML (as XML data rather than as a string) so that it can be
> validated as it comes in.
.



Relevant Pages

  • Re: Push XML data to Browser
    ... you can send the xml to the client as an xml island as you have already ... > My application generates XML data and populates a TreeView ... I also need that data to be available on the client side. ... > I had to place that control behind another control in order to hide it. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Encode XML
    ... I have a web service that returns a String of XML data. ... You want have an XML document which you want to pass to the client. ... It just so happens that coincidentally, this content is XML data. ...
    (comp.lang.java.programmer)
  • Re: What doesnt lend itself to OO?
    ... >>server is a pure data transfer interface. ... essentially exposing the client or service implementation. ... >>paradigms can be abstracted just like any other problem space in an OO ...
    (comp.object)
  • Re: Text terminal rendering design
    ... free to give it any object that satisfies that interface. ... giving it a real facade object if I choose. ... Facade to avoid touching the client. ... completely incompatible with this subsystem interface. ...
    (comp.object)
  • Re: Abstract public member variales?
    ... Entity has no encapsulation and no real methods, but the great thing about it is that its public interface will never have to change during maintenance. ... Assuming there is at most only one Property instance for each property type, then the R1 collection class would own the smarts for finding the right one. ... However, I would point out that the client of the getter is someone who needs to collaborate with a specific Property, not the Entity itself. ... The second line generates a message to the Property for the collaboration. ...
    (comp.object)