Forums / General / gg web service soap versioning issue

gg web service soap versioning issue

Author Message

Dhaval Panchal

Tuesday 02 November 2010 10:41:47 pm

Hi All,

I have one problem regarding gg web services while calling .net web service in eZ publish using gg web service.

when i try to call .net (soap 1.0) service, it works well but when i try to call .net(soap 1.1 or above) the response gives null.

any idea?

please help

Thanks

Dhaval

Gaetano Giunta

Wednesday 03 November 2010 3:39:01 am

Hi Dhaval.

Do you have a public address that I could test for your soap 1.1 webservice?

Principal Consultant International Business
Member of the Community Project Board

Dhaval Panchal

Wednesday 03 November 2010 6:07:07 am

Hi GG

Thanks for reply

OK, we have created one public address to test soap 1.1 web service as follow:

http://www.jzero.com/TestWebservice/service1.asmx

can you please test ?

Thanks

Dhaval

Dhaval Panchal

Friday 05 November 2010 10:14:28 pm

Hi GG,

above link is working now..

It was under maintain.

Thanks

Dhaval

Gaetano Giunta

Saturday 06 November 2010 9:20:54 am

Not yet 100% there: but this might help you:

1: set up in wsproviders.ini.append.php the description of your server:

[jzero]
providerType=PhpSOAP
providerUri=
WSDL=http://www.jzero.com/TestWebservice/service1.asmx?WSDL

2: test the urls using a command line script:

<?php

include( 'autoload.php' );

$script = eZScript::instance( array(
    'description' => ( '...' ),
    'use-session' => false,
    'use-modules' => false,
    'use-extensions' => true ) );
$script->startup();
$script->initialize();

// 1st test: HelloWorld
$resp = ggeZWebservicesClient::send( 'jzero', 'HelloWorld', array() );
var_dump( $resp );

// 2nd test: addnumbers
$resp = ggeZWebservicesClient::send( 'jzero', 'addnumbers', array( array( 'arg1' => 25.25, 'arg2' => 33.33 ) ) );
var_dump( $resp );

$script->shutdown();

?>

The results I get are:

- helloworlds works fine

- addnumbers works partially: I get an answer, but the numbers are truncated in teh request sent by eZP

I am currently investigating to see exactly what version of SOAP is being used by the requests, as your WSDL apparently supports both "soap1" and "soap12"...

Principal Consultant International Business
Member of the Community Project Board

Gaetano Giunta

Saturday 06 November 2010 11:09:35 am

Btw, I just committed support for soap version 1.2 in the svn vesrion of the extension. You can use it with a tweaked config file:

[jzero]
providerType=PhpSOAP
providerUri=
WSDL=http://www.jzero.com/TestWebservice/service1.asmx?WSDL
SoapVersion=soap12

Unluckily the network traces show that, while the protocol in use is effectively 1.2, the parameters sent in the request are still truncated to integers.

Principal Consultant International Business
Member of the Community Project Board

Gaetano Giunta

Saturday 06 November 2010 11:32:13 am

Duh, went back to school, read again the basic XSD data types definition, and found out that the parameters for the addNumbers method, being defined as being "long", are meant to be "long integers". So I'd say the problem is solved!

Principal Consultant International Business
Member of the Community Project Board

eZ debug

Timing: Jan 17 2025 23:55:38
Script start
Timing: Jan 17 2025 23:55:38
Module start 'content'
Timing: Jan 17 2025 23:55:39
Module end 'content'
Timing: Jan 17 2025 23:55:39
Script end

Main resources:

Total runtime0.9180 sec
Peak memory usage4,096.0000 KB
Database Queries206

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.7266180.8438
Module start 'content' 0.00610.7864 768.5703595.9375
Module end 'content' 0.79240.1255 1,364.5078341.0625
Script end 0.9179  1,705.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4292210.0002
Check MTime0.00160.1742210.0001
Mysql Total
Database connection0.00090.097410.0009
Mysqli_queries0.828490.23822060.0040
Looping result0.00200.22282040.0000
Template Total0.886096.520.4430
Template load0.00200.214220.0010
Template processing0.884196.306120.4420
Template load and register function0.00010.013410.0001
states
state_id_array0.00150.158710.0015
state_identifier_array0.00080.088420.0004
Override
Cache load0.00170.1897500.0000
Sytem overhead
Fetch class attribute can translate value0.00160.174330.0005
Fetch class attribute name0.00100.109190.0001
XML
Image XML parsing0.00290.321030.0010
class_abstraction
Instantiating content class attribute0.00000.0038140.0000
General
dbfile0.00680.7426330.0002
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs