Making a SOAP call using PL/SQL in Oracle 8.1.7.4.1
Hi
Our environment is as follows:
Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
JServer Release 8.1.7.4.1 - Production
Forms [32 Bit] Version 6.0.8.12.1 (Production)
Oracle Toolkit Version 6.0.8.12.1 (Production)
PL/SQL Version 8.0.6.0.0 (Production)
Oracle Procedure Builder V6.0.8.12.1 Build #520 - Production
Oracle Query Builder 6.0.7.0.0 - Production
Oracle Virtual Graphics System Version 6.0.5.36.0 (Production)
Oracle Tools GUI Utilities Version 6.0.5.35.0 (Production)
Oracle Multimedia Version 6.0.5.34.0 (Production)
Oracle Tools Integration Version 6.0.8.10.2 (Production)
Oracle Tools Common Area Version 6.0.5.32.1
Oracle CORE Version 4.0.6.0.0 - Production
We have a Client/Server application.
We need to make a SOAP call within PL/SQL.
As far as I know Versions 9i and above have the necessary facilities built-in.
We are using 8i (8.1.7.4.1) and short term upgrade is not planned.
What are our options, could you please help?
Hello,
I'm trying to investigate the same thing.
I want to make a soap-client with PL/SQL with 8i 8.1.6.0.0
Did you succeed some additional information ??
I tried to run the following example:
http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html
but it only works with 9i.
With 8i the errors encountered were : XMLTYPE undefined
Perhaps if we find the definition of XMLTYPE and we process it to 8i we'll be able to run the example ??
thank's
Similar Messages
-
How to make a SOAP call using the PI 7.1
Hi All,
Can you please tell me how can we make a SOAP call using the PI 7.1?
Thanks in advanceHello Shweta,
Could you please clarify your question? Do you mean you need to call some business system from PI via SOAP? Or do you need to test integration model using SOAP client?
If the requirement is to make a SOAP call to PI (send SOAP request to PI system), please refer to the guide which Stefan suggested in his post. The general procedure is the following:
1. generate concrete WSDL in PI (you can do it via PI's Integration Directory);
2. import generated WSDL to SOAP client (e.g. XML Spy described in the guide or soapUI which is free SOAP client);
3. create SOAP request message in the SOAP client and send it to the endpoint (in this case, it will be sent to PI).
This is general procedure for making SOAP calls to SAP PI using external SOAP clients. Please advise if specified steps should be described in more details or if there are any questions from your side regarding them.
If the question is about calling business system from PI via SOAP, then please refer to SAP Help, configuration of SOAP receiver::
http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm
My regards,
Vadim -
Can we use Dynamic SQL in Oracle Reports ?
Hi ,
Can we use Dynamic SQL in Oracle Reports ?
If yes please give some examples .
Thanx
sriniI believe the built-in package SRW.Do_Sql is what you are looking for
Example from the document:
/* Suppose you want to create a "table of contents" by getting the
** first character of a columns value, and page number on which its
** field fires to print. Assume that you want to put the "table of
contents"
** into a table named SHIP. You could write the following construct:
DECLARE
PAGE_NO NUMBER;
PAGE_FOR INDEX NUMBER;
SORT_CHAR CHAR(1);
CMD_LINE CHAR(200);
BEGIN
SORT_CHAR := :SORT_NAME ;
IF :CALLED = Y THEN
SRW.GET_PAGE_NUM(PAGE_FOR_INDEX);
SRW.USER_EXIT(RWECOP PAGE_FOR_INDEX
P_START_PAGENO);
SRW.MESSAGE(2,TO_CHAR(:P_START_PAGENO));
END IF;
SRW.GET_PAGE_NUM(PAGE_NO);
CMD_LINE := INSERT INTO SHIP VALUES
(||SORT_CHAR||,||TO_CHAR(PAGE_NO)||);
SRW.MESSAGE(2,CMD_LINE);
SRW.DO_SQL(CMD_LINE);
COMMIT;
EXCEPTION
WHEN DUP_VAL_ON_INDEX THEN
NULL;
WHEN SRW.DO_SQL_FAILURE THEN
SRW.MESSAGE(1,FAILED TO INSERT ROW INTO SHIP TABLE);
WHEN OTHERS THEN
COMMIT;
END; -
How to download a SOAP attachment using pl/sql
Gurus,
I have a custom pl sql application that is web services based. The custom pl sql application invokes the external web services and updates Oracle Field Service application.
One of the new requirements is to get the signatures from SOAP Attachments (a binary file) and attach it to Field Services transactions in Oracle.
Does anyone has an example of how to download the SOAP attachment file from web service using pl/sql.
The pl sql program uses UTL_HTTP to access web services.
Much Thanx.I think you may be in the wrong forum, but anyways...
What I think your looking for is the htp.print('insert html here'); function. It's plsql, and writes out html to the web server that calls it.
if you search for htp.print you should find loads of examples.
hope this helps.
Merv. -
Asynchronous web service call using PL/SQL
Hi Guys,
i'm using Apex 4.1.
Is that possible to invoke a web service asynchronously within PL/SQL code block ? If so,
How can i access the return value of the service when execution of that web service completes ?Bolev wrote:
We have (Oracle 10g) automated process (ETL) based on internal data. Now there is an offer to incorporate existing web service call (let's say for additional record verification) in this process. Service call (I do not know what type of it yet) is using data from remote database which is not ours.Web service calls from PL/SQL is not that complex. You can use the standard UTL_HTTP package as shown in {message:id=4205205}.
I never heard anybody goes this way especially for ETL processes.Well, if you push a million rows through the ETL process and the call overhead for the web service call (assuming perfect network and web server response) is 1 sec, that translates into 277+ hours of runtime alone for the validation to be done via web service.
So yeah - it would seem kind of silly to use something like a web service to validate large volumes ETL data. -
Making a phone call using jtapi
hi
I am trying to make a phone call using a java program. I downloaded javax.telephony class files
J323 engine and installed it
JMF studio as i read in a forum. Did anyone try to do this. I tried to compile the example chords but doesn't identify the javax.telephony package.
Where should i put the .class files?
How should i configure J323 engine.By the way i am using windows.
Thank you in advance
goodnewsI don't know if that is possible, because the application may have to be closed if the system does not have enough capabilities and resources, so it depends on the phone. Read the API docs for the platformRequest method for more info about this.
I would give it a try though and see what happens.
Mihai -
Using a SQL for Oracle in Microsoft Excel Query
I am having the most difficult time (in fact, I can't get it to work) trying to use an SQL I created in Toad for Oracle. It works fine in Toad for Oracle...gives me all the data I need. I am trying to use it in Excel for users that don't know SQL or Oracle so they can use the query to extract data they need for Charts, Graphs, etc.
Here is the SQL code from Toad for Oracle:
/* Formatted on 2006/09/22 11:42 (Formatter Plus v4.8.6) */
SELECT a_compl_summary.incident_number, a_compl_summary.case_number,
a_compl_summary.part_sequence, a_compl_summary.part_number,
a_compl_summary.lot_number, a_compl_summary.alert_date,
a_compl_summary.entry_date, a_compl_summary.NAME,
a_compl_summary.MONTH, a_compl_summary.product_family,
a_compl_summary.complaint, a_compl_summary.reportable,
a_compl_summary.product_returned, a_compl_summary.case_desc,
a_compl_summary.failure_invest_desc, a_compl_summary.lhr_search,
a_compl_summary.root_cause, a_compl_summary.corrective_action,
a_compl_summary.region,
rp_qa_reported_device_codes.reported_device_code,
rp_qa_reported_device_codes.reported_dev_clarification,
rp_qa_reported_device_codes.reported_dev_code_desc,
rp_qa_patient_codes.patient_code,
rp_qa_patient_codes.patient_code_clarif,
rp_qa_patient_codes.patient_code_severity,
rp_qa_patient_codes.description
FROM chsuser.a_compl_summary,
chsuser.rp_qa_patient_codes,
chsuser.rp_qa_reported_device_codes
WHERE ( (a_compl_summary.product_division = 'CP')
AND ( a_compl_summary.entry_date >= :date1
AND a_compl_summary.entry_date <= :date2
AND ( a_compl_summary.product_family LIKE :pf1
OR a_compl_summary.product_family LIKE :pf2
OR a_compl_summary.product_family LIKE :pf3
OR a_compl_summary.product_family LIKE :pf4
OR a_compl_summary.product_family LIKE :pf5
AND (a_compl_summary.region = :r1)
AND ( a_compl_summary.NAME = :c1
OR a_compl_summary.NAME = :c2
OR a_compl_summary.NAME = :c3
OR a_compl_summary.NAME = :c4
OR a_compl_summary.NAME = :c5
AND (a_compl_summary.complaint = :yorn)
AND ( rp_qa_reported_device_codes.reported_dev_clarification LIKE
:cl1
OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
:cl2
OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
:cl3
OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
:cl4
OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
:cl5
AND (rp_qa_reported_device_codes.reported_dev_clarification NOT LIKE
:dc1
AND (a_compl_summary.incident_number =
rp_qa_patient_codes.incident_number
AND (a_compl_summary.case_number = rp_qa_patient_codes.case_number)
AND (a_compl_summary.part_sequence = rp_qa_patient_codes.part_sequence
AND (a_compl_summary.incident_number =
rp_qa_reported_device_codes.incident_number
AND (a_compl_summary.case_number =
rp_qa_reported_device_codes.case_number
AND (a_compl_summary.part_sequence =
rp_qa_reported_device_codes.part_sequence
AND (rp_qa_reported_device_codes.incident_number =
rp_qa_patient_codes.incident_number
AND (rp_qa_reported_device_codes.case_number =
rp_qa_patient_codes.case_number
AND (rp_qa_reported_device_codes.part_sequence =
rp_qa_patient_codes.part_sequence
)Can someone help me...maybe point out what I'm doing wrong.
Note: I also tried creating this query in Microsoft Query (the simple way) and when I first create it...it works...But then if I go back in to edit the query, and refresh the query or try to Return data to Excel, it gives me a ORA-00936 error message.
Why it works when I first create the query in Excel, I don't know. But I have to validate the queries I'm creating (SQL or not) and I can't validate it if every time I go into edit the query (which may have to happen; that's why I have to fix this before I can submit my validation).
Anyway, any help would be greatly appreciated.Okay, I know I'm replying to my own threads here...but I want to add a little bit more information again.
I was successful in figuring out that changing the :criteria to a ? worked.
I tested this on 1 criteria at a time. Adding one more scenario ? at at time.
It only worked up until about 3 scenarios of each criteria.
Then when I refreshed the query in Microsoft Excel Query, I got an "out of memory" error, and then it ended up just erasing the SQL I had been using.
Here's the SQL I had where it gave me this error. Am I possibly just making Excel work too hard? It just doesn't make sense because Toad for Oracle handled it in like 4 seconds. Which brings me back to an intial question I had. Can Excel use Toad for Oracle somehow?
Here's the code:
SELECT a_compl_summary.incident_number, a_compl_summary.case_number,
a_compl_summary.part_sequence, a_compl_summary.part_number,
a_compl_summary.lot_number, a_compl_summary.alert_date,
a_compl_summary.entry_date, a_compl_summary.NAME,
a_compl_summary.MONTH, a_compl_summary.product_family,
a_compl_summary.complaint, a_compl_summary.reportable,
a_compl_summary.product_returned, a_compl_summary.case_desc,
a_compl_summary.failure_invest_desc, a_compl_summary.lhr_search,
a_compl_summary.root_cause, a_compl_summary.corrective_action,
a_compl_summary.region,
rp_qa_reported_device_codes.reported_device_code,
rp_qa_reported_device_codes.reported_dev_clarification,
rp_qa_reported_device_codes.reported_dev_code_desc,
rp_qa_patient_codes.patient_code,
rp_qa_patient_codes.patient_code_clarif,
rp_qa_patient_codes.patient_code_severity,
rp_qa_patient_codes.description
FROM chsuser.a_compl_summary,
chsuser.rp_qa_patient_codes,
chsuser.rp_qa_reported_device_codes
WHERE ( (a_compl_summary.incident_number =
rp_qa_patient_codes.incident_number
AND (a_compl_summary.case_number = rp_qa_patient_codes.case_number)
AND (a_compl_summary.part_sequence = rp_qa_patient_codes.part_sequence
AND (a_compl_summary.incident_number =
rp_qa_reported_device_codes.incident_number
AND (a_compl_summary.case_number =
rp_qa_reported_device_codes.case_number
AND (a_compl_summary.part_sequence =
rp_qa_reported_device_codes.part_sequence
AND (rp_qa_reported_device_codes.incident_number =
rp_qa_patient_codes.incident_number
AND (rp_qa_reported_device_codes.case_number =
rp_qa_patient_codes.case_number
AND (rp_qa_reported_device_codes.part_sequence =
rp_qa_patient_codes.part_sequence
AND (a_compl_summary.product_division = 'CP')
AND ( a_compl_summary.entry_date >= ?
AND a_compl_summary.entry_date <= ?
AND ( a_compl_summary.product_family LIKE ?
OR a_compl_summary.product_family LIKE ?
OR a_compl_summary.product_family LIKE ?
OR a_compl_summary.product_family LIKE ?
OR a_compl_summary.product_family LIKE ?
AND (a_compl_summary.region = ?)
AND ( a_compl_summary.NAME = ?
OR a_compl_summary.NAME = ?
OR a_compl_summary.NAME = ?
OR a_compl_summary.NAME = ?
OR a_compl_summary.NAME = ?
AND (a_compl_summary.complaint = ?)
AND ( rp_qa_reported_device_codes.reported_dev_clarification LIKE
OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
AND (rp_qa_reported_device_codes.reported_dev_clarification NOT LIKE
)) -
Delcare Cursor using Dynamic SQL using PL/SQL in Oracle 7.3.4
In Oracle 7.3.4, can I declare a cursor at run time using Dynamic SQL. From the sample code in this website, it seems that Oracle 8 support this function. Please help. Thanks a lot.
If I can do this on Oracle 7.3.4, could you give me some sample codes? Thanks.
Regards,
RaymondHi,
Try using the the following code where you can dynamically build the Valid Select stmt. and call that where ever you want.
declare
Type Cur_ref Is Ref Cursor;
C_ref Cur_ref;
V_Str Varchar2(100);
V_Name Varchar2(100);
Begin
V_Str := 'Select Ename from Scott.emp Where empno = 7369';
Open C_Ref for V_Str;
Fetch C_ref Into V_Name;
close C_Ref;
dbms_output.put_line(V_Name);
End;
regards
gaurav
null -
I've the following header and http request.
POST http://deab/DexNETWebServices_4_0_0_4/LoginService.svc HTTP/1.1
MIME-Version: 1.0
Content-Type: multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=1";start-info="application/soap+xml"
VsDebuggerCausalityData: uIDPo5F/qXRc4YJImqB6Ard30cQAAAAAAjIXinpIVUulXLJOsSG7yyv7Lf2yHgpHlIxvc6oeqaAACQAA
Host: deab
Content-Length: 1017
Expect: 100-continue
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
--uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=1
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml"
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://tempuri.org/ILoginService/LoginByUserName</a:Action><a:MessageID>urn:uuid:cf410a05-23d4-4b92-a22c-329cbc19fbe7</a:MessageID><a:ReplyTo><a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address></a:ReplyTo><a:To s:mustUnderstand="1">http://deab/DexNETWebServices_4_0_0_4/LoginService.svc</a:To></s:Header><s:Body><LoginByUserName xmlns="http://tempuri.org/"><systemId>19e0ddb4-5fa5-41ee-b624-aea762865a6c</systemId><strName>FirmwareUpdateLogQueryWorker</strName><productId>0af39a3e-6549-485b-872f-b73413203998</productId><password>abc</password></LoginByUserName></s:Body></s:Envelope>
--uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=1--
I'm using the following code to set the header from PL/SQL and call the request. But UTL_HTTP.get_response returns the error 400 Bad Request.
DECLARE
l_request CLOB;
l_http_req UTL_HTTP.req;
l_http_resp UTL_HTTP.resp;
v_buffer VARCHAR2 (32767);
p_status_code NUMBER (9);
p_error_message VARCHAR2 (32767);
p_response CLOB;
BEGIN
l_request :=
'--uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=1'
|| CHR (13)
|| 'Content-ID: <http://tempuri.org/0>'
|| CHR (13)
|| 'Content-Transfer-Encoding: 8bit'
|| CHR (13)
|| 'Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml"'
|| CHR (13)
|| CHR (13)
|| '<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://tempuri.org/ILoginService/LoginByUserName</a:Action><a:MessageID>urn:uuid:cf410a05-23d4-4b92-a22c-329cbc19fbe7</a:MessageID><a:ReplyTo><a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address></a:ReplyTo><a:To s:mustUnderstand="1">http://deab/DexNETWebServices_4_0_0_4/LoginService.svc</a:To></s:Header><s:Body><LoginByUserName xmlns="http://tempuri.org/"><systemId>'
|| '19e0ddb4-5fa5-41ee-b624-aea762865a6c'
|| '</systemId><strName>'
|| 'FirmwareUpdateLogQueryWorker'
|| '</strName><productId>'
|| '0af39a3e-6549-485b-872f-b73413203998'
|| '</productId><password>'
|| 'abc'
|| '</password></LoginByUserName></s:Body></s:Envelope>'
|| CHR (13)
|| '--uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=1--';
DBMS_OUTPUT.put_line ('request ' || l_request);
l_http_req := UTL_HTTP.begin_request ('http://deab/DexNETWebServices_4_0_0_4/LoginService.svc', 'POST', 'HTTP/1.1');
UTL_HTTP.set_header (l_http_req, 'MIME-Version', '1.0');
UTL_HTTP.set_header (
l_http_req,
'Content-Type',
'multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=1";start-info="application/soap+xml"');
-- UTL_HTTP.set_header (l_http_req, 'Content-ID', '<http://tempuri.org/0>');
-- UTL_HTTP.set_header (l_http_req, 'Content-Transfer-Encoding', '8bit');
UTL_HTTP.set_header (
l_http_req,
'VsDebuggerCausalityData',
'uIDPo5F/qXRc4YJImqB6Ard30cQAAAAAAjIXinpIVUulXLJOsSG7yyv7Lf2yHgpHlIxvc6oeqaAACQAA');
UTL_HTTP.set_header (l_http_req, 'Content-Length', LENGTH (l_request));
-- UTL_HTTP.set_header (l_http_req,
-- 'SOAPAction',
-- 'http://tempuri.org/ILoginService/LoginByUserName');
UTL_HTTP.write_text (l_http_req, l_request);
DBMS_LOB.createtemporary (p_response, FALSE);
l_http_resp := UTL_HTTP.get_response (l_http_req);
BEGIN
LOOP
UTL_HTTP.read_text (l_http_resp, v_buffer, 32767);
DBMS_OUTPUT.put_line (v_buffer);
DBMS_LOB.writeappend (p_response, LENGTH (v_buffer), v_buffer);
END LOOP;
EXCEPTION
WHEN UTL_HTTP.end_of_body
THEN
NULL;
END;
UTL_HTTP.end_response (l_http_resp);
p_status_code := l_http_resp.status_code;
p_error_message := l_http_resp.reason_phrase;
p_response := REPLACE (p_response, '<', '<');
p_response := REPLACE (p_response, '>', '>');
DBMS_OUTPUT.put_line (
'Status: ' || p_status_code || '-' || p_error_message || ': ' || p_response);
END;
Thank you for your help on this.HI Michiel
I am also trying to achieve something similar to that. I am trying to call a web service that sends an xml attachment over MTOM? Kindly, let me know if this was achievable from your end? I mean how did the issue got resolved.
thanks
vijay -
Making a SOAP call through a proxy! Please help!!!
I'm behind a firewall. I've checked most of the posting in the forum and on the Internet. Most get by using the java.net.Authenticator class, and setting default properties such as https.proxyHost, https.proxyUserName, https.proxyPassword etc. I've tried all that!!! Still doesn't work.
Here's the error msg I get:
Required
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(Unknown
Source)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
ost.run(Unknown Source)
... 4 more
javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml
.soap.SOAPException: Bad response: (407Proxy Authentication Required
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(Unknown
Source)
at GoogleJPClient.sendGoogJMsg(GoogleJPClient.java:103)
at GoogleJPClient.main(GoogleJPClient.java:149)
Caused by: java.security.PrivilegedActionException: javax.xml.soap.SOAPException
: Bad response: (407Proxy Authentication Required
at java.security.AccessController.doPrivileged(Native Method)
... 3 more
Caused by: javax.xml.soap.SOAPException: Bad response: (407Proxy Authentication
Required
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(Unknown
Source)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
ost.run(Unknown Source)
... 4 more
Attached is my code snippet:
========================================================================
public class GoogleJPClient
private static final String DEFAULT_HOST_URL =
"http://api.google.com/search/beta2";
private static final String URI = "urn:doGoogleSearch";
//Member variables
private String m_hostURL;
public GoogleJPClient(String hostURL) throws Exception
m_hostURL = hostURL;
public class pAuth extends Authenticator
protected PasswordAuthentication getPasswordAuthentication()
String uname = "apnt\\soolu01";
String pw = "boromir";
return new PasswordAuthentication(uname, pw.toCharArray());
public void sendGoogJMsg()
try
Properties props = new Properties();
props.setProperty("com.sun.xml.registry.https.proxyHost", "proxy_server");
props.setProperty("com.sun.xml.registry.https.proxyPort", "80");
props.setProperty("com.sun.xml.registry.https.proxyUserName", "a-user");
props.setProperty("com.sun.xml.registry.https.proxyPassword", "a-passwd");
javax.xml.soap.SOAPConnectionFactory scf =
javax.xml.soap.SOAPConnectionFactory.newInstance();
javax.xml.soap.SOAPConnection conn = scf.createConnection();
//conn.setProperties(props);
//Get instance of MessageFactory class
javax.xml.soap.MessageFactory mf =
javax.xml.soap.MessageFactory.newInstance();
//Create message from the message factory, already containing
//SOAP part
javax.xml.soap.SOAPMessage message = mf.createMessage();
//.Get the message's SOAP part
javax.xml.soap.SOAPPart soapPart = message.getSOAPPart();
//Populate msg with Google template
StreamSource prepMsg = new StreamSource(new FileInputStream("doGoogleSearchmod.xml"));
soapPart.setContent(prepMsg);
message.saveChanges(); //save changes
//fingers crossed
java.net.Authenticator.setDefault(new pAuth());
//Properties props = System.getProperties();
System.setProperty("https.proxyHost", "a-proxyserver");
System.setProperty("https.proxyPort", "80");
System.setProperty("https.proxyUserName", "a-username");
System.setProperty("https.proxyPassword", "a-passwd");
System.setProperty("https.proxySet", "true");
System.setProperty("http.proxyHost", "proxy_server");
System.setProperty("http.proxyPort", "80");
System.setProperty("http.proxyUserName", "a-username");
System.setProperty("http.proxyPassword", "a-passwd");
System.setProperty("http.proxySet", "true");
//System.setProperties(props);
URLEndpoint dest =
new URLEndpoint("http://api.google.com/search/beta2");
javax.xml.soap.SOAPMessage reply = conn.call(message, dest);
TransformerFactory tFact = TransformerFactory.newInstance();
Transformer t = tFact.newTransformer();
Source srcContent = reply.getSOAPPart().getContent();
StreamResult res = new StreamResult("doGoogleSearchresp.xml");
t.transform(srcContent, res);
System.out.println("Received reply from: " + m_hostURL);
//Display reply from endpoint
boolean dispRes = true;
if(dispRes)
//Dump onto screen
System.out.println("Result:");
reply.writeTo(System.out);
conn.close();
}catch(Throwable e){
e.printStackTrace();
public static void main(String args[])
//String hostURL = DEFAULT_HOST_NAME;
Properties sysprop= System.getProperties();
//sysprop.put("firewallHost", "proxy_server");
//sysprop.put("firewallPort", "80");
//sysprop.put("firewallSet", "true");
//sysprop.put("proxyHost", "proxy_server");
//sysprop.put("proxyPort", "80");
//sysprop.put("proxySet", "true");
try
GoogleJPClient gjc = new GoogleJPClient("http://api.google.com/search/beta2");
gjc.sendGoogJMsg();
}catch(Exception e){
e.printStackTrace();
========================================================================
As you can see it's pretty messy, and I've tried getting around the HTTPS proxy in a variety of methods, but with no results.
Please help.
Rgds,
frustrated.Hi,
I've just experienced trouble with the same thing and I found that setting the following System properties works fine when I use the Apache Axis 1.0 libraries. Note that it's "proxyUser" and not "proxyUserName".
System.setProperty("http.proxySet", "true");
System.setProperty("http.proxyHost", "10.1.1.1");
System.setProperty("http.proxyPort", "80");
System.setProperty("http.proxyUser", "mydomain\\myusername");
System.setProperty("http.proxyPassword", "mypassword");
I can then make HTTP and HTTPS connections and send SOAP messages with no worries.
I'm in an NT environment and hence had to specify the domain as well as the username (and escape the backslash between them) for the proxy to let me through otherwise I got a "407 proxy authentication required" error.
I'm certain this works fine as I've tested it myself.
Hope this helps you out.
Shane. -
Making Palm System calls using J2ME
Hi is there anyway where I can use the old KJava API or even the J2ME to make system calls such as
DmFindDatabase(0,"Something")
SysAppLaunch(0,dbID,0,cmdPrintChars,theChars,&result);
axlrose82[axlrose82],
At the moment, we are quite certain that the kVM for the PalmOS do not contain any API that allows a developer to make system calls to the PalmOS itself. The CLDC/MIDP specification does not specify any native system calls access any of the native apps. I can see from your code that you are trying to access the Palm database but I'm afraid you are out of luck with the current specs.
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/ -
Flash Builder 4.5 SOAP call for images using Base64 Encoding
I am trying to load some image meta data in a flash builder mobile application by making a SOAP call to .Net service. I am able to test the web service successfully using a .Net console application. However when I make the call from flash builder mobile client I get a null result. What am I doing wrong? I am using SOAP 1.1 ByteArray didn't work for Flash builder. So converted the ByteArray to Base64 format and tried to obtain result that way. Both ways worked from a .Net Client but not working from Flash mobile.
Here is the code
<fx:Script>
<![CDATA[
import mx.graphics.ImageSnapshot;
import mx.graphics.codec.JPEGEncoder;
import mx.graphics.codec.PNGEncoder;
import mx.rpc.AsyncToken;
import mx.utils.Base64Encoder;
import services.exifimagemetadata1.ExifImageMetaData1;
import spark.components.Image;
public var metaData:ExifImageMetaData1 = new ExifImageMetaData1();
public var imageBytes:ByteArray = new ByteArray();
public var gpsData:String;
private function getBase64EncodedImage():String
var myEncoder:Base64Encoder = new Base64Encoder();
myEncoder.encodeBytes(getImageBytes());
var image64BitText:String = myEncoder.toString();
return image64BitText;
public function GetMetaDataFromExif():void{
var imageToken:AsyncToken = metaData.GetExifBase64Data(getBase64EncodedImage());
gpsData = imageToken.result.toString();
metaResult.text = gpsData;
protected function GetImageMetaDataFromExif(event:MouseEvent):void
GetMetaDataFromExif();
]]>
</fx:Script>
<s:layout>
<s:VerticalLayout>
</s:VerticalLayout>
</s:layout>
<s:HGroup>
<s:Image id="test" width="130" height="140" source="@Embed(source='assets/p1000106.jpg')"/>
</s:HGroup>
<s:HGroup>
<s:Label width="100" height="140" backgroundColor="Blue" click="GetImageMetaDataFromExif(event)">
<s:text/>
</s:Label>
</s:HGroup>
<s:HGroup>
<s:Label id="metaResult" width="200" height="140" backgroundColor="yellow"/>
</s:HGroup>Hello everyone -
Since I last posted an interesting update happened. I tested my Flex application again, it is calling a Jetty Server that returns a JSON object, in different BROWSERS. I disabled HTTPS for now, and the crossdomain.xml policy file is wide open for testing (ie. allowing every request to return data). So the app accessing the data using HTTP only. Browsers - IE, Opera, Firefox and Chrome. Each browser contained the SAME application, revision of the Flash Player (10.3.183.10 debugger for firefox, chrome, opera, safari PC; 11.0.1.129 consumer version in IE9,) take a look at the screen shot (safari not shown although the result was the same as IE and chrome)
Note that Opera and Firefox returned successful values (i.e. successful JSON objects) using the same code generated from the Data Services Wizard. Chrome, IE and, Safari failed with an Internal error. So I am left wondering - WHY? Is it something with the Flash Player? the Browsers? the Flex SDK? Any thoughts are appreciated. Again, the code is found in the original thread above. -
How to use LKM sql Incremetal update
Hi ,
I am using ODI to intergrate the SQL server database to Oracle. I have created interface where it selects all the records and puts in to Staging area (Oracle). I want to have only daily incements to add to the staging stable (initial full load) and keep append only incrementals.
I am using LKM SQL to oracle and IKM oracle incremental update. when I run it is appending all the rows instead of increments. I have defined unique key also. but can't this work with duplicates . I have a date in the table. but the date will contain duplicates as it is a transactional data. I want to roleup using the date. I need only the increments to be loaded in staging area.
help requested.
VeerHi,
I noticed this as well; the IKM compares the complete resultset of the flow in the Interface with the rows in the target-table. In case you have a datestamp (sysdate) in your flow, the resultsets will always be different.
What I did to overcome this is, is edit the IKM (make a duplicate first) and make sure that the check will not be done on the complete resultset, but only on the Unique Key columns.
For this, I have edited step 132 in the IKM and removed the code that generates the "minus select .... from ..."
I hope this helps you.
Steffen -
Documention for creating portlets using pl/sql???
Hi,
can anyone help me get links for any kind of documentation about creating portlets using pl/sql for Oracle Application Server Portal 10g
thanks
MI think this will help out...
Check out Chapter 8, "Creating PL/SQL Portlets" in the Oracle Portal 10.1.4 Developer's Guide.
http://download-east.oracle.com/docs/cd/B14099_19/portal.1014/b14135/pdg_pdk_plsql.htm#BJEFHIBH -
Unhandled exception in SOAP call
I get this exception when I try to add a provider for the samples for inlineRendering.
I recently installed the August 2002 version of the JPDK.
Any help will be appreciated.
-NP
STACK::: start
8/30/02 10:53 AM default-app: [id=(null), instance=(null)] Unhandled exception in SOAP call
java.lang.NullPointerException
at oracle.portal.utils.xml.v2.XMLUtil.parseStylesheet(Unknown Source)
at oracle.portal.provider.v2.http.DefaultProviderLoader.parseRegistry(Unknown Source)
at oracle.portal.provider.v2.http.DefaultProviderLoader.getProviderDefinition(Unknown Source)
at oracle.portal.provider.v2.http.DefaultProviderLoader.init(Unknown Source)
at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.init(Unknown Source)
at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.locateService(Unknown Source)
at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.processInternal(Unknown Source)
at oracle.webdb.provider.v2.utils.soap.SOAPProcessor.process(Unknown Source)
at oracle.webdb.provider.v2.adapter.SOAPServlet.doSOAPCall(Unknown Source)
at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:684)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
STACK::: endAmjad,
Thank you. I had to remove some comments from the provider.xml that were throwing the parser off. The SOAP error seems fixed.
I am getting this new error:-
STACK:::::
An unexpected error occurred: ORA-29532: Java call terminated by uncaught Java exception: java.net.SocketException: Invalid argument
Invalid argument (WWC-43000)
An unexpected error occurred: java.net.SocketException: Invalid argument
Invalid argument
at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
at java.net.Socket.<init>(Socket.java:269)
at java.net.Socket.<init>(Socket.java:125)
at HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java)
(WWC-43000)
STACK::::
Any input on this one?
Rgds,
-NP
Maybe you are looking for
-
Most of my music is missing, I can not locate them on my computer.
This is unfortuante. The Itunes store won't allow me to repurchase these songs, and they are missing from my library. I need help. Thanks
-
Greetings, We are implementing New G/L migration scenario #2. This will be without real-time integration, but with default profit centers (i.e. 3KEH). Should we put in our configuration on the first day of the new fiscal year, or wait until migrati
-
Find whether OS on which Oracle DB is deployed is a VM or Physical server
Hello, Is there a way via SQL or any built in utility could provide me the information that the OS on which my Oracle DB is deployed is a VM or a Physical Server? Ta.
-
TS4644 I put the wrong phone number in iCloud keychain.
How can I change the phone number that I put when setting up iCloud keychain?
-
Check while replacing approver in SC creation
Hello expert, Whenever user replaces default approver using replace button in shopping cart creation, is there any badi exit through which i can validate the new user. I have already implemented BADI "BBP_CHNG_AGNT_GET". This badi gets triggered when