UCCX 9 web services / Stored Procedure
I'll appreciate if you guys can help me on this... Our application group already created automated bill payment web site. I would like to do similar things by using UCCX 9. When customers call, they enter Customer ID, credit card/check number and amount of bill they want to pay...etc... Our Application guy asked me to find out if UCCX can call web services or if UCCX can pass values to Stored procedure. The question is what steps/functions do I need to accomplish this task? Please advise...
Thank you,
Nana
Hi Nana
Web Services: You can create custom Java code to connect to the web services, or use other methods. Here's some examples:
https://supportforums.cisco.com/thread/270279
https://supportforums.cisco.com/thread/2143901
Stored Procs: Looks like this is also possible though I've not done it myself :
https://supportforums.cisco.com/thread/2079597
Regards
Aaron
Similar Messages
-
SOAP Fault when returning null from a Native Web Service Stored Procedure
I have a stored procedure which I can successfully invoke via soapUI
However, if one of the Stored Procedure's OUT arguments is set to null the native web service returns the following fault :
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Error processing input</faultstring>
<detail>
<OracleErrors xmlns="http://xmlns.oracle.com/orawsv/faults">
<OracleError>
<ErrorNumber>ORA-19202</ErrorNumber>
<Message>Error occurred in XML processing</Message>
</OracleError>
<OracleError>
<ErrorNumber>ORA-01405</ErrorNumber>
<Message>fetched column value is NULL</Message>
</OracleError>
</OracleErrors>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>I can see how to control the processing of null values when invoking orawsv (using the null_handling element).
Is there an equivalent for Stored Procedures ?
Thanks,
PD
versions as follows :
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
"CORE 11.2.0.1.0 Production"
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - ProductionWithout going into any technical discussion about the code, my first question is what JDK version was used to create this which was imported into the form? Understand that Forms 10 runs on JDK 1.4.2, so if you used any newer JDK version, likely there will be problems.
-
I've been trying to call a stored procedure through Entity Framework and WCF Data Services (OData). It returns an entity not a complex type. Following walkthroughs found all over the web, I came up with this code inside my service:
[WebGet]
public IQueryable<Entity> GetEntitiesByParameterId(int parameterId)
return CurrentDataSource.GetEntitiesByParameterId(parameterId).AsQueryable();
Calling the proc this way: ~WcfService.svc/GetEntitiesByParameterId?parameterId=1 executes
the stored procedure and returns entities that should be returned. No problem there.
Everything works well until I try to use $select OData option ie. ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$select=name.
Upon debugging, the method above runs without any error but it returns an Operation could destabilize the runtime error upon reaching the
client. After so much research, apparently it is a very general error pointing to a lot of different causes. I haven't found one that really matches my particular problem. Closest are
http://stackoverflow.com/questions/378895/operation-could-destabilize-the-runtime
https://social.msdn.microsoft.com/Forums/en-US/d2fb4767-dc09-4879-a62a-5b2ce96c4465/for-some-columns-entity-properties-executestorequery-failed-with-error-operation-could?forum=adodotnetdataservices
but none of the solutions worked on my end.
Also, from the second article above:
This is a known limitation of WCF DS. ...
Second is that some of the queries won't work correctly because LINQ to EF needs little different LINQ expressions than LINQ to Objects in some cases. Which is the problem you're seeing.
It has been posted on 2012. If it its true, are there still no updates on this? And is there any other workaround to get the $select working on the stored proc call?
What works:
~WcfService.svc/GetEntitiesByParameterId?parameterId=1
~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$top=1
~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$skip-5
~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$filter={filter query}
~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$expand=SomeNavigationProperty
What doesn't work:
~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$select=name
Tech details:
EntityFramework 5, WCF Data Service 5.0, OData V3
*I've also tried upgrading to EF6 and WCF 5.6.2 and it still didn't work.
Any help would be appreciated. Thanks!Someone from SO replied to my question there and said that $select is still not supported though I couldn't find any definitive documentation about it.
From what I gather and observed, $select breaks the stored procedure call because it tries to alter the data shape already gotten from the database and attempts to return a dynamic entity instead. Something about the stored proc returning an ObjectResult might
be messing it up. As I have said, these are merely my observations.
Workaround: I found a simple and elegant workaround for it though. Since my stored procedures are only getting data from the database and does
not alter data in any way (INSERT, UPDATE, DELETE), I tried using table-valued functions that returns a table equivalent to the entity on my EF. I've found that calling this function on the Service Operation method returns an IQueryable<Entity> which
is basically what is needed. $select also works now and so does other OData query options.
Steps:
Create a function on the database
Update EDMX -> Add function
Add new Function Import with Entity return type
Create service operation in WCF Data Service that calls CurrentDataSource.<FunctionName>()
Test in fiddler.
CODES
Database Function:
CREATE FUNCTION GetEntities(@parameter)
RETURN @entites TABLE(
[Id] [int],
[Name] [nvarchar](100),
AS
BEGIN
INSERT INTO @entities
SELECT [Id], [Name], ... FROM [EntityTable]
RETURN
END
WCF:
[WebGet]
public IQueryable<Entity> GetEntity(int parameter)
return CurrentDataSource.GetEntity(parameter);
It doesn't really solve the stored procedure problem but I'm marking this as answer until someone can provide a better one as it does solve what I'm trying to do.
Hope this helps others too. :) -
UCCX 8 - Custom Stored Procedure Not Functioning
Hello,
We're trying to modify one of the agent summary reports in UCCX 8. We want the outbound report to only show numbers that were external calls. (Longer than 4 digits.) We copied and modified the existing stored procedure and it seems to run ok until we try to use it in the historical reporter. HR reports that the stored procedure cannot be found. We've followed what documentation we could find about adding one but can't get it working. We've been using ASG Server Studio to access the database. We opened a TAC case but haven't gotten anywhere. Here's the detail we gave them.
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
I have created a stored procedure on the informix DB for UCCX 8. i have
been following the Historical reporting admin guide. the SP runs fine when i use ASG
server studio. when i try to use crystal reports to access the SP i get "Failed to
retrieve data from the database. Details: ADO Error code 0x80004005 Source: Microsoft OLE
DB Provider for ODBC Drivers Description: [Informix][Informix ODBC Driver][Informix]
Routine (sp_agent_call_summar_nointernal) can not be resolved. SQL State:S1000"
if i use a standard procedure Crystal Reports works fine.
i have the uccxHrUserRole assigned to the procedure so i do not understand why i cannot
run the SP.
Any ideas, we really need to get this working.
Thanks!Hi
1) There are an impressive number of bugs in early 8.0 versions; on the initial release permissions were incorrect for the existing SPs so the uccxHrUser couldn't run them. You could copy them, so had to copy them and run the copies.. tedious.
If you are on a working version, the other gotcha is that you need to specify them fully-qualified - so sp-test would be db_cra.dbo.sp_test
Also note that the SPs are randomly split between 'functions' and 'procedures' (there may be a pattern, but I can't work it). Both are similar, but there is a field in the DB that marks a proc as a fucntion or a procedure - the informix Squirrel SQL plugin doesn't work well with this and just shows the ones marked as 'procedures'. I've had better luck with RazorSQL and have recently played with the free IBM Data Studio which I think also displayed them all.
2) You can't edit the permissions of existing ones, but you can add new ones and since you (well, uccxHrUser) is the owner you can set permissions on those. Try using RazorSQL or AGS Server Studio (which is better, but $$$) to add new procs.
Aaron
Please ratre helpful posts.. -
Dropdown List binding from web-service storing the reference not the value
Hi,
In my human task form, I have a dropdown field who's value list has to be derived from a web-service exposing a table holding the list of values.
It works perfectly fine for the end-user, as in when a user selects a value, say 'XYZ' in step-1 the next user in step-2 is able to see the value as 'XYZ'.
However, when I check the payload of the the composite instance in enterprise manager after the instance has left step-1, I do not see the value 'XYZ' in the payload XML; instead I see a string oracle.jbo.Key[2 0 ]. It seems like BPM is storing some sort of a reference to that value that it resolves at run-time thus displaying 'XYZ'. As the user changes the value from the list, the array seem to be changing like [3 0],[1 0],etc.
Is this how it is expected to behave ? Doesn't seem to be right to me as for all other fields it promptly stores the actual value in the payload and not any sort of reference
Here's what I did:
1. Added a Data Control of type web-service and provided the wsdl link for the same. The wizard asks for the operations which in my case is a simple 'select'
2. From the data control corresponding to the human-task data model, I dragged the field and selected Single Choice>ADF Select One Choice control
3. Edit binding page opens where the data-control of the web-service is enabled and has the option for providing the input for the web-service
4. Click ok and the next screen displays 'edit list binding' for the field dragged from the human task payload. Here I add the data control's output object (iterator). Then I provide the data mapping where I define the ID field identifying the value user would select. The display attribute has description of the id.
Regards,
Sudripta
Edited by: Sudripta on Apr 2, 2013 8:44 PMTry this -
http://adfwithejb.blogspot.com/2012/03/how-to-programmatically-create-select.html -
Requirements for serving Web PLSQL stored procedures
Hi all,
Can someone tell me what I need to host Web based PLSQL stored procedures?
I was told by Oracle Corp that I only needed 9i but after looking through all the documentation and these message boards, I think I need 9iAS.
If I need 9iAS, do I also need 9i?
And if so, can they coexist on the same Sun Solaris box?
Any help would be greatly appreciated.
Thanks in advance
AaronYou'll need both - the Application Server to serve the pages, and the database to store the PL/SQL code. Yes, the two can co-exist - as long as they are installed in separate directories.
Hope this helps,
Ashesh Parekh
Oracle9iAS Product Management -
Hi All,
I have added custom assembly to analysis services and trying to call the function in the MDX with the below format
AssemblyName.NameSpace.Class.FunctionName(Dimensions)
I dont know exactly where am I doing wrong, please let me know if anyone has come cross this issue.
Thanks,
ATRSAMSBelow is the script I have used to create assembly, if any one have used this script and have found root cause, please let me know. Also let me know if you need more detailsnamespace SSAS_StoredProcedure_Sort
classMDXStoredProc
privateclassTupleValue : System.IComparable
private Microsoft.AnalysisServices.AdomdServer.Tuple _Tuple;
internal Microsoft.AnalysisServices.AdomdServer.Tuple Tuple
get { return _Tuple; }
privateset { _Tuple = value; }
privatedecimal _Value;
public TupleValue(Microsoft.AnalysisServices.AdomdServer.Tuple t, decimal v)
_Tuple = t;
_Value = v;
publicint CompareTo(object obj)
if (obj isTupleValue)
TupleValue tv = (TupleValue)obj;
return tv._Value.CompareTo(_Value);
thrownew System.ArgumentException("object is not a TupleValue");
publicSet Order(Set InputSet, Expression SortExpression)
List<TupleValue> TupleValues = newList<TupleValue>();
int i = 0;
foreach (Microsoft.AnalysisServices.AdomdServer.Tuple t in InputSet.Tuples)
TupleValues.Add(newTupleValue(t, (decimal)SortExpression.Calculate(t)));
i++;
int cTuples = i;
TupleValues.Sort();
SetBuilder sb = newSetBuilder();
for (i = 0; i < cTuples; i++)
sb.Add(TupleValues[i].Tuple);
return sb.ToSet(); -
Database Native web services - load balancing, Instrumentation , security
Hello –
I’m proposing use of Database Native web service in our company. Our architects are asking following questions so appreciate your help
a. How do you load balance across the DB WS (is there a way to use the F5 to detect downtime and balance the load across the DB servers)? We will be using RAC configuration with 3 nodes.
b. Our architect have security concern as user id/password information are in the web service URL, which may prove to be an issue. Is there a way to mitigate this risk?
c. Instrumentation in this approach (db native services) is questionable due to development/auto gen of the service logic from the DB itself. We may investigate wrapping the services with OSB to give us an additional instrumentation, policy enforcement, endpoint mediation and security proxy. Thoughts??
d. Architect are curious regarding any potential performance issues this may have on the DB server.
ThanksHi
We've recently begun using Native Web Services, intending to roll out this approach across the enterprise, but we've encountered 2 significant problems so far, which you may want to consider before proceeding ...
1. NWS returns an exception if the underlying PL/SQL returns a null value - even if the PL/SQL has completed successfully, and null is a legitimate return value (see SR 3-6201969101 - it contains simple instructions to recreate the problem)
(I raised it in this forum but there were no replies - SOAP Fault when returning null from a Native Web Service Stored Procedure
2. The sequence of values returned in the NWS response message is the opposite to the sequence declared in the auto-generated wsdl - i.e. schema validation will fail (see SR 3-6209016991 - it also contains simple instructions to replicate)
We have coded a workaround for problem 1. where we return <EMPTY> in place of null, and check for it in the client, but without proper resolution we're not prepared to use NWS elsewhere
As a workaround for problem 2. we removed schema validation, again not ideal
Both SRs were escalated 9 days ago, but are still outstanding
Incidentally our database is 11.2.0.1, but I've tested on 11.2.0.3 and both problems are still present
We also wrap the NWS services using an OSB Proxy Service, and came across the same security issue that you describe (b) - to provide the credentials required for the NWS, simply create a Service Account (containing the credentials) inside OSB and attach it to the Business Service which invokes the NWS (http://docs.oracle.com/cd/E17904_01/doc.1111/e15867/service_accounts.htm)
HTH -
Generating Web Service from PL/SLQL procedures using ODSI
1) Is there a way for us to generate REST based web services from PL/SQL procedures using Oracle data services Integrator? If Yes, Can you please point me to any available documentation
2) I am trying to create a phyiscal data source based on PL/SQL procedures in the hope of turning these data sources into web services. I created a JDBC connection in web logic server console and am trying to view the packages under APPS but ODSI always crashes after selecting APPS. Is there a way to resolve this?
Thanks
BhanuHi..
We came accross this problem a while back (I think it was us that the patch was created for). The patch was released under CR369707.
Additionally it took us a while to figure out how to use it correctly.. Here's the info for it from a mail i receievd from our support contact..
Here is more information from engineering on the patch:
This is patch for filtering Stored Procedures in the New Physical Data Service Wizard. It is a partial fix to the problem. It just does filtering - it still retrieves all the jdbc metadata for everything that matches the filter. Ideally, the wizard would let you explore the stored procedures - retrieving the name only - and once you selected a stored procedure, it would retrieve the argument types (which is the expensive part).
Copy these two files to a safe place
<bea_home>\<aldsp_home>\eclipse-plugins\dsp\eclipse\plugins\com.bea.dsp.ide.external_10.3.0\dsp-ide-ldshredder.jar
<bea_home>\<aldsp_home>\eclipse-plugins\dsp\eclipse\plugins\com.bea.dsp.ide.import_metadata_10.3.0.jar
Replace the files with the ones provided in the patch (which I sent you be eMail recently).
Creating Relational Database Physical Data Services -> Stored Procedures will be affected as follows :
The Search field used to represent a pattern for the stored procedures only, and this patterns were applied against every schema visible to ALDSP. The patch allows you to also specify a list of catalogue patterns (useful only when applicable), a list of schema patterns and a list of procedure name patterns. These lists are separated by the pipe symbol, and the lists themselves are command-separated. The catalogue and schema patterns are regular expressions, the procedure pattern is for a database 'like' clause. For, Oracle, the catalogue patterns are not applicable.
Example:
|ODM1,ODM2|B% // look in schemas containing the strings ODM1 or ODM2 for procedures that start with B
// possible results would be MY_ODM1.BUILDER, ODM2.BOTTOM
|^ODM$|B%D // look in the ODM schema for procedures that start with B and end with D.
Also - if there is a search string in the Search box, that search string will be applied to the schema when you click on the + to expand it in the Tree.
Note that once a schema has been 'explored' - either by a search, or by expanding it in the tree, further searches will not update it's children. You would need to quit the wizard and restart.
Once you get the patch if you have issues let me know.. -
URL object calling stored procedure
I want to call a dynamic web page (stored procedure) as a portlet. Is the best way to do this to create a URL object (in Applications) that points to the stored procedure? I have been trying this, but Portal can't find the page. The URL is valid (probably has to do with PL/SQL Gateway). What is the process for calling a stored procedure as a portlet? I don't want a Portal form created for this. I don't want any user interface template or other overhead in this portlet. The stored procedure needs full control of the content.
nullHi James,
You can try creating a dynamic page (in Applications). In your dynamic page, you can take out all the HTML codes and simply put the package/prodecure name in there. Then you can publish that Dynamic Page as a portlet and include that in your Portal page.
Hope this helps.
Regards,
Jatinder -
Stored Procedure For Web Service in Visual Composer 7.1
Hello,
I want to use stored procedure for Webservice in Visual Composer 7.1
I can find this Web service but not supported. ( ex) prcreleased_test - Not supported )
Log.
Message: Error in connection - Can' t execute Web service.
Date: 2008-07-01
Time: 16:41:43:906
Category: com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent
Location: com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.processExecution:
Application: sap.com/test~kmshim_wf_impl
Thread: HTTP Worker [1]
Data Source: j2ee\cluster\server0\log\defaultTrace_00.trc
Correlator ID: 240496500000034715
Argument Objects:
Arguments:
DSR Component: n.a.
DSR Transaction: cb4b3560473711dd9fb4001e4f3b8fcb
Log2
Message: Stopped further execution since the interpreter is unusable
Date: 2008-07-01
Time: 16:41:43:906
Category: com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent
Location: com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.XGLInterpreter
Application: sap.com/test~kmshim_wf_impl
Thread: HTTP Worker [1]
Data Source: j2ee\cluster\server0\log\defaultTrace_00.trc
Correlator ID: 240496500000034715
Argument Objects:
Arguments:
DSR Component: n.a.
DSR Transaction: cb4b3560473711dd9fb4001e4f3b8fcb '
Help me^^ plz..Hi Tanna.
Thanks for your reply^^
I create webservice that access my stored procedure.
But not supported.
http://dmp.humaxdigital.com/HumaxCmdwService/Service1.asmx?wsdl
There are two service. (Hello World - Test, prcrelease_test - Stored Procedure )
'Hello World' is supported but prcrelease_test is not supported. I can't drag to storyboard.
Our company's DB is MSSQL2005.
please help me^^ -
Web Service receives no data from Stored Procedure call.
Issue: When calling a Stored Procedure from a Web Service no data is returned.
Lead up: I can call the SP 100 times a day for 3-4 days then for some reason the Web Service no longer get the data from SQL. I have ran a trace and I can see the SP running though all of its steps and returning the data, but the Web Service
is not getting it.
Fix: None yet.
Work around: Before the Web Service calls the SP, I am sending an SP_Recompile to the SP in question. For now this seems to have resolved the issue.
Detail:
1. SP is querying data from another DB on the same server.
2. SP is storing query data in Temp Tables.Hello,
Does your Stored Procedure have parameters? If so, the issue may be cause by parameter sniffing. Please refer to the following blog about Paraemeter Sniffing:
http://www.sommarskog.se/query-plan-mysteries.html
The recommended fix for most situations is to not use parameters directly in queries, but rather store them into local variables and then use those variables in the queries.
Regards,
Fanny Liu
If you have any feedback on our support, please click here.
Fanny Liu
TechNet Community Support -
Publish PLSQL stored procedure as web services
Is it true that PLSQL stored procedure can only be published as web services using JAVA?
I came across article that mention how to call other web services from within plsql, but not sure the vice versa.
So, please advise.
Thank you.True..I've done it once using J-Developer.
http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm#o
Good luck!!
Bhagat -
HELP!!! Problem of Calling external Web Service from a Java Stored Procedur
1.I read the topic on http://www.oracle.com/technology/sample_code/tech/java/jsp/samples/wsclient/Readme.html about Calling external Web Service from a Java Stored Procedur.
2.After I import .jar to Oracle what is required by the topic,som error occued.
Like: ORA-29521: javax/activation/ActivationDataFlavor class not found,
ORA-29545: badly formed class.
3.These is not enough .jar required on the topic? What can I do for ORA-29545: badly formed class?
Thany you!Try this
Re: HELP! Loading Java Classes into Oracle ERROR -
Utilizing a java stored procedure for web services
Hello,
I am a newbie in web services and I want to learn web services by utilizing a simple procedure and making use as a web service.
I have a java stored procedure deployed in Oracle 8i database, which I am using for sending emails. I am invoking the java stored procedure in my JSP and Java classes by making a database connection and calling the procedure.
I am planning to make this a web service so that I could call this from any of my application.
Could someone give an insight how to make this a web service, albeit the utility is not very complex and my knowledge about web services is limited, I thought I could start by doing a simple program.
Any help is highly appreciated.
Thanks
PonicHi Tanna.
Thanks for your reply^^
I create webservice that access my stored procedure.
But not supported.
http://dmp.humaxdigital.com/HumaxCmdwService/Service1.asmx?wsdl
There are two service. (Hello World - Test, prcrelease_test - Stored Procedure )
'Hello World' is supported but prcrelease_test is not supported. I can't drag to storyboard.
Our company's DB is MSSQL2005.
please help me^^
Maybe you are looking for
-
Open PO details in the back date
Hi, We had shorclosed/deleted/changed the quantities of some line items of open POs (Material PO & Service PO) and migrated those line items into new POs in new plants some time back. Now we need to take a report of the old PO line items at that time
-
My IPhone shut off by itself and I can't turn it back on. My lock screen button is broken and I tried plugging it into the wall but nothing happened. Can you guys please help me.
-
Error : ' ; ' expected
Could someone please tell me what's wrong with the following: public String convert24ToStd (int hh, int mm) String PM; String AM; hour = (hh > 12 ? PM : AM); StringBuffer append( hour ); }
-
Hi, I would like some help tuning the following query: SELECT distinct cs.study, de.STUDY_SITE Site, iv.last_name INV, de.PATIENT , pv.visit_number Visit, -- REPLACE(asm.assessor_name, ',', '|') assessor_name, de.DISCREPANCY_REV_STATUS_CODE Status, F
-
I'm trying to write a script to rename all of the files in a folder using regular expressions. I can tell when I run it that I am correctly changing the names of the files the way I want; the problem comes when I try to set the name. I get this error