Share » Forums » Extensions » ggwebservices - call to external...

ggwebservices - call to external server from template

ggwebservices - call to external server from template

Wednesday 15 December 2010 10:23:18 am - 3 replies

Author Message

Gaetano Giunta

Wednesday 15 December 2010 12:49:31 pm

I am sorry, but the debugger is currently (version 0.5) limited to debugging xmlrpc and jsonrpc services. That's why you see the name of your target server grayed out in the right column.

The next version, due for release before the end of the week, will support debugging ezjscore webservices too.

For soap debugging, you will most likely have to wait until version 0.7 or maybe even later...

Principal Consultant International Business
Member of the Community Project Board

Anaya P

Wednesday 15 December 2010 1:28:37 pm

Thanks for your quick reply.

But if I am not wrong I can call external soap web service in a template using this extension, right?

So i tried below fetch function to fetch one of the webservice methods -

{def $ws = fetch('wsdl path', 'method name', 'paramaters')}

{$ws.responseParameter}

in wsproviders.ini.append.php file

[trx]
providerType=PhpSOAP
providerUri=https://services.resx.com/xapi/v9.0/xapi.asmx
providerUsername=username provided by webservice provider
providerPassword=password provided by webservice provider

No wsdl specified in the wsproviders.ini.append.php

But this function is not returning anything?

Please let me know if I have missed anything here?

Thanks

Anaya

Gaetano Giunta

Thursday 16 December 2010 2:00:31 am

Yes, you can do what you want with this extension.

I think you have it slightly wrong: you should put the path to the wsdl in the ini file and the name of the operation in the template call.

[trx]
providerType=PhpSOAP
providerUri=
WSDL=https://services.resx.com/xapi/v9.0/xapi.asmx?WSDL
providerUsername=username provided by webservice provider
providerPassword=password provided by webservice provider

then

{def $ws = fetch('webservices', 'send', hash('server', 'trx', 'method', $method_name', 'paramaters', $params))}

Principal Consultant International Business
Member of the Community Project Board

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu