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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 15 2025 09:01:27
Script start
Timing: Jan 15 2025 09:01:27
Module start 'layout'
Timing: Jan 15 2025 09:01:27
Module start 'content'
Timing: Jan 15 2025 09:01:29
Module end 'content'
Timing: Jan 15 2025 09:01:29
Script end

Main resources:

Total runtime1.4875 sec
Peak memory usage6,144.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 685.6563183.6875
Module start 'layout' 0.00720.0051 869.343852.5859
Module start 'content' 0.01221.4736 921.92971,854.9766
Module end 'content' 1.48590.0016 2,776.906372.5391
Script end 1.4874  2,849.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00580.3880160.0004
Check MTime0.00130.0898160.0001
Mysql Total
Database connection0.00070.045210.0007
Mysqli_queries1.393193.6557690.0202
Looping result0.00070.0470670.0000
Template Total1.430296.120.7151
Template load0.00360.243820.0018
Template processing1.426695.903220.7133
Template load and register function0.00130.088110.0013
states
state_id_array0.00180.122410.0018
state_identifier_array0.00390.261720.0019
Override
Cache load0.00340.2303500.0001
Sytem overhead
Fetch class attribute can translate value0.00090.061020.0005
Fetch class attribute name0.00300.202190.0003
XML
Image XML parsing0.00290.194320.0014
class_abstraction
Instantiating content class attribute0.00000.0022140.0000
General
dbfile0.00410.2737220.0002
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs