XML Error while calling webservice from oracle function.
I am getting an error while I am trying to call webservice from oracle function. Any ideas? Thanks.
select get_new_string ('proxy:80', 'http://xxx/PatternVariations/SourceTest/WebMethods','Scott') from dual
ERROR at line 1:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00225: end-element tag "H4" does not match start-element tag "P"
Error at line 9
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at "DORSBP00.DEMO_SOAP", line 82
ORA-06512: at "DORSBP00.GET_NEW_STRING", line 11
The error message implies that the web service is returning something that is not well formed xml. Can you verify what is being returned by the web service call
Similar Messages
-
Error when calling webservice from oracle function.
Hi,
I am getting following error when i am trying to call webserivce from oracle function. Please can anyone suggest the required solution. Below is the error obtained.
Thanks.
ERROR at line 1:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00225: end-element tag "UL" does not match start-element tag "P"
Error at line 15
ORA-06512: at "SYS.XMLTYPE", line 54
ORA-06512: at "SCOTT.DEMO_SOAP", line 87
ORA-06512: at "SCOTT.WEB_SERVICE", line 17The error message implies that the web service is returning something that is not well formed xml. Can you verify what is being returned by the web service call
-
Error while calling webservice from oracle8i
Hi,
i am trying to call a webservice from a stored procedure in Oracle 8i.
I am getting the following error.
ORA-31011: XML Parsing failed
ORA-19202: Error occurred in XML processing
LPX-00225: end-element tag "body" does not match start element tag "br"
Kinldy help me in knowing the cause of this issue. Also i wanted to know if
webservices will work in oracle 8i enterprise edition release 8.1.7.4.0
or do we need to add any patches for it.
Thanks,
SathiaThis forum is for XML DB issues. XML DB is a feature of 9iR2 and later.You need t look in the XML Technology forum
-
Error while calling webservice from application module
Hi all
I have generated a Proxy from a web Service and i am trying to call the web service from an Application Module it is throwing me error
JBO-29000: Unexpected exception caught: oracle.classloader.util.AnnotatedNoClassDefFoundError, msg= Missing class: webservices.types.com.siebel.xml.order_interface.Orders Dependent class: java.lang.reflect.Array Loader: jre.bootstrap Code-Source: unknown Configuration: jre bootstrap
Missing class: webservices.types.com.siebel.xml.order_interface.Orders Dependent class: java.lang.reflect.Array Loader: jre.bootstrap Code-Source: unknown Configuration: jre bootstrap
My web Service is correct, as i have executed the client and it is working fine, but when i try to access the web service from an application module it is throwing me this error. So any light on this issue will be very helpful
thanksThis forum is for XML DB issues. XML DB is a feature of 9iR2 and later.You need t look in the XML Technology forum
-
Error while converting schema from oracle to SQL server
Hello,
I am getting following error while converting schema from oracle to SQL server using SSMA.
I get Errors 1-3 while migrating procedures and error 4 while migrating a table.
1- O2SS0050: Conversion of identifier 'SYSDATE' is not supported.
2- O2SS0050: Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.
3- O2SS0050: Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported.
4- O2SS0486: <Primary key name> constraint is disabled in Oracle and cannot be converted because SQL Server does not support disabling of primary or unique constraint.
Please suggest.
Thanks.The exact statement in oracle side which causing this error (O2SS0050:
Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.) is below:
dStartDate:= to_date(sStartDate,'MON-YYYY');
Statement causing error O2SS0050:
Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported is below.
nCount2:= length(regexp_replace(sDataRow,'[^,]'));
So there is no statement which is using to_date(VARCHAR2,
CHAR) and regexp_replace(VARCHAR2, CHAR) in as such. 'MON-YYYY' and '[^,]'
are CHAR values hence SSMA is unable to convert it from varchar2 to char.
Regarding SYSDATE issue, you mean to put below code in target(SQL) side in SSMA ?
dDate date := sysdate;
Thanks. -
Error while calling WebService inside ISchedulerTask.
Hi,
Env: NW 2004s
I have a requirement of calling webservice frequently. I developed a portal project with scheduler, where the application gives a runtime error while calling/reading the property file (which is generated during the webservice proxy generation, without it webservice call is impossible).
I have varified the ear file which contains all the required class files and config files including property file.
fyi:
portalapp.xml file looks like this.
+
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="SharingReference" value="usermanagement, knowledgemanagement, landscape, htmlb, exportalJCOclient, exportal"/>
</application-config>
<components/>
<services>
<service name="RFServiceWrapper">
<service-config>
<property name="className" value="com.sap.netweaver.rf.wrapper.RFServiceWrapper"/>
<property name="startup" value="true"/>
</service-config>
</service>
</services>
</application>
+
Any input will be highly appreciated.
Thanks,
VinodFollowing is the error message:
msg1:
at <package>.AFFERAAFWSServiceImpl.<init>(AFFERAAFWSServiceImpl.java:10)
msg2:
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ServiceBase.loadProtocolsFromPropertyFile(ServiceBase.java:238)
Reporting from Logs and Traces.
Error Located @ following code inside AFFERAAFWSServiceImpl.java, which is a proxy class generated using apache axis
input = this.getClass().getClassLoader().getResourceAsStream("<package>/protocols.txt");
loadProtocolsFromPropertyFile(input);
protocols.txt is another config file generated along with AFFERAAFWSServiceImpl.java, which is been used @ run time.
FYI: All these files are present on ear file. -
System error while calling webservice adapter
Hello Experts
I am configuring a synchronous proxy to webservice scenario.I have created a webservice from a custom function module. while executing the interface i am getting the following error in the sxmb_moni.
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">WS_ADAPTER_SYS_ERROR</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>System error while calling Web service adapter: Error when initializing SOAP client application: 'error_text'</SAP:Stack>
<SAP:Retry>N</SAP:Retry>
</SAP:Error>ya I have checked the wsdl and even called the wsdl using Altova XmlSpy and getting back the response.Could anyone please throw light on this.
thanks
sabyasachi -
Problem calling WebService from Oracle Forms created by JDeveloper
Hi All,
I am trying to call a Webservice from Oracle Form using JAVA Class created by Oracle JDeveloper.
The Java Function (in JDeveloper) is as follows:
public Vector GetPIValue(String TagName, String ReadingTime) throws Exception
URL endpointURL = new URL(endpoint);
Envelope requestEnv = new Envelope();
Body requestBody = new Body();
Vector requestBodyEntries = new Vector();
requestBodyEntries.addElement(TagName);
requestBodyEntries.addElement(ReadingTime);
requestBody.setBodyEntries(requestBodyEntries);
requestEnv.setBody(requestBody);
Message msg = new Message();
msg.send(endpointURL, "http://tempuri.org/GetPIValue", requestEnv);
Envelope responseEnv = msg.receiveEnvelope();
Body responseBody = responseEnv.getBody();
return responseBody.getBodyEntries();
When this Class is Imported into Oracle Forms the Function is converted into the following PL/SQL code:
FUNCTION GetPIValue(
obj ORA_JAVA.JOBJECT,
a0 VARCHAR2,
a1 VARCHAR2) RETURN ORA_JAVA.JOBJECT IS
BEGIN
Message('param passed: '||a0||' - '||a1);
cls := JNI.GET_CLASS('oracle/forms/demos/webservice/ConnectToPIStub');
mid := JNI.GET_METHOD(FALSE, cls, 'GetPIValue', '(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Vector;');
args := JNI.CREATE_ARG_LIST(2);
JNI.ADD_STRING_ARG(args, a0);
JNI.ADD_STRING_ARG(args, a1);
Message('I am Here');
RETURN JNI.CALL_OBJECT_METHOD(obj, mid, args);
END;
When I am calling this Function from Within Forms and Passing into it the Parameters, I am displaying some Debugging Messages. When the Code reaches "JNI.CALL_OBJECT_METHOD" there is NO RESPONSE from the Webservice and nothing is moving forward after this Point...
A similar Webservice that can be Tested is:
http://www.webservicex.com/CurrencyConvertor.asmx
with WSDL file:
http://www.webservicex.com/CurrencyConvertor.asmx?wsdl
Kindly note that this Webservice is running properly from the Web Browser but the call from Oracle Forms is not Succeeding!!!! :-((
Any help is much appreciated.
Regards,
BazHi,
Yes, you need to compile your source files with JDK 1.3 (since JInit 1.3.x.x uses JDK 1.3).
Other solution would be to use JRE 1.5 (instead of JInitiator).
Check out [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=550563] on how to use JRE1.5
-Arun -
Error while retreiving data from oracle using EJB.
HII All,
I m getting this error while trying to retreive data from oracle DB using EJB.
An error has occurred. Maybe the request is not accepted by the server:
Exception in method empName.
HTTP/1.1 500 Internal Server Error
Connection: close
Server: SAP J2EE Engine/6.40
Content-Type: text/xml; charset=UTF-8
Set-Cookie: <value is hidden>
Date: Mon, 24 Jul 2006 10:50:11 GMT
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Exception in method empName.</faultstring><detail><ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException xmlns:ns1='http://sap-j2ee-engine/client-runtime-error'>Exception in method empName.</ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Thanks in advance
Devendra Phate.Hi Devendra,
this error message does not tell me much. Pleas either start debugging or watch your logs for more detailed messages.
Regards,
Benny -
Problem while calling webservice from a plsql stored procedure
Hi everybody,
I need to call a webservice from a plsql stored procedure.
I was following documentation published in the otn at the following link.
"http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html"
I am encountering the following error on my sql prompt-
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 "APPS.DEMO_SOAP", line 65
ORA-06512: at "APPS.TIME_SERVICE", line 13
ORA-06512: at line 1
Has anybody worked on the same example. Please direct me.
Thanks & Regards
Kiran KumarKiran, were you able to solve this?
I am facing the same error.
Oracle Server is Unix and webservice is .NET.
I am able to connect to Java web service. -
Calling Webservices from Oracle PL/SQL
Hi,
I am trying to call a webservice from PL/SQL using Oracle-10g database.
I am getting the error at the line ::
http_req:=utl_http.begin_request(p_url,'POST','HTTP/1.0');
p_url parameter is populated with the corresponding correct url.
ERROR ::
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1029
ORA-12541: TNS:no listener
However my application is runing fine in the server and from Toad/SQL plus I am able to connect to the database.
From outside also , the webservices are working. Please help me to solve this problem.
- Thanks
SandipanYou're probably behind a firewall and need to set a proxy server in the database.
You can do this by adding the following code (of course before you make a call to the SOAP request)
utl_http.set_proxy('yourproxy.yourcompany.com', NULL); -
PROBLEM DESCRIPTION :
When I try to read a clob from Oracle, I receive "ORA-03120: two-task
conversion routine: integer overflow" Error.
This error occurs only for CLOB Type and only if I try to connect to
Oracle using WebLogic JDriver/Oracle POOL.
IMPORTANT NOTE: I can read CLOB or any other data using direct JDBC
connection to ORacle with out any problem.
Below Please find the JAVA CODE for Both Working and NON Working .
Created a Connection Pool as:
Name: MyJDBCConnectionPool
URL : jdbc:weblogic:oracle
DIRVER:weblogic.jdbc.oci.Driver
NON WORKING JAVA CODE (USES WEBLOGIC JDBC CONNECTION POOL TO ORACLE):
Driver myDriver =
(Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
Connection mconn =
myDriver.connect("jdbc:weblogic:pool:MyJDBCConnectionPool",null);
mconn.setAutoCommit (false);
CallableStatement cs = mconn.prepareCall("{call
P_XMLTEST2(?)}"); //This returns a CLOB
cs.registerOutParameter(1,java.sql.Types.CLOB);
cs.execute();
Clob clob = null;
clob = cs.getClob(1);
String data =new String();
data = clob.getSubString(1, (int)clob.length());
System.out.println(data); //print the data
data = null;
clob=null;
cs.close();
WORKING JAVA CODE (USES DIRECT THIN JDBC CONNECTION TO ORACLE):
Driver myDriver =
(Driver)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
Connection mconn =
myDriver.connect("jdbc:oracle:thin:@server:1521:DB",null);
mconn.setAutoCommit (false);
CallableStatement cs = mconn.prepareCall("{call
P_XMLTEST2(?)}"); //This returns a CLOB
cs.registerOutParameter(1,java.sql.Types.CLOB);
cs.execute();
Clob clob = null;
clob = cs.getClob(1);
String data =new String();
data = clob.getSubString(1, (int)clob.length());
System.out.println(data); //print the data
data = null;
clob=null;
cs.close();
ERROR MESSAGE:
ORA-03120: two-task conversion routine: integer overflow
I appreciate your help on this problem.PROBLEM DESCRIPTION :
When I try to read a clob from Oracle, I receive "ORA-03120: two-task
conversion routine: integer overflow" Error.
This error occurs only for CLOB Type and only if I try to connect to
Oracle using WebLogic JDriver/Oracle POOL.
IMPORTANT NOTE: I can read CLOB or any other data using direct JDBC
connection to ORacle with out any problem.
Below Please find the JAVA CODE for Both Working and NON Working .
Created a Connection Pool as:
Name: MyJDBCConnectionPool
URL : jdbc:weblogic:oracle
DIRVER:weblogic.jdbc.oci.Driver
NON WORKING JAVA CODE (USES WEBLOGIC JDBC CONNECTION POOL TO ORACLE):
Driver myDriver =
(Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
Connection mconn =
myDriver.connect("jdbc:weblogic:pool:MyJDBCConnectionPool",null);
mconn.setAutoCommit (false);
CallableStatement cs = mconn.prepareCall("{call
P_XMLTEST2(?)}"); //This returns a CLOB
cs.registerOutParameter(1,java.sql.Types.CLOB);
cs.execute();
Clob clob = null;
clob = cs.getClob(1);
String data =new String();
data = clob.getSubString(1, (int)clob.length());
System.out.println(data); //print the data
data = null;
clob=null;
cs.close();
WORKING JAVA CODE (USES DIRECT THIN JDBC CONNECTION TO ORACLE):
Driver myDriver =
(Driver)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
Connection mconn =
myDriver.connect("jdbc:oracle:thin:@server:1521:DB",null);
mconn.setAutoCommit (false);
CallableStatement cs = mconn.prepareCall("{call
P_XMLTEST2(?)}"); //This returns a CLOB
cs.registerOutParameter(1,java.sql.Types.CLOB);
cs.execute();
Clob clob = null;
clob = cs.getClob(1);
String data =new String();
data = clob.getSubString(1, (int)clob.length());
System.out.println(data); //print the data
data = null;
clob=null;
cs.close();
ERROR MESSAGE:
ORA-03120: two-task conversion routine: integer overflow
I appreciate your help on this problem. -
Page fault error while calling reports from forms
dear friends.
when a report is called from forms, just before opening up of background engine the application gets hanged with page fault. One has to forcibly shut down the application before loggin again.
The error mesage generated from log file is
Fatal NI connect error 12203, connecting to:
(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle80)(ARGV0=oracle80orcl)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')))(CONNECT_DATA=(SID=orcl)(CID=(PR OGRAM=C:\ORAWIN95\BIN\RWRBE60.EXE)(HOST=SOUMYADIP)(USER=Soumya))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 8.0.5.0.0 - Production
Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 8.0.4.0.0 - Production
Time: 06-MAY-00 14:03:32
Tracing not turned on.
Tns error struct:
nr err code: 12203
TNS-12203: TNS:unable to connect to destination
ns main err code: 12560
TNS-12560: TNS:protocol adapter error
ns secondary err code: 0
nt main err code: 102
TNS-00102: Keyword-Value binding operation error
nt secondary err code: 0
nt OS err code: 0
After closing if we run the report next time it runs, but after 3/4 attempts the above error again occurs.
Please Help
PrashantI'm getting this also. I thought it was
due to my use of DATA PARAMETER. I've
logged TARS on this and have yet to hear
back from Oracle.
Maybe if enough of us get the error Oracle
will give some guidance on this one. -
'ORA-12571: TNS:packet writer failure' error while calling procedure from VC++
hi all,
i am writing stored procedures and calling these from vc++. I have one stored procedure in that all
in and out perameters are numeric. When i am calling these procedure i am able to get the values properly. But in another procedure one in perameter is varchar and one out perameter is varchar. When i am calling these procedure from vc++ the error i am getting is "ORA-12571: TNS:packet writer failure". I test my vc++ code on different computers but its giving the same errors. I think ora-12571 error is when i can't communicate with oracle. But other stored procedures(in and out perameters are numbers) and sql statements are running properly. Only these stored procedure which has in and out perameters as varchar is giving me the above said problem. My out perameter in this procedure strtax is of type varchar and the length 100. Is it the problem. Please suggest me how to over come this problem.
thanks in advance,
with regards
vali.Hi
We recently changed our load balancer to a new load balancer. we get this error only after the load balancer change.
When the error occurs, I could see ORA-12571 error message only in the application error log. The listener.log has only the following message about TNS 12502. It does not have any message about ORA -12571.
TNS-12502: TNS:listener received no CONNECT_DATA from client
12-MAR-2010 12:23:26 * (CONNECT_DATA=(SERVICE_NAME=AppName)(CID=(PROGRAM=c:\wind ows\system32\inetsrv\w3wp.exe)(HOST=WEB02)(USER=NETWORK?SERVICE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.x.x.x.x)(PORT=2202)) * establish * AppName * 0
12-MAR-2010 12:23:26 * (CONNECT_DATA=(SERVICE_NAME=AppName)(CID=(PROGRAM=c:\wind ows\system32\inetsrv\w3wp.exe)(HOST=WEB02)(USER=NETWORK?SERVICE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.x.x.x.x)(PORT=2203)) * establish * AppName * 0
12-MAR-2010 12:23:26 * (CONNECT_DATA=(SERVICE_NAME=AppName)(CID=(PROGRAM=c:\wind ows\system32\inetsrv\w3wp.exe)(HOST=WEB02)(USER=NETWORK?SERVICE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.x.x.x.x)(PORT=2204)) * establish * AppName * 0
12-MAR-2010 12:24:09 * 12502
TNS-12502: TNS:listener received no CONNECT_DATA from client
Thanks
Ashok -
ESS throwing error while calling transaction from R/3
Whenever u try to pull certain I-view like under ESS > Income tax provisional statement then the portal throws below mentioned error. Portal is not able to call transactions from R/3.
Error:
The requested URL could not be retrieved
While trying to retrieve the URL: http://dev.mglep.com:26000/sap(ZT0yZElaRG5xNDlZdFF4aGcyTDhzMWxRLS1hVUR5bDBMbjBDZ2hWUUcyMlZmcmlBLS0=)/bc/gui/sap/its/webgui?
The following error was encountered:
Connection to 69.43.161.156 Failed
The system returned:
(111) Connection refusedThe remote host or network may be down. Please try the request again.
Your cache administrator is root.
Please helpHi,
Please check the parameters that has been defined in SICF for the transaction you are using.
With Regards,
Kaustuv Goswami.
Maybe you are looking for
-
Ever since I started using Mozilla Firefox on my new Windows 7 computer it has crashed -- sometimes a few times a day, sometimes every ten minutes. I will copy the error message details at the end of this, if I can. I have tried numerous technicians
-
Hi! I bought a song on itunes, and now it won't play on my computer or iPod. Itunes on my computer keeps telling me that I'm not authorized to play the song on my computer, even after reauthorizing it. Is there anything I can do to play the song?
-
Funny symbol & how to get rid of it
I was working with text a while ago. All is ok. Then suddenly, I don't know how it happen, when I press "T" and start to click on an area where I will put a text, a funny symbol like the one below starts to appear. Can anyone tell me what caused this
-
Where to get tech support?
There is a cross-platform compatibility error in LiveCycle ES2. Who do I contact to get it fixed?
-
Difference between ITS and WAS server
difference between ITS and WAS server