For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > June 2005 > Unknown function error when using web service in Powerbuilder









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Unknown function error when using web service in Powerbuilder
v

2005-06-09, 4:00 pm

I am using Powerbuilder 10. I am creating webservice in
Powerbuilder, then created a proxy to call it.
The proxy created fine.
But however when I call the function I get
the unknown function error. m = myproxy.fhello()
is calling line. I can call a webservice
created in .Net with no problem.

Please help. Thanks in advance.
I really need this urgently.

Here is my code.
proxy_testmywebservices_n_n_pbhello mypr
oxy
long ret
SoapConnection myconn
String m
myconn = create SoapConnection
ret = myconn.CreateInstance(myproxy,
"proxy_testmywebservices_n_n_pbhello")

if ret = 0 then
try
// Invoke service and display result
m = myproxy.fhello()
MessageBox("SOAP Response", m+"..."+string(ret))
catch ( SoapException e )
// error handling
MessageBox ("Error", "Cannot invoke Web service. Exception info: " +
e.text)
end try
else
MessageBox ("Error: " + string(ret), &
"Unable to create proxy")
end if

destroy myconn

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com