Apache
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Apache

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 1st, 2008, 11:31 PM
pierre betz
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
anyType element again and again

Hi everybody,
I'm not the first who have this problem, and for now I never found any
solution to solve it Maybe here you will help me or just tell me that what
I want to do is impossible ?

I want to make a request which would look like that :

<soapenv:Body>

<com:Search>
<SearchParameters>
<Fragment>

<ConditionClause>

<Comparator</Comparator>
<FieldName</FieldName>
<Values</Values>

</ConditionClause>

</Fragment>

</SearchParameters>
</com:Search>

</soapenv:Body>


with the elements of the SearchParameters described like that :

<element name="ConditionClause" type="tns:SearchConditionClauseType"
="1" ="0" nillable="true"></element>



<complexType name="SearchConditionClauseType">

<sequence>
<element name="Comparator" type="string" nillable="true">
</element>
<element name="FieldName" type="string" nillable="true">
</element>
<element name="Values" type="anyType" ="unbounded"
nillable="true"</element>
</sequence>

</complexType>


In fact, I want to make a genereic Search function, where you put the name
of a field and the value it take in order to make the request, like :

A user as 3 fiels : 1 string : name, 1 boolean : IsActive (or not) and
1 Informations let's say complex type , which contain lot of
informations.

I would like to make a request to search a user by name, IsActive or by
Informations
So, the field name will be everytime a string, which will be the name of the
User field (name, IsActive or Informations)

But, the Values parameter will be a different type if I want to search a
user by name, or search the Active Users or Search by Informations
et caetera.

In this way, I've put a type="anyType" for the element "Values"

But this is not working. when I try my request, the answer from axis is :

Any type element type has not
been given


is there a problem in my way of building the request ?
I use SoapUi for my tests, and I sent a request like :

<soapenv:Body>

<com:Search>
<SearchParameters>
<Fragment>
<!>
<ConditionClause>

<Comparator>Equal</Comparator>

<FieldName>Name</FieldName>

<! or more repetitions:

<Values>Peter Parker</Values>
</ConditionClause>

</Fragment>

</SearchParameters>
</com:Search>

</soapenv:Body>





And this is not working I really don't know how to do to make it work.


any ideas ?

Reply With Quote
  #2  
Old July 3rd, 2008, 09:51 PM
pierre betz
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
anyType element again and again

So, any ideas ? I tried some other ways, but I still really need to make a
request which can send differents type of elements when I call it
still blocked

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Apache > anyType element again and again


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway