Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Web services

Reply
Thread Tools

Web services

 
 
=?ISO-8859-1?Q?Kim_Lok=F8y?=
Guest
Posts: n/a
 
      01-25-2005
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 CreateAnalysisTypeA,
CreateAnalysisTypeB, etc operations. Is this possible using WSDL?

Any reference to a document describing this is highly appreciated.

Thanks Kim
 
Reply With Quote
 
 
 
 
anonymous
Guest
Posts: n/a
 
      01-26-2005
Kim Lokøy wrote:
> 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 CreateAnalysisTypeA,
> CreateAnalysisTypeB, etc operations. Is this possible using WSDL?
>
> Any reference to a document describing this is highly appreciated.
>
> Thanks Kim

Accept XML. Supply a schema for each type of xml content you accept.
 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?Kim_Lok=F8y?=
Guest
Posts: n/a
 
      01-26-2005
anonymous wrote:
> Kim Lokøy wrote:
>
>> 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
>> CreateAnalysisTypeA, CreateAnalysisTypeB, etc operations. Is this
>> possible using WSDL?
>>
>> Any reference to a document describing this is highly appreciated.
>>
>> Thanks Kim

>
> Accept XML. Supply a schema for each type of xml content you accept.


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

Kim
 
Reply With Quote
 
anonymous
Guest
Posts: n/a
 
      01-26-2005
Kim Lokøy wrote:
> anonymous wrote:
>
>> Kim Lokøy wrote:
>>
>>> 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
>>> CreateAnalysisTypeA, CreateAnalysisTypeB, etc operations. Is this
>>> possible using WSDL?
>>>
>>> Any reference to a document describing this is highly appreciated.
>>>
>>> Thanks Kim

>>
>>
>> Accept XML. Supply a schema for each type of xml content you accept.

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

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.
 
Reply With Quote
 
Tamara
Guest
Posts: n/a
 
      02-01-2005
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Services Restful Services imlakhani Java 1 12-16-2009 03:06 PM
Start Web services as Windows Services start Anup ASP .Net 1 05-09-2006 11:44 AM
How .NET web services client handles exceptions from Java web services? John ASP .Net Web Services 4 03-31-2006 10:13 PM
What is the difference between C# windows Services and web services in vs.net? Nick ASP .Net 1 09-12-2005 02:33 PM
how to implement Services Interface Tier (web services) Szymi MCSD 0 11-03-2003 10:50 AM



Advertisments