I was unable to export a composite from the em console, so though of doing it through wlst.
wls:/offline> sca_exportComposite('http://host:7001','none', '/tmp/sca_TestWS.jar', 'TestWS', '1.0',partition='test')
Traceback (innermost last):
File "<console>", line 1, in ?
NameError: sca_exportComposite
wls:/offline>
We tried using the wlst within Oracle_common and weblogic home.But finally realized that as per Doc ID 1484174.1 it has to be from SOA Oracle Home.
http://docs.oracle.com/cd/E12839_01/core.1111/e10105/getstart.htm#ASADM10692
Then again we need to give SOA managed server port and not the admin port.
wls:/offline> sca_exportComposite('http://host:7011','none', '/tmp/sca_TestWS.jar', 'TestWS', '1.0', partition='test')
serverURL = http://host:7011
sarFile = /tmp/sca_TestWS.jar
partition= test
compositeName = TestWS
revision = 1.0
user = None
compositeDN = test/TestWS!1.0
INFO: Creating HTTP connection to host:host, port:7011
Enter username and password for realm 'default' on host host:7011
Authentication Scheme: Basic
Username: ohsadmin
Password:
INFO: Received HTTP response from the server, response code=200
Write response into file:/tmp/sca_TestWS.jar
---->Export composite success.
wls:/offline>
wls:/offline> sca_exportComposite('http://host:7001','none', '/tmp/sca_TestWS.jar', 'TestWS', '1.0',partition='test')
Traceback (innermost last):
File "<console>", line 1, in ?
NameError: sca_exportComposite
wls:/offline>
We tried using the wlst within Oracle_common and weblogic home.But finally realized that as per Doc ID 1484174.1 it has to be from SOA Oracle Home.
http://docs.oracle.com/cd/E12839_01/core.1111/e10105/getstart.htm#ASADM10692
Then again we need to give SOA managed server port and not the admin port.
wls:/offline> sca_exportComposite('http://host:7011','none', '/tmp/sca_TestWS.jar', 'TestWS', '1.0', partition='test')
serverURL = http://host:7011
sarFile = /tmp/sca_TestWS.jar
partition= test
compositeName = TestWS
revision = 1.0
user = None
compositeDN = test/TestWS!1.0
INFO: Creating HTTP connection to host:host, port:7011
Enter username and password for realm 'default' on host host:7011
Authentication Scheme: Basic
Username: ohsadmin
Password:
INFO: Received HTTP response from the server, response code=200
Write response into file:/tmp/sca_TestWS.jar
---->Export composite success.
wls:/offline>
No comments:
Post a Comment