[MOBY-dev] Calling Moby from R / SSOAP

sneumann sneumann at ipb-halle.de
Fri May 9 11:21:07 UTC 2008


Hi again, 

I am currently figuring how to call Moby Services manually 
using the R client package SSOAP:

Creating the service object works fine:

wsdl = "http://.../axis/services/myservice?wsdl"
service <- processWSDL(wsdl)

but the SSOAP has some kind of WSDL compiler 
which wants to create R classes as stubs to the SOAP:

client = genSOAPClientInterface(def=service, verbose = TRUE)

and this breaks, AFAICS because SSOAP is trying to map input 
and output types for the method calls. An example for the KEGG WSDL 
is given below. 

Do I see it correctly that the SSOAP stub writing has to be changed,
so that in the absence of <type> definitions I pass the arguments 
as encoded stuff in the body ? Has anybody experience with that,
or could give me (specific) links into documentation ?

Yours,
Steffen

from KEGG.wsdl:

	<definitions name="KEGG_v4.1" ... targetNamespace="SOAP/KEGG">
	  <types>
	    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="SOAP/KEGG">
	      <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
	      <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
	      <!-- common variable -->
	      <xsd:complexType name="ArrayOfstring">
	      ...

translates into:

	str(KEGG at types)	
	Formal class 'SchemaCollection' [package "SSOAP"] with 1 slots
	  ..@ .Data:List of 1
	  .. ..$ :Formal class 'SchemaTypes' [package "SSOAP"] with 1 slots
	  .. .. .. ..@ .Data:List of 9
	  .. .. .. .. ..$ :List of 2
	  .. .. .. .. .. ..$ name      : chr "ArrayOfstring"
	  .. .. .. .. .. ..$ definition:Formal class 'ArrayType' [package "SSOAP"] with 8 slots
	  .. .. .. .. .. .. .. ..@ elementType  : chr "xsd:string"
	  .. .. .. .. .. .. .. ..@ elType       :Formal class 'PrimitiveSOAPType' [package "SSOAP"] with 5 slots
	  .. .. .. .. .. .. .. .. .. ..@ fromConverter:function ()
	  .. .. .. .. .. .. .. .. .. ..@ toConverter  :function (x, ...)
	  .. .. .. .. .. .. .. .. .. ..@ name         : chr "string"
	  .. .. .. .. .. .. .. .. .. ..@ ns           : chr "xsd"
	  .. .. .. .. .. .. .. .. .. ..@ nsuri        : chr "http://www.w3.org/2001/XMLSchema"
	  .. .. .. .. .. .. .. ..@ dims         : int NA
	  .. .. .. .. .. .. .. ..@ fromConverter:function ()
	  .. .. .. .. .. .. .. ..@ toConverter  :function ()
	  .. .. .. .. .. .. .. ..@ name         : chr "ArrayOfstring"
	  .. .. .. .. .. .. .. ..@ ns           : chr(0)
	  .. .. .. .. .. .. .. ..@ nsuri        : chr(0)
	  .. .. .. .. .. ..- attr(*, "class")= chr "WSDLTypeDescription"
... 

-- 
IPB Halle                    AG Massenspektrometrie & Bioinformatik
Dr. Steffen Neumann          http://www.IPB-Halle.DE
Weinberg 3                   http://msbi.bic-gh.de
06120 Halle                  Tel. +49 (0) 345 5582 - 1470
                                  +49 (0) 345 5582 - 0
sneumann(at)IPB-Halle.DE     Fax. +49 (0) 345 5582 - 1409

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <http://lists.open-bio.org/pipermail/moby-dev/attachments/20080509/16bb9f43/attachment.sig>


More information about the MOBY-dev mailing list