Oracle Forms (MOSC)

MOSC Banner

Error when trying to access a secured web service from Forms 10g 10.1.2.3

edited Jan 29, 2013 6:41AM in Oracle Forms (MOSC) 8 commentsAnswered ✓
 Hello,
I'm trying to access a secured web service from Forms10g 10.1.2.3 but i'm getting the next error when pressing the button the first time:

java.rmi.RemoteException: ; nested exception is: HTTP transport error: javax.xml.soap.SOAPException: 
java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorize

When i press the button a second time i got this error:

javax.xml.rpc.soap.SOAPFaultException: The SOAP request is invalid. The required node 'Envelope' is missing

This is the code i have in my button:

DECLARE
jo ora_java.jobject;
pdfObject ora_java.jobject;
pdf	varchar2(900);
rv varchar2(100);
ex ora_java.jobject;
 
BEGIN
	
JO := SEARCHSOAPCLIENT.new;
 
SEARCHSOAPCLIENT.setUsername(JO,<font color="navy">'weblogic'</font>);
SEARCHSOAPCLIENT.setPassword(JO,<font color="navy">'welcome1'</font>);
 
pdfObject := SEARCHSOAPCLIENT.quicksearch(JO,<font color="navy">'1234'</font>,NULL);
 
pdf := SEARCHSOAPCLIENT.tostring(pdfObject);
message(pdf);
message(<font color="navy">' '</font>);
 
 
EXCEPTION
WHEN ORA_JAVA.JAVA_ERROR then 
message(<font color="navy">'Unable to call out to Java, '</font> ||ORA_JAVA.LAST_ERROR);
WHEN ORA_JAVA.EXCEPTION_THROWN then 
ex := ORA_JAVA.LAST_EXCEPTION;
:error := Exception_.toString(ex);
  

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center