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 18 2025 02:58:04
Script start
Timing: Jan 18 2025 02:58:04
Module start 'layout'
Timing: Jan 18 2025 02:58:04
Module start 'content'
Timing: Jan 18 2025 02:58:05
Module end 'content'
Timing: Jan 18 2025 02:58:05
Script end

Main resources:

Total runtime0.6296 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 591.2031152.6250
Module start 'layout' 0.00540.0019 743.828139.4688
Module start 'content' 0.00730.6206 783.2969590.8594
Module end 'content' 0.62790.0015 1,374.156316.1563
Script end 0.6294  1,390.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5137160.0002
Check MTime0.00120.1971160.0001
Mysql Total
Database connection0.00070.118910.0007
Mysqli_queries0.556988.4559690.0081
Looping result0.00070.1072670.0000
Template Total0.600995.420.3005
Template load0.00190.299220.0009
Template processing0.599095.143120.2995
Template load and register function0.00010.016210.0001
states
state_id_array0.00080.120510.0008
state_identifier_array0.00130.213820.0007
Override
Cache load0.00160.2553500.0000
Sytem overhead
Fetch class attribute can translate value0.00080.128420.0004
Fetch class attribute name0.00120.194990.0001
XML
Image XML parsing0.00080.133420.0004
class_abstraction
Instantiating content class attribute0.00000.0054140.0000
General
dbfile0.00170.2634220.0001
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.0002 secs