<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Native Oracle XML DB Web Services&#8230;</title>
	<atom:link href="http://www.oracle-base.com/blog/2008/03/27/native-oracle-xml-db-web-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oracle-base.com/blog/2008/03/27/native-oracle-xml-db-web-services/</link>
	<description>Oracle related rants (and lots of off-topic stuff)...</description>
	<lastBuildDate>Sat, 11 Feb 2012 20:21:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tim...</title>
		<link>http://www.oracle-base.com/blog/2008/03/27/native-oracle-xml-db-web-services/comment-page-1/#comment-88171</link>
		<dc:creator>Tim...</dc:creator>
		<pubDate>Fri, 28 Mar 2008 08:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.oracle-base.com/blog/2008/03/27/native-oracle-xml-db-web-services/#comment-88171</guid>
		<description>Hi.

Thanks for the info. I&#039;ve raised an SR with Oracle support to see if there is an obvious solution. Once I get a response I&#039;ll amend the article.

Cheers

Tim...</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>Thanks for the info. I&#8217;ve raised an SR with Oracle support to see if there is an obvious solution. Once I get a response I&#8217;ll amend the article.</p>
<p>Cheers</p>
<p>Tim&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcelo F. Ochoa</title>
		<link>http://www.oracle-base.com/blog/2008/03/27/native-oracle-xml-db-web-services/comment-page-1/#comment-88129</link>
		<dc:creator>Marcelo F. Ochoa</dc:creator>
		<pubDate>Thu, 27 Mar 2008 23:49:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.oracle-base.com/blog/2008/03/27/native-oracle-xml-db-web-services/#comment-88129</guid>
		<description>Hi Tim:
  I am trying to do the same to compare Native WS against REST WS inside the Oracle JVM.
http://marceloochoa.blogspot.com/2008/02/is-oracle-11g-rest-ready.html
  I have successful configured REST WS to accept anonymous access doing this:

rem UserService test
rem http://localhost:8080/userapp/users/scott/orders/300
DECLARE
  configxml SYS.XMLType;
begin
  dbms_xdb.deleteServletMapping(&#039;UsersRestlet&#039;);
  dbms_xdb.deleteServlet(&#039;UsersRestlet&#039;);
  dbms_xdb.addServlet(name=&gt;&#039;UsersRestlet&#039;,language=&gt;&#039;Java&#039;,class=&gt;&#039;com.noelios.restlet.ext.xdb.XdbServerServlet&#039;,dispname=&gt;&#039;Restlet Servlet&#039;,schema=&gt;&#039;PUBLIC&#039;);
  -- Modify the configuration
  -- Due this servlet provide public access, it can not load 
  -- &#039;/home/&#039;&#124;&#124;USER&#124;&#124;&#039;/restlet/UsersRestlet.xml&#039; from XMLDB repository
  SELECT INSERTCHILDXML(xdburitype(&#039;/xdbconfig.xml&#039;).getXML(),&#039;/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet[servlet-name=&quot;UsersRestlet&quot;]&#039;,&#039;init-param&#039;,
  XMLType(&#039;
                  org.restlet.application
                  $sch:org.restlet.example.tutorial.Part12
                  REST User Application
           &#039;),&#039;xmlns=&quot;http://xmlns.oracle.com/xdb/xdbconfig.xsd&quot;&#039;) INTO configxml
  FROM DUAL;
  -- Update the configuration to use the modified version
  --I got this error at this line :
  dbms_xdb.cfg_update(configxml);
  dbms_xdb.addServletSecRole(SERVNAME =&gt; &#039;UsersRestlet&#039;,ROLENAME =&gt; &#039;PUBLIC&#039;,ROLELINK =&gt; &#039;PUBLIC&#039;);
  dbms_xdb.addServletMapping(&#039;/userapp/*&#039;,&#039;UsersRestlet&#039;);
  commit;
end;
/
commit;

  But Java Servlet have a ROLENAME and ROLELINK attributes to be changed to PUBLIC. Native WS is in C and may be has no this possibility.
  Best regards, Marcelo.</description>
		<content:encoded><![CDATA[<p>Hi Tim:<br />
  I am trying to do the same to compare Native WS against REST WS inside the Oracle JVM.<br />
<a href="http://marceloochoa.blogspot.com/2008/02/is-oracle-11g-rest-ready.html" rel="nofollow">http://marceloochoa.blogspot.com/2008/02/is-oracle-11g-rest-ready.html</a><br />
  I have successful configured REST WS to accept anonymous access doing this:</p>
<p>rem UserService test<br />
rem <a href="http://localhost:8080/userapp/users/scott/orders/300" rel="nofollow">http://localhost:8080/userapp/users/scott/orders/300</a><br />
DECLARE<br />
  configxml SYS.XMLType;<br />
begin<br />
  dbms_xdb.deleteServletMapping(&#8216;UsersRestlet&#8217;);<br />
  dbms_xdb.deleteServlet(&#8216;UsersRestlet&#8217;);<br />
  dbms_xdb.addServlet(name=&gt;&#8217;UsersRestlet&#8217;,language=&gt;&#8217;Java&#8217;,class=&gt;&#8217;com.noelios.restlet.ext.xdb.XdbServerServlet&#8217;,dispname=&gt;&#8217;Restlet Servlet&#8217;,schema=&gt;&#8217;PUBLIC&#8217;);<br />
  &#8212; Modify the configuration<br />
  &#8212; Due this servlet provide public access, it can not load<br />
  &#8212; &#8216;/home/&#8217;||USER||&#8217;/restlet/UsersRestlet.xml&#8217; from XMLDB repository<br />
  SELECT INSERTCHILDXML(xdburitype(&#8216;/xdbconfig.xml&#8217;).getXML(),&#8217;/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet[servlet-name="UsersRestlet"]&#8216;,&#8217;init-param&#8217;,<br />
  XMLType(&#8216;<br />
                  org.restlet.application<br />
                  $sch:org.restlet.example.tutorial.Part12<br />
                  REST User Application<br />
           &#8216;),&#8217;xmlns=&#8221;http://xmlns.oracle.com/xdb/xdbconfig.xsd&#8221;&#8216;) INTO configxml<br />
  FROM DUAL;<br />
  &#8212; Update the configuration to use the modified version<br />
  &#8211;I got this error at this line :<br />
  dbms_xdb.cfg_update(configxml);<br />
  dbms_xdb.addServletSecRole(SERVNAME =&gt; &#8216;UsersRestlet&#8217;,ROLENAME =&gt; &#8216;PUBLIC&#8217;,ROLELINK =&gt; &#8216;PUBLIC&#8217;);<br />
  dbms_xdb.addServletMapping(&#8216;/userapp/*&#8217;,'UsersRestlet&#8217;);<br />
  commit;<br />
end;<br />
/<br />
commit;</p>
<p>  But Java Servlet have a ROLENAME and ROLELINK attributes to be changed to PUBLIC. Native WS is in C and may be has no this possibility.<br />
  Best regards, Marcelo.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

