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

  • Home
  • SEARCH
  • 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 6917307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:42:50+00:00 2026-05-27T09:42:50+00:00

I have a soap request returning array of User objects. Now I want to

  • 0

I have a soap request returning array of User objects. Now I want to add filter parameters i it like userName like ‘har’ and/or numberOfLogins between 10 to 20. Based on this parameters I build a query and get results. But the problem is I’m not able to pass this dynamic number of filter parameters in SOAP request. How can I do this? I have tried taking Map to have filter name and value but it did not worked. Also tried Array but then I was not able to decide which I have to do filter on.


We are showing this kind of form in our site. In which all fields are optional so user can enter values in either all or some of them. I want to get the values user has entered in the form for only those fields which are filled with values and do not want other parameters in request. So here n*umber of parameters are not fixed*. So without knowing the number of parameters I am not able to decide the method parameters to take for such a case. Which kind of argument should I take for this. I can not take array of strings in arguments as I also need to know the name of the field (in which user has entered value) with it’s value. I have tried taking Map as an argument but did not work.

  • 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-05-27T09:42:50+00:00Added an answer on May 27, 2026 at 9:42 am

    I think what you need is a way to describe the query to filter the User objects.

    You will have to create a custom type for this and inside it define the rules:

    <xs:complexType name="query">
      <xs:sequence>
        .... equals rule ....
        .... between rule ....
        ....
      </xs:sequence>
    </xs:complexType>
    

    You will need the name of the field, the value/values for the field as well as the operation that applies for it (username <equals> something, number of logins <between> something and something else etc).

    So a request will look something like this:

    <query>
      <equals>
        <field>username</field>
        <value>John Doe</value>
      </equals>
      ....
      <between>
        <field>logins</field>
        <startValue>10</startValue>
        <endValue>20</endValue>
      </between>
    </query>
    

    From what you are describing, the simple case is to “AND” all those conditions to get your filter. But additionally you could have “OR” combinations, “NOT” etc.

    The tricky part will be to define the XML schema for this type (to do a proper validation of the input). If that’s a hassle, you could have a query tag with any element or any type in it, although I strongly suggest against it.

    Have a look at the Query schema of Collaborative Application Markup Language (CAML) for an inspiration. Hope this helps!

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

Sidebar

Related Questions

I have a SOAP request that is known to work using a tool like,
We have a wrapper around a suds (SOAP) request, that we use like this
I would like to make a SOAP request with complex types... I have two
Ok I have to parse out a SOAP request and in the request some
I am trying to use Java based webservice and have soap request: <?xml version=1.0?>
I have a SOAP request of this form: <soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ xmlns:myqname=http://example.com/hello xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance> <soapenv:Header/> <soapenv:Body>
I have the following Soap Request I receive from the client, where basically I
I need to create SOAP request like this: <soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ xmlns:stor=http://storage.xdoc.xx/> <soapenv:Header/> <soapenv:Body> <stor:createDocument>
I have an applet that makes a SOAP request to a web service. It
I have the following Ajax call: function ajaxCall(soap, url){ // Post SOAP request. $.ajax({

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.