Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8242319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:07:42+00:00 2026-06-07T21:07:42+00:00

A webservice should validate input data and write to the database. Later, other services

  • 0

A webservice should validate input data and write to the database. Later, other services should read the data and create a xml file from it.

So the service just does data transport and transformation (WS-* Parameter => Database).

The “dynamic” webservice should also contain a variable set of parameters (“container”), cause the client changes a lot and quickly which should not end in modification of the interface and the underlying implementation.

How to do and where to handle the validation?

Initial Ideas:

  • Just send a file as attachment and validate it in the webservices with a .xsd schema for the “fixed” and a .xsd schema for the “container” part. If the variable part changes only the “container” .xsd for validation has to change. The container can be base64 encoded xml. If a validation error occurs, the webservice responds with an error.

  • Use all standard items as WSD parameters and pass a base64 encoded container. WS-* takes the validation for the standard parameters and only the container is validated against another .xsd.

No logical/semantic evaluation of the values, that should be done later. Only field-type validation needed.

The container should be xml like:

 ... standard elements xml ...
 <embeddedContainer>
  <customItemsFromWSClientOne>
   <reallyCustomItemA>
    <substructure>
     <itemABC></itemABC>
   </substructure>
   <anotherStructure></anotherStructure>
   </reallyCustomItemA>
 </customItemsFromWSClientOne>
</embeddedContainer>
... standard elements xml ...

Another Client may send other parameters like ‘customItemsFromWSClientTwo’ with a complete different structure. So the service will become very generic.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T21:07:46+00:00Added an answer on June 7, 2026 at 9:07 pm

    There are 2 main types of validations:

    1. field type validation – make sure that the values sent are of the correct type and formation (i.e. check that the field userName contains a string, or id contains a number etc.), this is taken care of by the webservice parser/FW. So if the user sent the wrong type the parser would throw an error.
    2. Logical validation – run some business logic on the actual values:

      if(value==null){//do something}
      else{//do something else}

    I’m not sure what validation you need, but from what i understand, the “container” should be very dynamic, so it’ll probably contain something like:

    <paramName>someParamName</paramName>
    <paramValue>someValue</paramValue>
     ...
    

    In that case an XSD validation won’t do you much good, you probably need to write some logic to figure it out.

    I might be completley wrong about the structure, if so please post some example so i can understand it better.

    EDIT:

    In order to enable the “container” to contain all kinds of XML structure, you’ll need to define it as xsd:any. you can define the processContents attribute to strict and if the right namespace is defined the webservice parser should be able to validate it. look here for more info.

    Another option might be using groups, look here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

**the next code should parse a data from a webService to textView; Problem :
I'm trying to create a secure webservice (that provides simple database data) with PHP
I have created an application where i am fetching some data from a webservice,which
How should I call this Soap Webservice from an android <AddCar xmlns=http://abcd.com/> <clsAddCarRequest> <clsCredentials>
I'm about to create a JavaScript-based client for a RESTful webservice. The client should
What protocol should I use to secure a webservice. I'm considering CHAP, but I
WCF Restful Webservice seems to be caching the LINQ data objects somehow. The webservice
Im not sure about what authentification method I should use for my webservice. I've
I'm currently in the process of creating a WCF webservice which should be compatible
I'm asked to set up a new webservice which should be easily usable in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.