<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Why only a single nested WsQuery per Entity?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Why only a single nested WsQuery per Entity?</description>
  <pubDate>Tue, 14 Apr 2026 04:29:36 -700</pubDate>
  <lastBuildDate>Mon, 16 Jul 2007 14:30:15 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=291</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Why only a single nested WsQuery per Entity? : The problem is due to a known...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=291&amp;PID=647#647</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 291<br /><strong>Posted:</strong> 16-Jul-2007 at 2:30pm<br /><br /><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">The problem is due to a known limitation. &nbsp;We allow for only a single WsQuery nested class to be created within an Entity class, so the first checked method will be the only method created. &nbsp;The use of only a single nested WsQuery per Entity was intentional, and follows our implementation of stored procedure backed entities. &nbsp;The good news is that these nested classes are really just helper classes defined to make constructing a WsQuery easier, and are not required to be used. <?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">There are a couple workarounds to look at:<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">1) Since the *DataRow classes are partial, you can write your own additional WsQueryX nested class, using the existing class as a template so that you only need to change the parameter and execute information.&nbsp; You don’t need to make the class nested if you prefer not to, since the nesting is just a convenience not a requirement.<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">2) Call the base IdeaBlade.Persistence.WS.WsQuery class directly. &nbsp;Here again you can consult an existing nested class to see how it constructs the base WsQuery. &nbsp;Getting the constructor right is the primary difficulty here.&nbsp; You’ll want to use either:<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="TEXT-INDENT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">public WsQuery(String pServiceName, String pMethodName, Type pEntityType, WsProxyType pProxyType) or<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="TEXT-INDENT: 0.5in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">public WsQuery(Type pClientProxyType, String pMethodName, Type pEntityType) &nbsp;- preferred<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>]]>
   </description>
   <pubDate>Mon, 16 Jul 2007 14:30:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=291&amp;PID=647#647</guid>
  </item> 
  <item>
   <title>Why only a single nested WsQuery per Entity? : My question is with the ObjectMapper...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=291&amp;PID=646#646</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=20" rel="nofollow">Customer</a><br /><strong>Subject:</strong> 291<br /><strong>Posted:</strong> 16-Jul-2007 at 2:29pm<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">My question is with the ObjectMapper tool mapped to a WSDL file (WebService).</SPAN><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Let's say forexample that&nbsp;we have an OrderService with methods:</SPAN><o:p></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">find</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">Orders</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">ByCustomer(FindByCustomerRequest)</SPAN><o:p></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">find</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">Orders</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">BySalesRepresentative(FindBySalesRepresentativeRequest)</SPAN><o:p></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">find</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: Arial">Customer</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">ByOrder(FindByOrderRequest)</SPAN><o:p></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">With the&nbsp;"Add Unmapped Web Service Methods" tool I can select all methods, but only 1 method is allowed for each "Base" entity at the time?</SPAN><o:p></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">That is, the tool generates</SPAN><o:p></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">the Orders class&nbsp;has a WsQuery with a constructor for FindByCustomerRequest</SPAN><o:p></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">the Customer class&nbsp;has&nbsp;a WsQuery with a constructor for FindByOrderRequest</SPAN><o:p></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">I would expect the&nbsp;Orders class&nbsp;to also&nbsp;have a WsQuery&nbsp;for the second findOrdersBySalesRepresentative method. It seems that the tool always selects the FIRST checked method in the list, then discards all other selected methods with the&nbsp;equal return value.</SPAN><o:p></o:p></P>]]>
   </description>
   <pubDate>Mon, 16 Jul 2007 14:29:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=291&amp;PID=646#646</guid>
  </item> 
 </channel>
</rss>