Error when trying to access a secured web service from Forms 10g 10.1.2.3
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:
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);
0