PL/SQL against the SOAP WS?
I'm wondering if anyone has come up with a simple sample for calling the SOAP web services on Beehive 2.0.1.5 from pl/sql code inside of a remote database? I'm fairly new to coding for web services, but I've been tasked with taking the emails sent to a specific email address and storing those messages and any attachments inside a table in our Oracle database. I'm getting overwhelmed with the different ways of calling a webservice from the database and really need some help.
Any newbie documentation that someone's blogged about would be greatly appreciated.
Thanks,
Maynard
Thank you for your reply. But as I mentioned, I'm dealing with
Oracle 8.1.7.4 and I need methods to parse a SOAP-XML-String
with PL/SQL (not know anything about Java) and to extract the
namespace for searching the XML-content via XPath.
Consider this:
<env:Envelope xmlns:env="http://www.w3.org/2001/06/soap-envelope">
<env:BODY env:encodingStyle="http://www.w3.org/2001/06/soap-encoding">
<xfs:INFO xmlns:xfs:="http://www.riskshield.com/xfs/INFO">
<xfs:LOGIC>
<xfs:REVISION>
<xfs:INPUTS>
<xfs:NAME>sp1</xfs:NAME>
<xfs:NAME>Sp2</xfs:NAME>
</xfs:INPUTS>
<xfs:OUTPUTS>
<xfs:NAME>Note_1</xfs:NAME>
</xfs:OUTPUTS>
</xfs:REVISION>
</xfs:LOGIC>
</xfs:INFO>
</env:Body>
</env:Envelope>
When I want to search for the "INPUTS/NAME"-Nodes with
DOMNodeList := XSLProcessor.SelectNodes
(DOMNode,'/xfs:INFO/xfs:LOGIC/xfs:REVISION/xfs:INPUTS/xfs:NAME/text()');
...then I get this error:
ORA-20100: Error occurred while processing: Namespace prefix 'xfs' used but
not declared.
because XMLDOM.GetNamespace(DOMElement) finds only the namespace "env".
So how to find a second namespace?
Markus
Similar Messages
-
Run SQL against Pointbase server
After creating a new domain from domain template, I was asked to run a sql against the pointbase database ..
I noticed the startPointBaseConsole.cmd does not start the database itself. Do you know how to start the pointbase in WLP10GR3??
Thanks,Shouldnt need to as far as I remember for pointbase.
In any case, if you open startWeblogic.cmd you should get the command to start up pointase
In 10.2
call "%WL_HOME%\common\bin\startPointBase.cmd" -port=%POINTBASE_PORT% -debug=%PB_DEBUG_LEVEL% -console=false -background=true -ini=%DOMAIN_HOME%\pointbase.ini >"%DOMAIN_HOME%\pointbase.log" 2>&1
which should be same in 10.3 but I havent verified that -
SQL Tuning Advisor against the session (is it poosible)
My Company customer has observed that there is job that are running longer than expected running(5 days).
They did not gave any information.they want me to run
SQL Tuning Advisor against the session running this job.
can you run sql tunning advisor against running session?
if so how
Please suggest me your valuable tips so that I approach this work properly.
DB = 11g
OS= Solaris 10>
...SQL Tuning Advisor against the session running this job.
can you run sql tunning advisor against running session?
>
SQL Tuning Advisor is run on statements and not sessions. I don't do much with SQL Tuning Advisor, but I'd consider that current running sessions a lost cause until it completes or you kill it. You can see the "estimate" of how long that current running SQL is going to take in v$session_longops. You can use a script like Tanel's sw.sql
http://blog.tanelpoder.com/2008/01/08/updated-session-wait-script/
to see what the wait interface has to say.
>
Please suggest me your valuable tips so that I approach this work properly.
>
My approach for this would be to determine what the current explain plan is and compare it to one that ran (correctly) in the past and then try to determine why it changed. (bad stats, dropped index, parameter changes, etc).
Cheers. -
How do I code PL/SQL using files instead of directly against the database
Hi All,
My current project, like pretty much all I've every worked on, requires all developers of pl/sql routines to code those routines in source controlled files. We then edit the files (normally using TOAD - trying to move to SQL Developer) compile them against the DB, fix the errors, test etc.
I've been trying to do the same in SQL Developer (1.2 and 1.5EA) and it appears as though I can't get the tool to understand my .pks and .pkb files are packages - and thus when I compile them I will receive a "compiler" window containing the errors. It appears to simply run the code as a script returning me:
Warning: execution completed with warning
PACKAGE BODY XYZ Compiled.
This is not the same behavior I receive when I edit objects directly in the database (something I never do).
I hope I'm not missing something obvious.
Thanks in advance.Your latest EA fixed this, at least for subversion and cvs, hooray! and I'm quite happy with it.
But I think our posters need a quick how-to for subversion:
* the latest EA has subversion and cvs installed
* open VIEW menu->Versioning Navigator
* create your SVN repository in Versioning Navigator, that will establish all of the authentication stuff for your later work
* use VIEW menu->Files and navigate to your subversion working checkout directory.
The File navigator will become your main work zone, if you're anything like me.
for unconventional file suffixes:
* open TOOLS menu->Preferences
* click the File Types topic
* click "Add.." to add the file name extension
* it won't let you specify content type in the little "add" dialog; just click OK
* when you return to the main Preferences screen for file types, your new type will be selected, and below there is a content type drop-down under "Details for type .blahblah"
* choose SQL Script as the type for your new file type, and click OK to commit the changes
* I find "SQL Script" much easier to work with than PlSqlNode, which seems to suppress the file handling and versioning features
Good luck!
-- Andrew Wolfe -
Get est time for sql without running against the db ??? possible ?
hello,
is there anyways to get a query execution time without running that against the database ?? even an estimate would be good...i am on 10.2.0.3 ......i am it might be impossible for it...but anyways to get estimate besides setting autotrace only ?? as i said want nothing but just like a estimate time for how long will it take to finish the query...i know we can very long_ops view but as i said..without running against the DB ...is that possible ?? as the explain plan i get shows time ?? but is that how long it will take to finish up or ?/
select * from table(dbms_xplan.display);
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 56 | 3192 | 9 (0)| 00:00:01 |
| 1 | MERGE JOIN CARTESIAN| | 56 | 3192 | 9 (0)| 00:00:01 |
| 2 | TABLE ACCESS FULL | DEPT | 4 | 80 | 3 (0)| 00:00:01 |
| 3 | BUFFER SORT | | 14 | 518 | 6 (0)| 00:00:01 |
| 4 | TABLE ACCESS FULL | EMP | 14 | 518 | 2 (0)| 00:00:01 |
-----------------------------------------------------------------------------user11168115 wrote:
hello,
is there anyways to get a query execution time without running that against the database ?? <snip>
How long is a string?
How deep is a hole?
How long does it take to read an unknown number of blocks containing an unknown number of rows from an unknown disk system with an unknown contention load, pulling it across an network of unknown bandwidth and unknown load ....
And I'm not saying that if you somehow provide all this that the answer can be known. I'm saying the too much of the information tht would be needed to make such an estimate is unknowable. Much of it will be widely variable from one execution of the query to the next execution of the exact same query. Which leaves you with exactly what to base your estimate on?
Without even seeing your query, I can tell you with absolute certainty that it will take between 1 nano-second and 100 years to execute. -
Help me to fix the error while running DBMaintain Against the Database Schema in ASE.
Hi All,
I am trying to install sybase mobiliser platform 5.1 SP 03.I am referring the following guide
http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01871.0513/pdf/Mobiliser_Platform_Installation_Guide_5.1…
Now I have configured the ASE database server with default settings and now it is running fine.
Now my concerns are as follows:
1) I have executed the database schema (mobr5): 001_MONEY_drop_and_create_user.DDL with the help of linux command
isql -Usa -SASE1 -Phello@123 -i/opt/sybase/db/sql/001_MONEY_drop_and_create_user.DDL -o/opt/sybase/ASE-15_0/install/ASE1.log
How do I check the created database schema and user with default name 'mobr5'?
2) While running DBMaintain Against the Database Schema, I have followed the steps mentioned in the guide and made the following changes in the file dbmaintain.properties.ase
database.driverClassName=com.sybase.jdbc4.jdbc.SybDriver
database.url=jdbc:sybase:Tds:ASE1:5000/mobr5
database.userName=mobr5
database.schemaNames=mobr5
database.password=paybox
#Must be set if the driver is not packaged inside the scriptarchive or is present on the classpath
#e.g. /path/to/driver.jar
#database.driverLocation=/path/to/jconnect.jar
database.driverLocation=/opt/sybase/db/sql/com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase.jar
database.driverLocation=/opt/sybase/db/sql/com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase-vanilla.jar
When I execute the script archives ,
java –jar /opt/sybase/db/sql/com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase-driverless.jar -c /opt/sybase/db/sql/dbmaintain.properties.ase
java –jar com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase-vanilla-driverless.jar -c dbmaintain.properties.ase
I get the following error:
So please help me to resolve the issues.Hi All,
Issue is resolved and database has been updated successfully..
Error was in database .url field of dbmaintain.properties.ase file.
I have changed the database.url field from database.url=jdbc:sybase:Tds:ASE1:5000/mobr5
to database.url=jdbc:sybase:Tds:<Private IP of Linux instance>:5000/mobr5
Note:- I am installing mobiliser platform on AWS cloud.So I have made use of Private IP address of AWS Linux instance. -
I keep running into the same error when trying to use the demo for web service development... im new to SOAP so if anyone could shed some light on it, id be wonderful... thanks in advance!
SQL> CREATE OR REPLACE PACKAGE demo_soap AS
2
3 /* A type to represent a SOAP RPC request */
4 TYPE request IS RECORD (
5 method VARCHAR2(256),
6 namespace VARCHAR2(256),
7 body VARCHAR2(32767));
8
9 /* A type to represent a SOAP RPC response */
10 TYPE response IS RECORD (
11 doc xmltype);
12
13 /*
14 * Create a new SOAP RPC request.
15 */
16 FUNCTION new_request(method IN VARCHAR2,
17 namespace IN VARCHAR2)
18 RETURN request;
19
20 /*
21 * Add a simple parameter to the SOAP RPC request.
22 */
23 PROCEDURE add_parameter(req IN OUT NOCOPY request,
24 name IN VARCHAR2,
25 type IN VARCHAR2,
26 value IN VARCHAR2);
27
28 /*
29 * Make the SOAP RPC call.
30 */
31 FUNCTION invoke(req IN OUT NOCOPY request,
32 url IN VARCHAR2,
33 action IN VARCHAR2) RETURN response;
34
35 /*
36 * Retrieve the sipmle return value of the SOAP RPC call.
37 */
38 FUNCTION get_return_value(resp IN OUT NOCOPY response,
39 name IN VARCHAR2,
40 namespace IN VARCHAR2) RETURN VARCHAR2;
41
42 END;
43 /
Package created.
SQL> ed
Wrote file afiedt.buf
1 CREATE OR REPLACE PACKAGE BODY demo_soap AS
2 FUNCTION new_request(method IN VARCHAR2,
3 namespace IN VARCHAR2)
4 RETURN request AS
5 req request;
6 BEGIN
7 req.method := method;
8 req.namespace := namespace;
9 RETURN req;
10 END;
11 PROCEDURE add_parameter(req IN OUT NOCOPY request,
12 name IN VARCHAR2,
13 type IN VARCHAR2,
14 value IN VARCHAR2) AS
15 BEGIN
16 req.body := req.body ||
17 '<'||name||' xsi:type="'||type||'">'||value||'</'||name||'>';
18 END;
19 PROCEDURE generate_envelope(req IN OUT NOCOPY request,
20 env IN OUT NOCOPY VARCHAR2) AS
21 BEGIN
22 env := '<SOAP-ENV:Envelope
23 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
24 xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
25 xmlns:xsd="http://www.w3.org/1999/XMLSchema">
26 <SOAP-ENV:Body><'||req.method||' '||req.namespace||'
27 SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'||
28 req.body||'</'||req.method||'></SOAP-ENV:Body></SOAP-ENV:Envelope>';
29 END;
30 PROCEDURE show_envelope(env IN VARCHAR2) AS
31 i pls_integer;
32 len pls_integer;
33 BEGIN
34 i := 1; len := length(env);
35 WHILE (i <= len) LOOP
36 dbms_output.put_line(substr(env, i, 60));
37 i := i + 60;
38 END LOOP;
39 END;
40 PROCEDURE check_fault(resp IN OUT NOCOPY response) AS
41 fault_node xmltype;
42 fault_code VARCHAR2(256);
43 fault_string VARCHAR2(32767);
44 BEGIN
45 fault_node := resp.doc.extract('/soap:Fault',
46 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/');
47 IF (fault_node IS NOT NULL) THEN
48 fault_code := fault_node.extract('/soap:Fault/faultcode/child::text()',
49 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/').getstringval();
50 fault_string := fault_node.extract('/soap:Fault/faultstring/child::text()',
51 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/').getstringval();
52 raise_application_error(-20000, fault_code || ' - ' || fault_string);
53 END IF;
54 END;
55 FUNCTION invoke(req IN OUT NOCOPY request,
56 url IN VARCHAR2,
57 action IN VARCHAR2) RETURN response AS
58 env VARCHAR2(32767);
59 http_req utl_http.req;
60 http_resp utl_http.resp;
61 resp response;
62 BEGIN
63 generate_envelope(req, env);
64 -- show_envelope(env);
65 http_req := utl_http.begin_request(url, 'POST','HTTP/1.0');
66 utl_http.set_header(http_req, 'Content-Type', 'text/xml');
67 utl_http.set_header(http_req, 'Content-Length', length(env));
68 utl_http.set_header(http_req, 'SOAPAction', action);
69 utl_http.write_text(http_req, env);
70 http_resp := utl_http.get_response(http_req);
71 utl_http.read_text(http_resp, env);
72 utl_http.end_response(http_resp);
73 resp.doc := xmltype.createxml(env);
74 resp.doc := resp.doc.extract('/soap:Envelope/soap:Body/child::node()',
75 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"');
76 -- show_envelope(resp.doc.getstringval());
77 check_fault(resp);
78 RETURN resp;
79 END;
80 FUNCTION get_return_value(resp IN OUT NOCOPY response,
81 name IN VARCHAR2,
82 namespace IN VARCHAR2) RETURN VARCHAR2 AS
83 BEGIN
84 RETURN resp.doc.extract('//'||name||'/child::text()',
85 namespace).getstringval();
86 END;
87* END;
88 /
Package body created.
SQL> CREATE OR REPLACE PACKAGE time_service AS
2 FUNCTION get_local_time(zipcode IN VARCHAR2) RETURN VARCHAR2;
3 END;
4 /
Package created.
SQL>
SQL> CREATE OR REPLACE PACKAGE BODY time_service AS
2
3 -- Location of Web service definition
4 -- http://www.alethea.net/webservices/LocalTime.asmx?WSDL
5
6 FUNCTION get_local_time(zipcode IN VARCHAR2) RETURN VARCHAR2 IS
7 req demo_soap.request;
8 resp demo_soap.response;
9 BEGIN
10 req := demo_soap.new_request('LocalTimeByZipCode',
11 'xmlns="http://www.alethea.net/webservices/"');
12 demo_soap.add_parameter(req, 'ZipCode', 'xsd:string', zipcode);
13 resp := demo_soap.invoke(req,
14 'http://www.alethea.net/webservices/LocalTime.asmx',
15 'http://www.alethea.net/webservices/LocalTimeByZipCode');
16 RETURN demo_soap.get_return_value(resp, 'LocalTimeByZipCodeResult',
17 'xmlns="http://www.alethea.net/webservices/"');
18 END;
19
20 BEGIN
21 /*
22 * Since the Web service resides outside of the firewall, we need to set
23 * the proxy in the current session before invoking the service.
24 */
25 utl_http.set_proxy('www-proxy', NULL);
26 utl_http.set_persistent_conn_support(TRUE);
27 END;
28 /
Package body created.
SQL> exec dbms_output.put_line(time_service.get_local_time('94065'));
BEGIN dbms_output.put_line(time_service.get_local_time('94065')); END;
ERROR at line 1:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1022
ORA-12545: Connect failed because target host or object does not exist
ORA-06512: at "LOANADMIN.DEMO_SOAP", line 65
ORA-06512: at "LOANADMIN.TIME_SERVICE", line 13
ORA-06512: at line 1I deleted the two lines of coding below:
utl_http.set_proxy('www-proxy', NULL);
utl_http.set_persistent_conn_support(TRUE);
and then I set the utl_http.set_persistent_conn_support() to False to get that error message. Seems like the website in question doesnt have the webservice anymore because the error has to do with the parsing of the WSDL file.... which probrably doesnt exist.
Im just trying to get a working example of using a third party webservice to return a value to be displayed in the database.... know of any good examples? The ones im using seem to be pretty out dated... the barnes and nobles example just times out.... -
Receive against the PO upon Docs Reviewed
Inbound delivery is created in SAP through the interface I14 (FSD ASN Creation) and quantity maintained as per the ASN document.
2. Delivery document table LIKP extended to capture the additional data that is transmitted by the freight forwarder, Document reviewed status also maintained in LIKP extension. This is a separate enhancement (E23).
3. Reviewer will check the inbound delivery document in VL32N.
4.After checking, the reviewer set the field XXXX status into u201CDocument reviewedu201D.
5. Save the inbound delivery document.
6. After saving the inbound delivery document, an output type will be triggered only if document reviewed field is set. The steps to do output type has been mentioned below
7. The enhancement will use the BAPI u201CBAPI_GOODSMVT_CREATEu201D to create goods receipt for each purchase order.
Steps for output type determination:
1. Go to transaction NACE , under Application area E1 for inbound delivery choose Access sequence. Define an access sequence.
2. Define condition record.
3. Create a new output type ZDLV as specified in the below screenshot. Enter a new Z program name. This program will be triggered on each save and needs to validate the 'Doc reviewed' status on the delivery.
4. In Processing routines change the value of the field 'Transmission medium' to '8 - Special function'. Specify the Z program and subroutine name here.
Within the Z program, use the BAPI BAPI_GOODSMVT_CREATE for each line item within the inbound delivery. GR need to be against the PO specified on the inbound delivery item details. PO no. to be taken from LIPS-VGBEL field.
Could any one throw highlight on this .. I want to know whether we need to include this bapi in print pgm when document reviw field is set..Pls any throw the desing approach on this ..
Moderator message: "spec dumping", please work yourself first on your requirement.
Edited by: Thomas Zloch on Nov 13, 2011 1:26 PMI have a custom subscription to that business event that should call a pl/sql package when that business event is raised.
However since the business event is not being raised, I am not able to call that pl/sql package -
Hi Gurus,
I have this problem in my MS SQL Server 2012 that is running in SQL Server 2008 R2 Enterprise 64 bit.. Not sure why... Here is the full details of the error:
Microsoft OLE DB Provider for ODBC Drivers 80040E14
[Microsoft][ODBC SQL Server Driver][SQL Server]The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.
/Libraries/DBA/DBA.asa, line 717
Line 717 is this:
rs.open destTableName,,,,adCmdTable
Full details of the code:
'Field object used to iterate through each field of the rs
dim rs, fld
'call dbInitRS(rs)
set rs = server.createobject("adodb.recordset")
'On Error Resume Next
'Open rs
set rs.activeConnection = myConnection
rs.cursorType = adOpenKeyset
rs.lockType = adLockOptimistic
'rs.open destTableName
rs.open destTableName,,,,adCmdTable
'if err.number <> 0 then
' goto HandleError
'end if
rs.addNew
Any ideas how to solve this problem?
ThanksStill does not work. I have allow MSDSTC in my firewall list.
Hi dudskie,
Have you try to use DTCTester or DTCPing to verify MSDTC functionality over the network? Please refer to the following article:
Troubleshooting Problems with MSDTC:
http://msdn.microsoft.com/en-us/library/aa561924.aspx
Use the DTCTester utility to verify transaction support between two computers if SQL Server is installed on one of the computers. The DTCTester utility uses ODBC to verify transaction support against a SQL Server database. For more information about
DTCTester see How to Use DTCTester Tool.
Use DTCPing to verify transaction support between two computers if SQL Server is not installed on either computer. The DTCPing tool must be run on both the client and server computer and is a good alternative to the DTCTester utility when SQL Server
is not installed on either computer. For more information about DTCPing, see
How to troubleshoot MS DTC firewall issues.
If you have any feedback on our support, please click
here.
Hope this helps.
Regards,
Elvis Long
TechNet Community Support -
Essbase Product Existence Check Fails against the Shared Services Server
Hello Everyone,
I am a new to Essbase
When I am launching the EAS web console and trying to log in, its giving me an error saying "Could not connect to Administration Server".
I looked in ESSBASE log file its showing an error 1051429 : "Essbase Product Existence Check Fails against the Shared Services Server with Error []"
This error actually started when I copied an Essbase Application from one of my computers to another computer. All I simply did is copied the application folder into "app" folder. I am not sure if migration
is possible just by copying and pasting the application folders. I am not sure if doing this messed up security with shared services. Also under c:\hyperion\essbase folder I see another text file named "SharedServices_Security_Client".
Its log for today is below:
2011-11-03 19:36:15,375 INFO [main] CSS is initialized as client. The default logger properties will be loaded com.hyperion.css.CSSSystem.<init>(Unknown Source)
2011-11-03 19:36:15,531 INFO [main] CSS Log file will be generated at C:\Hyperion\logs\essbase\SharedServices_Security_Client.log com.hyperion.css.CSSSystem.<init>(Unknown Source)
2011-11-03 19:36:15,531 INFO [main] Configure CSS with registry com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
2011-11-03 19:36:15,531 INFO [main] Initializing CSS from Registry. com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
2011-11-03 19:36:18,531 INFO [main] Trying to get Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
2011-11-03 19:36:45,531 ERROR [main] 20:1092:Failed to initialize EPM System registry. [Root Cause: hyperion.jdbc.base.BaseSQLException: [Hyperion][SQLServer JDBC Driver]Error establishing socket to host and port: chandan:1433. Reason: Connection refused: connect ] com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
2011-11-03 19:36:45,531 ERROR [main] Arguments: param1={}, param2=null, param3=C:\Hyperion\logs\essbase\, com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
2011-11-03 19:36:45,531 INFO [main] CSS system intialization failed. : [44156 ms] com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
2011-11-03 19:44:14,765 INFO [main] CSS is initialized as client. The default logger properties will be loaded com.hyperion.css.CSSSystem.<init>(Unknown Source)
2011-11-03 19:44:14,781 INFO [main] CSS Log file will be generated at C:\Hyperion\logs\essbase\SharedServices_Security_Client.log com.hyperion.css.CSSSystem.<init>(Unknown Source)
2011-11-03 19:44:14,781 INFO [main] Configure CSS with registry com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
2011-11-03 19:44:14,781 INFO [main] Initializing CSS from Registry. com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
2011-11-03 19:44:14,828 INFO [main] Trying to get Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
2011-11-03 19:44:16,265 INFO [main] Got Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
2011-11-03 19:44:16,796 INFO [main] Got hub location from Registry:http://chandan:28080 com.hyperion.css.registry.RegistryManager.getHubLocationFromRegistry(Unknown Source)
2011-11-03 19:44:16,953 INFO [main] Got native directory location from Registry:chandan:28089 com.hyperion.css.registry.RegistryManager.getNativeProviderLocationFromRegistry(Unknown Source)
2011-11-03 19:44:16,953 INFO [main] URL constructed out of values in Registry database:ldap://chandan:28089/dc=css,dc=hyperion,dc=com com.hyperion.css.common.configuration.CSSConfigurationImplXML.initConfiguration(Unknown Source)
2011-11-03 20:02:47,687 INFO [main] CSS is initialized as client. The default logger properties will be loaded com.hyperion.css.CSSSystem.<init>(Unknown Source)
2011-11-03 20:02:47,859 INFO [main] CSS Log file will be generated at C:\Hyperion\logs\essbase\SharedServices_Security_Client.log com.hyperion.css.CSSSystem.<init>(Unknown Source)
2011-11-03 20:02:47,859 INFO [main] Configure CSS with registry com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
2011-11-03 20:02:47,859 INFO [main] Initializing CSS from Registry. com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
2011-11-03 20:02:48,328 INFO [main] Trying to get Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
2011-11-03 20:03:08,921 ERROR [main] 20:1092:Failed to initialize EPM System registry. [Root Cause: hyperion.jdbc.base.BaseSQLException: [Hyperion][SQLServer JDBC Driver]Error establishing socket to host and port: chandan:1433. Reason: Connection refused: connect ] com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
2011-11-03 20:03:08,921 ERROR [main] Arguments: param1={}, param2=null, param3=C:\Hyperion\logs\essbase\, com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
2011-11-03 20:03:08,921 INFO [main] CSS system intialization failed. : [63140 ms] com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
2011-11-03 20:05:37,343 INFO [main] CSS is initialized as client. The default logger properties will be loaded com.hyperion.css.CSSSystem.<init>(Unknown Source)
2011-11-03 20:05:37,343 INFO [main] CSS Log file will be generated at C:\Hyperion\logs\essbase\SharedServices_Security_Client.log com.hyperion.css.CSSSystem.<init>(Unknown Source)
2011-11-03 20:05:37,343 INFO [main] Configure CSS with registry com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
2011-11-03 20:05:37,343 INFO [main] Initializing CSS from Registry. com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
2011-11-03 20:05:37,390 INFO [main] Trying to get Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
2011-11-03 20:05:49,875 ERROR [main] 20:1092:Failed to initialize EPM System registry. [Root Cause: hyperion.jdbc.base.BaseSQLException: [Hyperion][SQLServer JDBC Driver]Error establishing socket to host and port: chandan:1433. Reason: Connection refused: connect ] com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
2011-11-03 20:05:49,875 ERROR [main] Arguments: param1={}, param2=null, param3=C:\Hyperion\logs\essbase\, com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
2011-11-03 20:05:49,875 INFO [main] CSS system intialization failed. : [12625 ms] com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
2011-11-03 20:06:42,859 INFO [main] CSS is initialized as client. The default logger properties will be loaded com.hyperion.css.CSSSystem.<init>(Unknown Source)
2011-11-03 20:06:42,859 INFO [main] CSS Log file will be generated at C:\Hyperion\logs\essbase\SharedServices_Security_Client.log com.hyperion.css.CSSSystem.<init>(Unknown Source)
2011-11-03 20:06:42,859 INFO [main] Configure CSS with registry com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
2011-11-03 20:06:42,859 INFO [main] Initializing CSS from Registry. com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
2011-11-03 20:06:42,890 INFO [main] Trying to get Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
2011-11-03 20:06:45,359 INFO [main] Got Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
2011-11-03 20:06:47,218 INFO [main] Got hub location from Registry:http://chandan:28080 com.hyperion.css.registry.RegistryManager.getHubLocationFromRegistry(Unknown Source)
2011-11-03 20:06:48,250 INFO [main] Got native directory location from Registry:chandan:28089 com.hyperion.css.registry.RegistryManager.getNativeProviderLocationFromRegistry(Unknown Source)
2011-11-03 20:06:48,265 INFO [main] URL constructed out of values in Registry database:ldap://chandan:28089/dc=css,dc=hyperion,dc=com com.hyperion.css.common.configuration.CSSConfigurationImplXML.initConfiguration(Unknown Source)
2011-11-03 20:07:17,359 ERROR [main] 80:6007:Failed to load SAP certificate from keystore at SAP.keystore. Ignore if SAP provider is not configured.[Root Cause: Invalid keystore format ] com.hyperion.css.SAPSecurity.loadSAPCertificate(Unknown Source)
2011-11-03 20:10:12,937 INFO [main] CSS is initialized as client. The default logger properties will be loaded com.hyperion.css.CSSSystem.<init>(Unknown Source)
2011-11-03 20:10:12,937 INFO [main] CSS Log file will be generated at C:\Hyperion\logs\essbase\SharedServices_Security_Client.log com.hyperion.css.CSSSystem.<init>(Unknown Source)
2011-11-03 20:10:12,937 INFO [main] Configure CSS with registry com.hyperion.css.CSSSystem.initCSSSystem(Unknown Source)
2011-11-03 20:10:12,937 INFO [main] Initializing CSS from Registry. com.hyperion.css.common.configuration.CSSConfigurationManager.getConfiguration(Unknown Source)
2011-11-03 20:10:13,000 INFO [main] Trying to get Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
2011-11-03 20:10:14,265 INFO [main] Got Registry Instance com.hyperion.css.registry.RegistryManager.<init>(Unknown Source)
2011-11-03 20:10:14,671 INFO [main] Got hub location from Registry:http://chandan:28080 com.hyperion.css.registry.RegistryManager.getHubLocationFromRegistry(Unknown Source)
2011-11-03 20:10:14,812 INFO [main] Got native directory location from Registry:chandan:28089 com.hyperion.css.registry.RegistryManager.getNativeProviderLocationFromRegistry(Unknown Source)
2011-11-03 20:10:14,812 INFO [main] URL constructed out of values in Registry database:ldap://chandan:28089/dc=css,dc=hyperion,dc=com com.hyperion.css.common.configuration.CSSConfigurationImplXML.initConfiguration(Unknown Source)
2011-11-03 20:10:15,234 ERROR [main] 80:6007:Failed to load SAP certificate from keystore at SAP.keystore. Ignore if SAP provider is not configured.[Root Cause: Invalid keystore format ] com.hyperion.css.SAPSecurity.loadSAPCertificate(Unknown Source)
I dont know how to resolve this.
Please Help
Thank youFrom the log
Error establishing socket to host and port: chandan:1433. Reason: Connection refused: connect
The SQL server itself is not running or TCP/IP is disabled. That can be confirmed by runing netstat and see it is listed there.
Then run telnet chandan 1433 and see it can connect
To enable the TCP refer to this link
Re: error establishing socket to host and port: EPM11:1433 -
WSSE usename token not in the SOAP Header
Background:
Webservice with four methods; OpGet, OpCreate, OpGetList, OpSet. Setup a jcx with this webservice URL, generate a test harness from workshop, and running this test harness and looking at the SOAP messages being send and received to verify that the web services are working. The OpGet is working since it doesn't require user credentials. But the OpCreate is currently not working. Remedy is rejecting it because of access control.
Problem #1:
Need to pass the user credential in the SOAP header. Here's the required information in WSDL regarding Authentication.
<wsdl:operation name="OpCreate">
<soap:operation soapAction="urn:SimpleWebService/OpCreate" style="document"/>
<wsdl:input>
<soap:header message="s:ARAuthenticate" part="parameters" use="literal">
</soap:header>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
Solution that I have implemented so far:
I have setup a WSSE file with the simple username/password in the <wsSecurityOut> element and was expecting to see this in the SOAP Header element in the WSDL message. When I look at the SOAP message in the test harness that I have generated in Workshop, I don't see this credential information. I have set the "ws-security-service property to the wsse file. I know that the harness has seen the wsse file since it gives me warning about having the password in simple text without encryption.
Shouldn't I be seeing this userNameToken information in the SOAP Header when I run the test harness (jws) from workshop? As you can see below (Problem #2) no SOAP header is being generated.
Problem #2:
I see that in the SOAP message that test harness is sending wrong "xsi:type" information. It seems to be sending the "StatusType" for all the parameters except the one "Status" where it needs to?
SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns:OpCreate xmlns:ns="urn:SimpleWebService">
<ns:Assigned_To xsi:type="ns:StatusType">donnab</ns:Assigned_To>
<ns:Short_Description xsi:type="ns:StatusType">testing from weblogic 8.1 SP3 Workshop</ns:Short_Description>
<ns:Status>New</ns:Status>
<ns:Submitter xsi:type="ns:StatusType">donnab</ns:Submitter>
</ns:OpCreate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Here's the WSDL where the OpCreate is defined:
<xsd:element name="OpCreate" type="s:CreateInputMap"/>
<xsd:complexType name="CreateInputMap">
<xsd:sequence>
<xsd:element name="Assigned_To" type="xsd:string"/>
<xsd:element name="Short_Description" type="xsd:string"/>
<xsd:element name="Status" type="s:StatusType"/>
<xsd:element name="Submitter" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>I've never been able to see that information because I assume Weblogic server strips it out the minute it receives it and uses it to authenticate the user against a principal in the server.
You can get ahold of this info, though. In your .jws file, in workshop, add this as a context:
/** @common:context */
JwsContext context;
In your web services method, access the context to get the username:
context.getCallerPrincipal().getName();
That will return a String w/ the username passed in the username token.
-Becky -
Embedded SQL against Oracle Question
Software: Forte 3.0.J.
Server Platform: HPUX 10.2
Database: Oracle
Problem Description: During the course of development, I ran into a
problem using multiple columns in an sql UPDATE/SET statement. I was trying
to update a.COLUMN_1 and a.COLUMN_2, which constitute part of the primary
key of associative TABLE_A (a). In order for me to make the update, I
needed to use the existing value of a.COLUMN_1 to lookup the new b.COLUMN_1
in TABLE_B (b). Where a.COLUMN_1 = b.RELATED_COLUMN_1, I am able to find
each b.COLUMN_2 that correspond to each a.COLUMN_2.
I was able to resolve the issue by separating the two columns so
that each had it's own select statement. Theoretically, it appears that
this shouldn't work, because the SET statement for a.COLUMN_1 would cause
the a.COLUMN_1 reference in the select statement of a.COLUMN_2 to be
overwritten.
In spite of this, I tried it, and it worked. I would like to
understand why the sql works, and how sql actually executes the statement.
Here is the sql:
UPDATE TABLE_A a
SET a.COLUMN_1 =
(SELECT DISTINCT b1.COLUMN_1
FROM TABLE_B b1
WHERE b1.RELATED_CASE_ID =
a.COLUMN_1 AND
b1.RELATED_COLUMN_TYPE_CD = 'NEPHI'),
a.COLUMN_2=
(SELECT DISTINCT b2.COLUMN_2
FROM TABLE_B b2
WHERE b2.RELATED_COLUMN_1=
a.COLUMN_1 AND
b2.RELATED_COLUMN_TYPE_CD = 'NEPHI' AND
b2.RELATED_COLUMN_2= a.COLUMN_2)
WHERE a.COLUMN_1 = 100
The table structure is as follows:
TABLE_A: (primary keys are bolded) This is an associative table.
Column_1 and Column_2 comprise the pk of one table; Column_3 and Column_4
comprise the pk of another table. Assume that the Column_1 and Column_2
values replacing the original values already exist in the parent table of
which they form the pk).
COLUMN_1
COLUMN_2
COLUMN_3
COLUMN_4
COLUMN_5
TABLE_B: (primary keys are bolded) This is a reference table.
COLUMN_1
COLUMN_2
RELATED_COLUMN_1
RELATED_COLUMN_2
RELATED_COLUMN_TYPE_CD
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>If you do an explain plan or set autotrace on against this update statement,
you'll find that the select operations are actually executed first by Oracle
- I believe because of the nature of the transaction. Thus, no problem.
Brian Wilson
U.S. Bancorp Piper Jaffray
[email protected]
Phone (612) 342-5682
From: David Pettit[SMTP:[email protected]]
Reply To: David Pettit
Sent: Friday, April 30, 1999 1:58 PM
To: '[email protected]'
Subject: Embedded SQL against Oracle Question
Software: Forte 3.0.J.
Server Platform: HPUX 10.2
Database: Oracle
Problem Description: During the course of development, I ran into a
problem using multiple columns in an sql UPDATE/SET statement. I was
trying
to update a.COLUMN_1 and a.COLUMN_2, which constitute part of the primary
key of associative TABLE_A (a). In order for me to make the update, I
needed to use the existing value of a.COLUMN_1 to lookup the new
b.COLUMN_1
in TABLE_B (b). Where a.COLUMN_1 = b.RELATED_COLUMN_1, I am able to find
each b.COLUMN_2 that correspond to each a.COLUMN_2.
I was able to resolve the issue by separating the two columns so
that each had it's own select statement. Theoretically, it appears that
this shouldn't work, because the SET statement for a.COLUMN_1 would cause
the a.COLUMN_1 reference in the select statement of a.COLUMN_2 to be
overwritten.
In spite of this, I tried it, and it worked. I would like to
understand why the sql works, and how sql actually executes the statement.
Here is the sql:
UPDATE TABLE_A a
SET a.COLUMN_1 =
(SELECT DISTINCT b1.COLUMN_1
FROM TABLE_B b1
WHERE b1.RELATED_CASE_ID =
a.COLUMN_1 AND
b1.RELATED_COLUMN_TYPE_CD = 'NEPHI'),
a.COLUMN_2=
(SELECT DISTINCT b2.COLUMN_2
FROM TABLE_B b2
WHERE b2.RELATED_COLUMN_1=
a.COLUMN_1 AND
b2.RELATED_COLUMN_TYPE_CD = 'NEPHI' AND
b2.RELATED_COLUMN_2= a.COLUMN_2)
WHERE a.COLUMN_1 = 100
The table structure is as follows:
TABLE_A: (primary keys are bolded) This is an associative table.
Column_1 and Column_2 comprise the pk of one table; Column_3 and Column_4
comprise the pk of another table. Assume that the Column_1 and Column_2
values replacing the original values already exist in the parent table of
which they form the pk).
COLUMN_1
COLUMN_2
COLUMN_3
COLUMN_4
COLUMN_5
TABLE_B: (primary keys are bolded) This is a reference table.
COLUMN_1
COLUMN_2
RELATED_COLUMN_1
RELATED_COLUMN_2
RELATED_COLUMN_TYPE_CD
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
Nondeposit investment products are not insured by the FDIC, are
not deposits or other obligations of or guaranteed by U.S. Bank
National Association or its affiliates, and involve investment
risks, including possible loss of the principal amount invested.
Past performance does not guarantee future results. We consider
our sources reliable. Accuracy and completeness are not guaranteed.
Information is subject to change. Transactional details should not
be relied on for tax purposes and do not supersede normal trade
confirmations or statements. Messaging outside U.S. jurisdictions
from U.S. Bancorp Piper Jaffray to non-institutional parties is not
intended for solicitation purposes.
Electronic mail sent through the Internet is not secure. We will
not accept time-sensitive, action-oriented messages, transaction
orders, fund transfer instructions or check stop payments
electronically.
If you are not the intended recipient, notify the Sender. This
information is intended only for the person named above and for
the purposes indicated. Do not distribute this message without
written consent of the author. Non-business opinions may not
reflect opinions of U.S. Bancorp Piper Jaffray and its affiliates.
U.S. Bancorp Piper Jaffray and its affiliates reserve the right to
monitor all e-mail.
Securities products and services are offered through
U.S. Bancorp Piper Jaffray Inc., member SIPC and NYSE, Inc.,
a subsidiary of U.S. Bancorp.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
The query against the database caused an error in https: site
Hi
I have created a new Data source and External content type in sharePoint 2013
I have also given all the permission to this Content type (including "Users(Windows)")
I also having edit permission in the Sql-database.
I have tied almost all the possibilities given in the net for this error.
still the error("the query against the database caused an error") is there.
Is this because of "https:/ " in the url?
Can any one give a suggestion / solution for this?
Thanks
S H A J A NHi,
Can you please check ULS Log as well as event viewer, to see if there's any related error reported?
Thanks,
Sohel Rana
http://ranaictiu-technicalblog.blogspot.com -
Microsoft SQL 2005 WebServices - SOAP Result Parsing
Hello,
I have successfully connected to, sent a request and
retrieved a SOAP response from, the WebServices functionality
(ENDPOINT) using MS-SQL 2005. What I need to know how to do is
parse the SOAP response in FLEX as to access the actual data for
use in the application.
How do I extract only the node that contains the data and
then use this for binding my controls? I don't need any of the SOAP
header stuff in there. Of course I could loop through the
xyz.lastResult and parse onyl the parts I need to a new XML object,
but that seems a lot of processing for something that is almost
there.
Any help would be appreciated.
Salquote:
Originally posted by:
TN_SGIA
Hello,
I have successfully connected to, sent a request and
retrieved a SOAP response from, the WebServices functionality
(ENDPOINT) using MS-SQL 2005. What I need to know how to do is
parse the SOAP response in FLEX as to access the actual data for
use in the application.
Can you share the code to do that with me? I'm not good a
SOAP requests, and this would be an excelent contribution to my
project. Thank you. -
Analytical Services Application Existence Check Fails against the SSH
Hi guys,
We have a problem in Essbase 9.3.0.1. Some time, when we try to start the Essbase Server, is not possible to complete the startup sequence with the following error in Essbase.log:
[Fri Jan 23 01:38:54 2009]Local/ESSBASE0///Error(1051417)
Analytical Services Application Existence Check Fails against the Shared Services Server with Error []
After check the Shared Services log, we receive this message:
“23 Jan 2009 05:30:47 - org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - SQL error 0 on /1222000912577.1: Connection is closed.
605779961 [ExecuteThread: '4' for queue: 'weblogic.kernel.Default'] ERROR cms.CMSFacade - org.apache.slide.common.ServiceAccessException: Service org.apache.slide.store.impl.rdbms.JDBCStore@1794494 access error : Connection is closed.
605779961 [ExecuteThread: '4' for queue: 'weblogic.kernel.Default'] WARN cms.CMSFacade - GetUsers() - Skipping User
com.hyperion.eie.common.cms.CMSException: error.UnableToGetNodeRevisionDescriptor”
I tried to start Essbase Server many times, but only after restart Shared Services was possible to start Essbase Server with success.
I checked the connectivity with OpenLdap (through LDAP Browser), Shared Services repository (through SQL*Plus), Shared Services and MSAD Provider and everything is OK.
Our environment is:
Sun Solaris 9:
Shared Services 9.3.0.1
Analytic Administration Services 9.3.0.1
Planning 9.2.0.3
BI+ 9.2.0.3
IBM AIX 5.3
Analytic Services 9.3.0.1
Oracle 10.2.0.4
WebLogic 8.1.4
External Authentication: MSAD
I found some topics with errors alike, but without a solutions. I am with a Service Request in Oracle Support but they could not find a reason to this yet.
Thanks !What is the solution to the problem.How did you resolve it.
Maybe you are looking for
-
XML Forms - Data model - writing to XML or Doc property
Hi, Can someone please explain how user data inputted into an XML Form is stored? I understand how it is stored in XML format, but am a little lost with SDN help doco, below: "Data Model The data model is a structured description of the data that is
-
Hello, I have generated a simple VI, to make multiplication and division operations. I have the following operation performed with the following inputs. A1 has a value range from 1 -10 fixed A2 has an input range of 1 - 5 A3,A4 are constants. so Resu
-
When hitting return/enter, how can I make the cursor go right instead of down?
I would like to change where the cursor goes after I hit return/enter - for it to go to the right instead of down. In Excel I could change it in preferences but I cannot find that option in Numbers. Please help!
-
Hi BB When I log into BB App World I';ve been getting this ewrror message: "App World Web Plugin Error An error has occurred communicating with the BlackBerry App World Client. If you have content protection enabled on your device, please disable and
-
Help with Defining a new Concurrent Program using Parameters
I wrote a very simple sql script and I want to register it as an Oracle Concurrent Program. I included a parameter field in the sql script to allow the entry of value to determine the number of days prior for the script. The script runs successfully