Hi,
I am sending some information from my form to the webservice.
The code that I wrote in the when_button_pressed is as follows:
declare
my_object ORA_JAVA.jOBJECT;
c varchar2(100);
ex ora_java.jobject;
begin
my_object:=EmbeddedTasksModuleServiceStub.new;
c:='CLOSED';
message('calling WS');
message('calling WS');
EmbeddedTasksModuleServiceStub.completeTask(my_object,:tasklist.ssn,:control.text_item6,:control.text_item7,c);
message('called WS');
message('called WS');
exception
WHEN ORA_JAVA.EXCEPTION_THROWN then
ex := ORA_JAVA.LAST_EXCEPTION;
message(Exception_.toString(ex));message(Exception_.toString(ex));
end;
The procedure in my program units is as follows:
PROCEDURE completeTask(
obj ORA_JAVA.JOBJECT,
a0 VARCHAR2,
a1 VARCHAR2,
a2 VARCHAR2,
a3 VARCHAR2) IS
BEGIN
args := JNI.CREATE_ARG_LIST(4);
JNI.ADD_STRING_ARG(args, a0);
JNI.ADD_STRING_ARG(args, a1);
JNI.ADD_STRING_ARG(args, a2);
JNI.ADD_STRING_ARG(args, a3);
JNI.CALL_VOID_METHOD(FALSE, obj, 'com/bankForms/EmbeddedTasksModuleServiceStub', 'completeTask', '(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V', args);
END;
The message "callingWS" is coming but after that I am getting a message
[SOAPException:faultCode=SOAP-ENV:IOException;msg=connection refused:connect;targetException=java.net.ConnectException:Connection refused:connect]
Can anyone explain me as to what the reason could be and what can be done now?
Thank you.
[Mod-upd] PLEASE use the 'code' tags and LOSE the multiple linefeeds!
[Updated on: Fri, 08 September 2006 00:08] by Moderator
Report message to a moderator