| 
		
			| REST service does not respond [message #676645] | Wed, 26 June 2019 14:50  |  
			| 
				
				|  | Diego G. Messages: 8
 Registered: June 2017
 | Junior Member |  |  |  
	| I'm working a REST service at the URL http: // localhost: 8080 / tfi / scheme.WebTest with a "WebTest" procedure that only shows a "My webtest" message with htp.prn. Testing with Postman the url "http://10.1.2.151:8080/tfi/replica_corporate.WebTest" returns the following error: Could not get any response. 
 
 My configuracion del DAD y ACL es:
 -- DAD--
 BEGIN
 dbms_epg.create_dad(
 dad_name => 'ROAMING_DAD'
 , path => '/TrueFi/*');
 
 dbms_epg.authorize_dad(
 dad_name => 'ROAMING_DAD'
 , user => 'ANONYMOUS');
 
 dbms_epg.set_dad_attribute(
 dad_name => 'ROAMING_DAD'
 , attr_name => 'database-username'
 , attr_value => 'ANONYMOUS');
 END;
 
 --ACL--
 begin
 dbms_network_acl_admin.create_acl (
 acl             => 'utlpkg.xml',
 description     => 'Normal Access',
 principal       => 'CONNECT',
 is_grant        => TRUE,
 privilege       => 'connect',
 start_date      => null,
 end_date        => null
 );
 end;
 /
 begin
 dbms_network_acl_admin.add_privilege (
 acl         => 'utlpkg.xml',
 principal     => 'ANONYMOUS',
 is_grant     => TRUE,
 privilege     => 'connect',
 start_date     => null,
 end_date     => null);
 dbms_network_acl_admin.assign_acl (
 acl => 'utlpkg.xml',
 host => '127.0.0.1',
 lower_port => 7000,
 upper_port => 9200);
 end;
 /
 EXECUTE dbms_xdb.SETHTTPPORT(8080);
 grant execute on replica_corporate.webtestto public;
 grant execute on replica_corporate.webtestto anonymous;
 grant execute on utl_http to anonymous;
 grant execute on dbms_lock to anonymous;
 ALTER USER anonymous ACCOUNT UNLOCK;
 
 Some help.
 
 
 
 |  
	|  |  | 
	|  | 
	| 
		
			| Re: REST service does not respond [message #676650 is a reply to message #676647] | Thu, 27 June 2019 09:51   |  
			| 
				
				|  | Diego G. Messages: 8
 Registered: June 2017
 | Junior Member |  |  |  
	| Sorry, it was a writing mistake in the post. 
 The url used is "http://10.1.2.151:8080/TrueFi/replica_corporate.WebTest" and the result with "PostMan" is "Could not get any response".
 
 The ip 10.1.2.151 is within the local network
 
 
 My configuracion del DAD y ACL es:
-- DAD--
BEGIN
dbms_epg.create_dad(
dad_name => 'ROAMING_DAD'
, path => '/TrueFi/*');
dbms_epg.authorize_dad(
dad_name => 'ROAMING_DAD'
, user => 'ANONYMOUS');
dbms_epg.set_dad_attribute(
dad_name => 'ROAMING_DAD'
, attr_name => 'database-username'
, attr_value => 'ANONYMOUS');
END;
--ACL--
begin
dbms_network_acl_admin.create_acl (
acl => 'utlpkg.xml',
description => 'Normal Access',
principal => 'CONNECT',
is_grant => TRUE,
privilege => 'connect',
start_date => null,
end_date => null
);
end;
/
begin
dbms_network_acl_admin.add_privilege ( 
acl => 'utlpkg.xml',
principal => 'ANONYMOUS',
is_grant => TRUE, 
privilege => 'connect', 
start_date => null, 
end_date => null); 
dbms_network_acl_admin.assign_acl (
acl => 'utlpkg.xml',
host => '127.0.0.1',
lower_port => 7000,
upper_port => 9200);
end;
/
EXECUTE dbms_xdb.SETHTTPPORT(8080);
grant execute on replica_corporate.webtest to public;
grant execute on replica_corporate.webtest to anonymous;
grant execute on utl_http to anonymous;
grant execute on dbms_lock to anonymous;
ALTER USER anonymous ACCOUNT UNLOCK; [Updated on: Thu, 27 June 2019 09:57] Report message to a moderator |  
	|  |  | 
	|  | 
	|  | 
	|  | 
	|  |