<?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"
	>
<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>
	<pubDate>Tue, 07 Oct 2008 03:13:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Tim...</title>
		<link>http://www.oracle-base.com/blog/2008/03/27/native-oracle-xml-db-web-services/#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've raised an SR with Oracle support to see if there is an obvious solution. Once I get a response I'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-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('UsersRestlet');
  dbms_xdb.deleteServlet('UsersRestlet');
  dbms_xdb.addServlet(name=&#62;'UsersRestlet',language=&#62;'Java',class=&#62;'com.noelios.restlet.ext.xdb.XdbServerServlet',dispname=&#62;'Restlet Servlet',schema=&#62;'PUBLIC');
  -- Modify the configuration
  -- Due this servlet provide public access, it can not load 
  -- '/home/'&#124;&#124;USER&#124;&#124;'/restlet/UsersRestlet.xml' from XMLDB repository
  SELECT INSERTCHILDXML(xdburitype('/xdbconfig.xml').getXML(),'/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet[servlet-name="UsersRestlet"]','init-param',
  XMLType('
                  org.restlet.application
                  $sch:org.restlet.example.tutorial.Part12
                  REST User Application
           '),'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"') 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 =&#62; 'UsersRestlet',ROLENAME =&#62; 'PUBLIC',ROLELINK =&#62; 'PUBLIC');
  dbms_xdb.addServletMapping('/userapp/*','UsersRestlet');
  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(&#8217;UsersRestlet&#8217;);<br />
  dbms_xdb.deleteServlet(&#8217;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(&#8217;/xdbconfig.xml&#8217;).getXML(),&#8217;/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet[servlet-name="UsersRestlet"]&#8216;,&#8217;init-param&#8217;,<br />
  XMLType(&#8217;<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(&#8217;/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>
