Home » Developer & Programmer » Forms » Error while calling webservice
Error while calling webservice [message #189896] Mon, 28 August 2006 07:03 Go to next message
orafan2003
Messages: 122
Registered: February 2006
Senior Member
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

Re: Error while calling webservice [message #191732 is a reply to message #189896] Fri, 08 September 2006 00:09 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Have you solved your problem?

David
Previous Topic: Showing Image on Image ..form deployed on web
Next Topic: delay during running a form10g
Goto Forum:
  


Current Time: Fri Sep 20 10:40:38 CDT 2024