Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 7329

Re: Web Service Help

$
0
0

Rick,

 

I couldn't tell what is missing sample.   Here is the sample that I am using:

CREATE SERVICE "Samples/TestSoapOP1" TYPE 'SOAP' AUTHORIZATION OFF USER "DBA" DATATYPE ON AS call sp_techo(:i,:f,:s);

 

CREATE PROCEDURE sp_techo(i INTEGER, f REAL, s LONG VARCHAR)
RESULT( ret_i INTEGER, ret_f REAL, ret_s LONG VARCHAR )
BEGIN
SELECT i, f, s;
END;

 

CREATE SERVICE "mytest2" TYPE 'DISH' AUTHORIZATION OFF USER "DBA" FORMAT 'DNET';

 

 

For the webproxy, I use the .NET webservice engine and this url:  http://localhost:8080/mytest2

 

In PowerBuilder, I am using this code:

mytest2    myproxy
soapconnection lnv_soap
long a1,ll_mylong

real a2

string a3,ls_response

a1=11

a2=1123

a3="AA"

 

lnv_soap = create soapconnection
lnv_soap.createinstance(myproxy,"mytest2","")
try

ls_response = myproxy.samples_testsoapop1(a1,a2,a3,ll_mylong)

catch (soapexception s1)

messagebox("Soap Exception",s1.getmessage())

end try

messagebox("Here the response output", ls_response)

 

 

Output response:

 

ws_output.png

 

Does that help?

 

Thanks,

Beverly


Viewing all articles
Browse latest Browse all 7329

Trending Articles