Web services

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kim Lokøy

    Web services

    I want to create a web service operation called CreateAnalysis, and I
    want this operation to handle several types of analysis as input
    (AnalysisTypeA, AnalysisTypeB, etc). I want CreateAnalysis to accept
    different types of input to avoid having to create CreateAnalysisT ypeA,
    CreateAnalysisT ypeB, etc operations. Is this possible using WSDL?

    Any reference to a document describing this is highly appreciated.

    Thanks Kim
  • anonymous

    #2
    Re: Web services

    Kim Lokøy wrote:[color=blue]
    > I want to create a web service operation called CreateAnalysis, and I
    > want this operation to handle several types of analysis as input
    > (AnalysisTypeA, AnalysisTypeB, etc). I want CreateAnalysis to accept
    > different types of input to avoid having to create CreateAnalysisT ypeA,
    > CreateAnalysisT ypeB, etc operations. Is this possible using WSDL?
    >
    > Any reference to a document describing this is highly appreciated.
    >
    > Thanks Kim[/color]
    Accept XML. Supply a schema for each type of xml content you accept.

    Comment

    • Kim Lokøy

      #3
      Re: Web services

      anonymous wrote:[color=blue]
      > Kim Lokøy wrote:
      >[color=green]
      >> I want to create a web service operation called CreateAnalysis, and I
      >> want this operation to handle several types of analysis as input
      >> (AnalysisTypeA, AnalysisTypeB, etc). I want CreateAnalysis to accept
      >> different types of input to avoid having to create
      >> CreateAnalysisT ypeA, CreateAnalysisT ypeB, etc operations. Is this
      >> possible using WSDL?
      >>
      >> Any reference to a document describing this is highly appreciated.
      >>
      >> Thanks Kim[/color]
      >
      > Accept XML. Supply a schema for each type of xml content you accept.[/color]

      Thanks for your response, could you elaborate a bit please...

      Kim

      Comment

      • anonymous

        #4
        Re: Web services

        Kim Lokøy wrote:[color=blue]
        > anonymous wrote:
        >[color=green]
        >> Kim Lokøy wrote:
        >>[color=darkred]
        >>> I want to create a web service operation called CreateAnalysis, and I
        >>> want this operation to handle several types of analysis as input
        >>> (AnalysisTypeA, AnalysisTypeB, etc). I want CreateAnalysis to accept
        >>> different types of input to avoid having to create
        >>> CreateAnalysisT ypeA, CreateAnalysisT ypeB, etc operations. Is this
        >>> possible using WSDL?
        >>>
        >>> Any reference to a document describing this is highly appreciated.
        >>>
        >>> Thanks Kim[/color]
        >>
        >>
        >> Accept XML. Supply a schema for each type of xml content you accept.[/color]
        >
        >
        > Thanks for your response, could you elaborate a bit please...
        >
        > Kim[/color]
        Assuming that AnalysisTypeX can map to an XML structure, design an (XML)
        structure for each AnalysisType. Have the client pass the XML file to
        your Web Service which has but one argument: a String. The String is the
        XML file.
        Your WS implemtation parses the supplied XML file and uses it to build
        the real world object you need on the server side.
        For your convenience supply the client(s) with an XML schema definition
        for each of the AnalysisType(X) that you support. Using that schema, the
        client can validate their XML before sending it to your WS, and you can
        validate the XML when receiving it, so you know that your parser won't
        croak.

        Comment

        • Tamara

          #5
          Re: Web services

          You can use XML data type "anyType". In VW XML to object binding you
          will need to describe all types that you are going to use. It can be
          simple types as String, Integer and so on as well

          Comment

          Working...