Thursday, March 22, 2007

How to publish the specific folder through API command?

API>apply,c,null,HTTP_POST,APP_SERVER_NAME,S,WebCache,SAVE_RESPONSE,I,-1,LAUNCH_ASYNC,B,F,TRACE_LAUNCH,B,T,TIME_OUT,I,120,ARGUMENTS,S,-docbase_name INTRANET -config_object_id [r_object_id of the specific scs configuration] -method_trace_level 10 -source_object_id [r_object_id of the specific folder]
...
q1



*********** Acquire the object ***************
API>next,c,q1
...
OK

*********** if result is 0, then Success ***************
API>dump,c,q1
...
USER ATTRIBUTES

result : 0
http_response_status : HTTP/1.1 200 OK
request_failed : F
response_doc_id : 0000000000000000
time_taken : 33
timed_out : F
time_out_length : 120
SYSTEM ATTRIBUTES
APPLICATION ATTRIBUTES
INTERNAL ATTRIBUTES



*********** if result is -1, then Failure ***************
API>dump,c,q1
...
USER ATTRIBUTES

result : -1
http_response_status :
request_failed : F
response_doc_id : 09015a2d80043b36
time_taken : 120
timed_out : T
time_out_length : 120
SYSTEM ATTRIBUTES
APPLICATION ATTRIBUTES
INTERNAL ATTRIBUTES

1 comment:

janu said...

Hi Srinivasan,
When I run the same script, I'm getting below error.

apply,c,null,HTTP_POST,APP_SERVER_NAME,S,WebCache,SAVE_RESPONSE,I,-1,LAUNCH_ASYNC,B,F,TRACE_LAUNCH,B,T,TIME_OUT,I,120,ARGUMENTS,S,-docbase_name -config_object_id <08.....ab> -method_trace_level 10 -source_object_id <09.....>
Error:
...
Error processing command:java.lang.IllegalArgumentException: Invalid object identifer specified: null

***Script Aborted due to error***


Could you please help me to resolve the issue.

Thanks.