PL/SQL web service - how to use XML schema to define inputs/outputs?
Hello,
let us say I want to publish a PL/SQL web service. The package spec that I want to expose is:
CREATE OR REPLACE PACKAGE myWebService AS
FUNCTION loadResults(
username IN VARCHAR2,
password IN VARCHAR2,
resultData IN XMLType)
RETURN XMLType;
END;When I use JDeveloper's wizard to publish my PL/SQL web service, the resulting WSDL contains this:
<schema
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://uk/co/weatherbys/aapws/AAPWS.wsdl/types/"
targetNamespace="http://uk/co/weatherbys/aapws/AAPWS.wsdl/types/"
elementFormDefault="qualified">
<element name="loadresultsElement">
<complexType>
<sequence>
<element name="username" type="string" nillable="true"/>
<element name="password" type="string" nillable="true"/>
<element name="resultdata" nillable="true">
<complexType>
<sequence>
<any/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
<element name="loadresultsResponseElement">
<complexType>
<sequence>
<element name="result" nillable="true">
<complexType>
<sequence>
<any/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>It is specifying that anything at all can be passed in and out from the two XMLType arguments, which is fair enough: it has no way of knowing what I am expecting and what I shall return.
My question is, how do I tell JDeveloper that actually I want either or both of those XMLTypes to conform to a particular XML schema?
You cannot format the date as a string, unless you do the conversion on the PL-SQL side, before you use it in your WebService mapping. It should be handled as a string.
The only way to convert the XML from SOAP, using this encoding, into literal XML is to apply XSLT to the payload. Not sure why you would like to do this, as the payload should be consumed by another SOAP-awared stack.
Hope this helps,
Eric
Similar Messages
-
PL/SQL web service code in 1013 is schema-specific
When I generate a Web Service from a pl/sql package in 1013 (ea3), the code will only run against the schema that owns any user-defined SQL types that the package references. These types have synonyms on the database, but to get the code to execute against another schema I have to modify the generated type classes and add the owning schema name into the literals in several different places.
Is there a way I can get the wizards to do this for me?Yes, we tried with databse adapter with out any problem. we want specifically with the PL/SQL Web service using the web service wizard.
Thanks in advance. -
How to populate XML schema details in XSLT output
I want to print details about XML schema , xmlns on XSLT output as below.
<?xml version="1.0" encoding="UTF-8"?>
<CBISEDACReqLogMsg xsi:schemaLocation="urn:CBI:xsd:CBISEDACReqLogMsg.00.01.04 CBISEDACReqLogMsg.00.01.04.xsd"
xmlns="urn:CBI:xsd:CBISEDACReqLogMsg.00.01.04" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
But in actual
In my XSLT output I can see below.
<?xml version="1.0" encoding="UTF-8" ?>
- <CBISEDACReqLogMsg xmlns="urn:CBI:xsd:CBISEDACReqLogMsg.00.01.04">
My XSLT is as code is below
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:calendar="http://www.oracle.com/XSL/Transform/java/java.util.Calendar"
xsl:schemaLocation="urn:CBI:xsd:CBISEDACReqLogMsg.00.01.04 CBISEDACReqLogMsg.00.01.04.xsd"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="urn:CBI:xsd:CBISEDACReqLogMsg.00.01.04"
xmlns:string="http://www.oracle.com/XSL/Transform/java/java.lang.String"
exclude-result-prefixes="calendar string">
<xsl:output method="xml" indent="yes" encoding="UTF-8"></xsl:output>
<xsl:template match="/">
Kindly help me for how to show other required details in XSLT output.I am in the same boat. How do I disable XML Validation in NW BPM?
In my case, Data comes from PI to NW BPM. But PI never cares about schema validation unless asked for. I have at least a 100 WSDLs that are failing to receive messages if I could not turn this off in BPM. I can not fix the Data Type as it is supported by third party.
Any help is appreciated.
VJ -
How to use IMPEDANCE ANALYZER to measure input $ output impedance of BJT circuit
Am currently doing experiments by using NI ELVIS IMPEDANCE ANALYZER but am now suffering a problem on how I can connect it so as to measure input and output impedance of a BJT circuit.
My circuit is as shown in my attachment.
Attachments:
ni.docx 46 KBI see that you already posted on another thread. Please refer to it here:
http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/HOW-TO-USE-ELVIS-IMPEDANCE-ANALYZER-TO-MEASUR...
Regards,
Nathan S.
Applications Engineer
National Instruments -
Web service - how to use it ?
Hello expert,
i have to send a file using web wervice (consuming) ( from sap system toward external system ).
Could you provide me a basic exemple to do it ?
tks a lot,
bye.DATA : imessage TYPE STANDARD TABLE OF solisti1 WITH HEADER LINE,
iattach TYPE STANDARD TABLE OF solisti1 WITH HEADER LINE,
ipacking_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
ireceivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
iattachment LIKE solisti1 OCCURS 0 WITH HEADER LINE.
DATA : p_email2 TYPE somlreci1-receiver
VALUE '<email address>'.
PERFORM build_xls_data .
PERFORM populate_msg_body.
PERFORM send_email_with_xls TABLES imessage
iattach
USING p_email2
'subject text
'XLS'
'TestFileName'
'Body Text'
FORM send_email_with_xls TABLES pit_message
pit_attach
USING p_email2
p_mtitle
p_format
p_filename
p_attdescription.
DATA: xdocdata LIKE sodocchgi1.
xcnt TYPE i.
Populate the subject/generic message attributes
xdocdata-doc_size = 1.
xdocdata-obj_langu = sy-langu.
xdocdata-obj_name = 'SAPRPT'.
xdocdata-obj_descr = p_mtitle.
xdocdata-priority = '1'.
xdocdata-sensitivty = 'F'.
iattachment[] = pit_attach[].
ipacking_list-transf_bin = space.
ipacking_list-head_start = 1.
ipacking_list-head_num = 0.
ipacking_list-body_start = 1.
DESCRIBE TABLE imessage LINES ipacking_list-body_num.
ipacking_list-doc_type = 'RAW'.
APPEND ipacking_list.
Create attachment notification
ipacking_list-transf_bin = 'X'.
ipacking_list-head_start = 1.
ipacking_list-head_num = 1.
ipacking_list-body_start = 1.
DESCRIBE TABLE iattachment LINES ipacking_list-body_num.
ipacking_list-doc_type = p_format.
ipacking_list-obj_descr = p_attdescription.
ipacking_list-obj_name = p_filename.
ipacking_list-doc_size = ipacking_list-body_num * 255.
APPEND ipacking_list.
ireceivers-receiver = p_email2.
ireceivers-rec_type = 'U'.
ireceivers-com_type = 'INT'.
ireceivers-notif_del = 'X'.
ireceivers-notif_ndel = 'X'.
APPEND ireceivers.
***Send Mail >>>
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = xdocdata
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = ipacking_list
contents_bin = iattachment
contents_txt = imessage
receivers = ireceivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc = 0.
WAIT UP TO 10 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = ' '
AND RETURN.
ENDIF.
ENDFORM. " send_email_with_xls -
SOAP Response from PL/SQL Web Service
My returned SOAP xml from PL/SQL web service has totally rearranged element order, which defined in WSDL and oracle database. It also changed all element name from mixed upper/lower case to pure lower case and makes them hard to read. Why is that? Is there any way to avoid these to happen?
My PL/SQL web service was generated by Oracle9i JDeveloper 9.0.3.
Thanks for any help.
YiHi,
we need more details
- it seems like you have both Return and OUT arguments; which SOAP stack are you using?
- which tools?
- What is the naming convention of your PL/SQL arguments?
Kuassi
Mike,
1. The SOAP is the result of publishing a stored procedure/function as a Web service.
2. The elements for returned data are re-ordered. The function returns no complex type.
3. The element tags containing returned data are all changed to lower case.
Here are what I expected for returning SOAP:
<return xmlns:ns2="http://oracle817/IDemogprofilews.xsd" xsi:type="ns2:oracle817_ODemog">
<OFipsCode xsi:type="xsd:string">51059</ OFipsCode >
<TotalPopulation xsi:type="xsd:double">818584.0</ TotalPopulation >
<PercentMinority xsi:type="xsd:double">22.5</ PercentMinority >
<PersonsBelowPovertyLevel xsi:type="xsd:double">28210.0</ PersonsBelowPovertyLevel >
<HouseholdsInArea xsi:type="xsd:double">292943.0</ HouseholdsInArea >
<HousingUnitsBuiltBefore1950 xsi:type="xsd:double">5.2</ HousingUnitsBuiltBefore1950 >
<White xsi:type="xsd:double">666349.0</ White >
<HispanicOrigin xsi:type="xsd:double">50526.0</ HispanicOrigin >
<AmericanIndian xsi:type="xsd:double">2318.0</ AmericanIndian >
<HighSchoolDiploma xsi:type="xsd:double">91675.0</ HighSchoolDiploma >
<BachelorAndHigher xsi:type="xsd:double">264673.0</ BachelorAndHigher >
<Adults18yearsAndOlder xsi:type="xsd:double">618989.0</ Adults18yearsAndOlder >
<Seniors65yearsAndOlder xsi:type="xsd:double">52977.0</ Seniors65yearsAndOlder >
Instead I get following back:
<return xmlns:ns2="http://oracle817/IDemogprofilews.xsd" xsi:type="ns2:oracle817_ODemog">
<totalpopulation xsi:type="xsd:double">818584.0</totalpopulation>
<americanindian xsi:type="xsd:double">2318.0</americanindian>
<housingunitsbuiltbefore1950 xsi:type="xsd:double">5.2</housingunitsbuiltbefore1950>
<hispanicorigin xsi:type="xsd:double">50526.0</hispanicorigin>
<highschooldiploma xsi:type="xsd:double">91675.0</highschooldiploma>
<adults18yearsandolder xsi:type="xsd:double">618989.0</adults18yearsandolder>
<seniors65yearsandolder xsi:type="xsd:double">52977.0</seniors65yearsandolder>
<householdsinarea xsi:type="xsd:double">292943.0</householdsinarea>
<personsbelowpovertylevel xsi:type="xsd:double">28210.0</personsbelowpovertylevel>
<ofipscode xsi:type="xsd:string">51059</ofipscode>
<bachelorandhigher xsi:type="xsd:double">264673.0</bachelorandhigher>
<white xsi:type="xsd:double">666349.0</white>
<percentminority xsi:type="xsd:double">22.5</percentminority>
You can see the element tag names are in different order/sequence and cases.
Thanks.
Yi -
How to access PL/SQL Web Services using java
New to Webservices. Created PL/SQL Web Service using JDeveloper. Vendor is not sure how to access it using java. Can anyone please help to point in the right direction or provide some sample ?
So if I'm correct you have already exposed a PL/SQL procedure or function as web service?
In that case you can generate a proxy (client) for the generated web service using JDeveloper. It will generate Java code which invokes the web service.
See the wizard in JDeveloper, it should be in the same category as the create PL/SQL web service wizard.
Regards, Ronald -
How can I return multiple values with PL/SQL Web Services
Hi,
I'm new to developping Web Services. I'm doing some tests with JDeveloper and OC4J on my local machine with a Web Services based on a PL/SQL function within a package. Right now that function only returns one value. So the xml response only has one output.
I'd like to know how can I return multiple values with my PL/SQL Web Service. For example, if I want to return an employee's name and id? And that the xml contains two output : <employee>, <empid>?
Reginald
ps : I have searched the forum and I couldn't find an answer to this question, if that has been discussed AND answered before, can you please post the link? ThanksAlright, I actually found my answer. Since this was asked I think as a followup somewhere else I'll give my answer.
It is very simple, all you have to do is create an Object Type and then Return that object type. After that, JDeveloper will take care of everything and you will have an xml response with multiple values. Here
{color:#ff0000}
create or replace TYPE person AS OBJECT
( id_interv number,
first_name VARCHAR2(50),
last_name VARCHAR2(50),
date_birth date
);{color}
Then your function used in your Web Service should look something like this :
{color:#ff0000}
function info_emp (p_empno IN VARCHAR2) RETURN person AS
l_emp person := person(-1,'','','');
BEGIN
SELECT first_name
,last_name
,emp_no
INTO l_emp.first_name
,l_emp.last_name
,l_emp.emp_no
FROM emp
WHERE upper(emp_no) = upper (emp_no);
{color}
{color:#ff0000}
RETURN l_emp;
EXCEPTION WHEN NO_DATA_FOUND THEN
l_emp := person (-1,'n/a','n/a','n/a');
RETURN l_emp ;
END info_emp;{color}
{color:#ff0000}{color:#000000}After that, this is what the xml response looks like :{color}{color}
<first_name xsi:type="xsd:string">John</first_name>
<last_name xsi:type="xsd:string">Doe</last_name>
<emp_no xsi:type="xsd:string">0250193</emp_no> -
PL SQL Web Service with XML output - Remove the declaration from the proces
Using JDeveloper to create PL/SQL web services it inserts the generic declaration
<?xml version="1.0" encoding="UTF-8" ?>. I want to remove this line from the payload.
Here is the entire payload. Why is this inserted and how do I get rid of it.
<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Body>
- <SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring>java.sql.SQLException: java.sql.SQLException: ORA-04068: existing state of packages has been discarded ORA-04063: package body "FDC_API.PVR_IPS_TICKET" has errors ORA-06508: PL/SQL: could not find program unit being called ORA-06512: at line 1</faultstring>
<faultactor>/pvr_ora-pvr_tickets-context-root/Pvr2ips</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>rvice, my payload has theWe can generate jaxws from 11.1.2.0 onwards using This is now provided by the TopLink web service provider builder, which can be via the TopLink DBWS provider wizard from JDeveloper since the 11.1.2.0.0 release
1.4.4 Database Web Services (DBWS)
http://docs.oracle.com/cd/E23943_01/doc.1111/e26045/general.htm#CHDIEEHG
Hope that heps
Regards,
Sunil P -
How to compress pl/sql web services
Hi, I'm using pl/sql web services in oc4j, but sometimes the response is too large, i need to compress the SOAP XML response , how can i do that? Thanks.
What data types are you dealing with? Does the client use all the data returned? If not, you might get around with large messages by instead invoking a PL/SQL function that extracts and returns only useful data from the original PL/SQL funtion.
-
How to develop web services in OSB using Eclipse OEPE
Hello,
We have some live web services developed in SOA ESB using JDeveloper.
We are now forced to migrate to OSB because of the reason that sometime next year ESB will be de-supported by Oracle.
I am looking for some good documentation which explains how to create web services in OSB using Eclipse. Please help.
I am installed Web logic + OEPE + OSB in my local machine already. All I need is to know how to start development.
Thanks,Hi,
You can start with this:
http://docs.oracle.com/cd/E17904_01/doc.1111/e15866/tasks.htm
Cheers,
Vlad -
Creating PL/SQL web services from PL/SQL records
Hello
Jdeveloper does not allow to create web services from pl/sql packages that use PL/SQL records.to do this,we have to use the jpublisher ?without using the jpublisher,if we create a webservice then the following error is displayed in the web service xml output file.
<faultstring>Internal Server Error (Caught exception while handling request: java.rmi.RemoteException: java.sql.SQLException: ORA-06550: line 1, column 49: PLS-00181: unsupported preprocessor directive '$WS_SP_EVEN' )</faultstring>
</env:Fault>
Could any one suggest me, how to solve the above issue..?
Regards
MalathiThank you, with db adapter it was working and also
pl/sql web-services working successfully with object types.If we want to send the web-services to the client, do we need to send the entire folder that is created in the web-services folder of the external oc4j..?
Creating the client process:
we are using the wsdl file that is generated in the web-services and adding to the partner link to Invoke the operations of web-services. Is there any other way to invoke the webservices?Could any one please suggest me?
Thanking you
Malathi -
PL/SQL Web Service problem in Oracle10g
Hi everybody
I try to publish PL/SQL Web Service using JDeveloper 9.0.4.0 and Oracle10g.
But when I deploy the Web Service using 'http-web-site', error messages are:
oracle.oc4j.admin.internal.DeployerException: Unknown site: http-web-site
Active sites are:
file:/D:/oracle/DS/j2ee/home/config/default-web-site.xml
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:131)
at com.evermind.server.administration.DefaultApplicationServerAdministrator.bindWebApp(DefaultApplicationServerAdministrator.java:364)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Exit status of OC4J admin tool (-bindWebApp): 17
Use the following context root(s) to test your web application(s):
http://huan:????/CSE5200-PLSQLWS-context-root
Note: JDeveloper was unable to determine the HTTP port number of the remote server for the above URL(s).
Elapsed time for deployment: 2 minutes, 19 seconds
When I change it to 'default-web-set', the following information is shown:
---- Deployment started. ---- 2004-8-31 8:50:08
Target platform is Standalone OC4J (WSConnection).
Wrote WAR file to D:\oracle\DS\jdev\mywork\CSE5200\PLSQLWS\WebServices.war
Wrote EAR file to D:\oracle\DS\jdev\mywork\CSE5200\PLSQLWS\CSE5200-PLSQLWS-WS.ear
Invoking OC4J admin tool...
D:\oracle\DS\jdk\jre\bin\javaw.exe -jar D:\oracle\DS\j2ee\home\admin.jar ormi://huan/ admin **** -deploy -file D:\oracle\DS\jdev\mywork\CSE5200\PLSQLWS\CSE5200-PLSQLWS-WS.ear -deploymentName CSE5200-PLSQLWS-WS
Notification ==> Application Deployer for CSE5200-PLSQLWS-WS STARTS [ 2004-08-31T08:50:32.487EST ]
Notification ==> Undeploy previous deployment
Notification ==> Copy the archive to D:\oracle\DS\j2ee\home\applications\CSE5200-PLSQLWS-WS.ear
Notification ==> Unpack CSE5200-PLSQLWS-WS.ear begins...
Notification ==> Unpack CSE5200-PLSQLWS-WS.ear ends...
Notification ==> Initialize CSE5200-PLSQLWS-WS.ear begins...
Notification ==> Initialize CSE5200-PLSQLWS-WS.ear ends...
Notification ==> Initialize WebServices begins...
Notification ==> Initialize WebServices ends...
Notification ==> Application Deployer for CSE5200-PLSQLWS-WS COMPLETES [ 2004-08-31T08:50:45.766EST ]
Exit status of OC4J admin tool (-deploy): 0
D:\oracle\DS\jdk\jre\bin\javaw.exe -jar D:\oracle\DS\j2ee\home\admin.jar ormi://huan/ admin **** -bindWebApp CSE5200-PLSQLWS-WS WebServices default-web-site /CSE5200-PLSQLWS-context-root
Exit status of OC4J admin tool (-bindWebApp): 0
Use the following context root(s) to test your web application(s):
http://huan:8890/CSE5200-PLSQLWS-context-root
Elapsed time for deployment: 53 seconds
---- Deployment finished. ---- 2004-8-31 8:51:01
And the Web Service still can not work. I did this before with JDeveloper 9.0.3 with Oracle9i and succeeded. Could anybody tell me how to resolve this problem. Thanks a lot.Thanks Frank.
In my function package i create xml use dbms_xmldom. I save created xml into clob and return this clob in function.
Now I want create web service that return my clob(xml).
I try use JDevelper with PL/SQL Web Service Wizard.
But I get wrong result (see in my first post).
My Example xml in clob
<test>"testvalue"</test>
I want get responce
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
X-Powered-By: Servlet/2.5 JSP/2.1
SOAPAction: "http://localhost/MyWebService1.wsdl/udoFDicnomnsXmlWs"
Date: Thu, 28 Oct 2010 08:23:31 GMT
X-ORACLE-DMS-ECID: 0000IjlvoFZB_6yb05nZ6F1CmJAZ000006
Content-Length: 279812
X-HTTPAnalyzer-RuleName: Pass through :
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<env:Header/>
<env:Body>
<m:udoFDicnomnsXmlWsResponse xmlns:m="http://localhost/MyWebService1.wsdl">
<result><test>"testvalue"</test>
</result>
</m:udoFDicnomnsXmlWsResponse>
</env:Body>
</env:Envelope>
But I get
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
X-Powered-By: Servlet/2.5 JSP/2.1
SOAPAction: "http://localhost/MyWebService1.wsdl/udoFDicnomnsXmlWs"
Date: Thu, 28 Oct 2010 08:23:31 GMT
X-ORACLE-DMS-ECID: 0000IjlvoFZB_6yb05nZ6F1CmJAZ000006
Content-Length: 279812
X-HTTPAnalyzer-RuleName: Pass through :
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<env:Header/>
<env:Body>
<m:udoFDicnomnsXmlWsResponse xmlns:m="http://localhost/MyWebService1.wsdl">
<result>& lt;test>&quot;testvalue&quot;& lt;/test>
</result>
</m:udoFDicnomnsXmlWsResponse>
</env:Body>
</env:Envelope>
Can you advice something?
Edited by: user10707438 on 28.10.2010 1:14
Edited by: user10707438 on 28.10.2010 1:27 -
Testing PL/SQL Web Service Error
I've generated a web service using JDev 10.1.2, ran it in the embedded OC4J Server. I then generated a stub to test it with, browsed to the web service wsdl file in the original project, and ran the stub. The stub project returns the error:
SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
<HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1><PRE>java.lang.NoClassDefFoundError:
I'm not sure what I should be looking for to track this down. Is it a bug in my stub, or in my web service? In order to keep things simple, the stored procedure only takes a few strings, and I've double-checked the values and order of parameters I'm passing. Anybody have any ideas?I got this figured out, just blew away my projects
and started over, and it worked. Now that I've got
it working in a test environment, how do I get it
into production? Is Oracle's AS the only AS you can
use to deploy a PL/SQL web service?The OrindaBuild Plugin for JDev 10.1.2 writes Java classes to run PL/SQL that work with Apache Axis 1.1 and should work with almost any web service toolkit.
www.orindasoft.com
David Rolfe
Orinda Software. -
Scalability Issues for Creating Pl/sql Web Services
While Creating Pl/Sql Web Services , jdeveloper automatically creates wrappers files for the same, When using complex types for pl/sql Procedures, the wrappers contain huge no of attributes , Will there be a scalability issue for such kind of complex PL/SQL API Web services, will there be a round trips to database in order to map the attributes of java wrapper files with the Pl/SQL API files
Also there is something called as Public View Object VO, how different it is from the normal View Object,is there a specific way to create Public View Object and XSD file for that, or its just a normal VO exposed publicly?Hello
Accessing the pl/sql webservices from the application server:
I have created pl/sql webservice using the nested tables. This will insert the object data into database tables.after deplying the webservice into external oc4j, when I test the webservice locally with url: http://localmachine:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort
The above web-services working and I am able to insert into the database tables.
Same when I want to access through the application server, I have changed the wsdl file soap address as
<soap:address location="http://10.91.20.7:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort"/>
When I access this url, I am able to give the input data
http://10.91.20.7:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort
but the out from the web-service is:
<env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>env:Server</faultcode>
<faultstring>Error creating target: DBConnImpMftest.ObjWebserviceUser</faultstring>
<faultactor/>
</env:Fault>
</env:Body>
</env:Envelope>
Err from the OC4j log:<PAYLOAD>
<MSG_TEXT>An error occurred for port: {http://dbconnimpmftest/Nested_Webserv.wsdl}Nested_WebservSoapHttpPort: javax.xml.rpc.JAXRPCException: Error creating target: dbconnimpmftest.Nested_WebservUser.</MSG_TEXT>
</PAYLOAD>
Could any one help me to solve the above issue?
Kind regards
Malathi
Maybe you are looking for
-
This tab comes up every time I start Firefox, and often several times in a row.
-
Strandared report to view both parked as well as posted entries of cost cen
Hi, Please advise me is there any report existing in SAP to view both parked as well as posted transactions for a cost center. I appreciate your quick reply. thanks, Ramesh.
-
Creative Cloud seems to install both 32 bit and 64 bit versions of PS and LR CC on my Win 7 64 bit computer. Since my sytem is installed on a SSD with limited space, I was wondering if the 32 bit versions can be safely removed, without damaging the 6
-
6822 Bluetooth Stopped working - won't switch on
After all the trouble I went to to get PC-Suite and my Bluetooth Stack working on my laptop, this morning I switch my 6822 on and Bluetooth won't turn on. From the menu I select Bluetooth which is showing as "Off", I select it and the select 'On' and
-
I keep reloading data into Notes in my IPad and after syncing, the new data is missing from the ipad and doesn't show in the PC. Had similar but slightly different with my iPhone. Any solutions, please?