omegahat / ssoap Goto Github PK
View Code? Open in Web Editor NEWR as a SOAP client
R as a SOAP client
Hi, I have tried to use SSOAP function to do the analysis for http://impala.molgen.mpg.de/wsdoc.
But it failed. Could you please give me an example code to do the analysis for this website.
Best regards!
Bo
See http://www.kegg.jp/kegg/rest/
This makes the KEGG examples not work.
I have recently tried to use your package SSOAP to access the BRENDA SOAP API from R, which provides a WSDL file. Initially, I tried to process it with processWSDL():
w = processWSDL("http://www.brenda-enzymes.org/soap/brenda.wsdl", verbose=T)
1 ) ArrayOfIntegers ( complexType )
2 ) ArrayOfStrings ( complexType )
3 ) elementaryReference ( complexType )
4 ) reference ( complexType )
5 ) ArrayOfReferences ( complexType )
6 ) sequence ( complexType )
7 ) ArrayOfSequences ( complexType )
8 ) kmValue ( complexType )
9 ) ArrayOfKmvalues ( complexType )
10 ) phStability ( complexType )
11 ) ArrayOfPhstabilitys ( complexType )
12 ) oxidationStability ( complexType )
13 ) ArrayOfOxidationstabilitys ( complexType )
14 ) naturalSubstratesProducts ( complexType )
15 ) ArrayOfNaturalsubstratesproductss ( complexType )
16 ) engineering ( complexType )
17 ) ArrayOfEngineerings ( complexType )
18 ) naturalProduct ( complexType )
19 ) ArrayOfNaturalproducts ( complexType )
20 ) metalsIons ( complexType )
21 ) ArrayOfMetalsionss ( complexType )
22 ) activatingCompound ( complexType )
23 ) ArrayOfActivatingcompounds ( complexType )
24 ) inhibitors ( complexType )
25 ) ArrayOfInhibitorss ( complexType )
26 ) cofactor ( complexType )
27 ) ArrayOfCofactors ( complexType )
28 ) generalStability ( complexType )
29 ) ArrayOfGeneralstabilitys ( complexType )
30 ) naturalSubstrate ( complexType )
31 ) ArrayOfNaturalsubstrates ( complexType )
32 ) molecularWeight ( complexType )
33 ) ArrayOfMolecularweights ( complexType )
34 ) crystallization ( complexType )
35 ) ArrayOfCrystallizations ( complexType )
36 ) substratesProducts ( complexType )
37 ) ArrayOfSubstratesproductss ( complexType )
38 ) reactionType ( complexType )
39 ) ArrayOfReactiontypes ( complexType )
40 ) organismSynonyms ( complexType )
41 ) ArrayOfOrganismsynonymss ( complexType )
42 ) enzymeNames ( complexType )
43 ) ArrayOfEnzymenamess ( complexType )
44 ) organicSolventStability ( complexType )
45 ) ArrayOfOrganicsolventstabilitys ( complexType )
46 ) application ( complexType )
47 ) ArrayOfApplications ( complexType )
48 ) synonyms ( complexType )
49 ) ArrayOfSynonymss ( complexType )
50 ) temperatureOptimum ( complexType )
51 ) ArrayOfTemperatureoptimums ( complexType )
52 ) temperatureStability ( complexType )
53 ) ArrayOfTemperaturestabilitys ( complexType )
54 ) piValue ( complexType )
55 ) ArrayOfPivalues ( complexType )
56 ) temperatureRange ( complexType )
57 ) ArrayOfTemperatureranges ( complexType )
58 ) recommendedName ( complexType )
59 ) ArrayOfRecommendednames ( complexType )
60 ) product ( complexType )
61 ) ArrayOfProducts ( complexType )
62 ) casRegistryNumber ( complexType )
63 ) ArrayOfCasregistrynumbers ( complexType )
64 ) localization ( complexType )
65 ) ArrayOfLocalizations ( complexType )
66 ) posttranslationalModification ( complexType )
67 ) ArrayOfPosttranslationalmodifications ( complexType )
68 ) systematicName ( complexType )
69 ) ArrayOfSystematicnames ( complexType )
70 ) cloned ( complexType )
71 ) ArrayOfCloneds ( complexType )
72 ) specificActivity ( complexType )
73 ) ArrayOfSpecificactivitys ( complexType )
74 ) subunits ( complexType )
75 ) ArrayOfSubunitss ( complexType )
76 ) ligands ( complexType )
77 ) ArrayOfLigandss ( complexType )
78 ) turnoverNumber ( complexType )
79 ) ArrayOfTurnovernumbers ( complexType )
80 ) ecNumber ( complexType )
81 ) ArrayOfEcnumbers ( complexType )
82 ) reaction ( complexType )
83 ) ArrayOfReactions ( complexType )
84 ) sourceTissue ( complexType )
85 ) ArrayOfSourcetissues ( complexType )
86 ) substrate ( complexType )
87 ) ArrayOfSubstrates ( complexType )
88 ) phRange ( complexType )
89 ) ArrayOfPhranges ( complexType )
90 ) storageStability ( complexType )
91 ) ArrayOfStoragestabilitys ( complexType )
92 ) phOptimum ( complexType )
93 ) ArrayOfPhoptimums ( complexType )
94 ) disease ( complexType )
95 ) ArrayOfDiseases ( complexType )
96 ) purification ( complexType )
97 ) ArrayOfPurifications ( complexType )
98 ) renatured ( complexType )
99 ) ArrayOfRenatureds ( complexType )
100 ) kiValue ( complexType )
101 ) ArrayOfKivalues ( complexType )
102 ) Pathway ( complexType )
103 ) ArrayOfpathways ( complexType )
104 ) organism ( complexType )
105 ) ArrayOfOrganisms ( complexType )
106 ) pdb ( complexType )
107 ) ArrayOfPdbs ( complexType )
Error in x$id : object of type 'S4' is not subsettable
The types seem to be processed correctly, but then it stops with the error shown above. After doing some research, as I am using R version 3.3.1, could this be related to the change in R S4 classes after R 2.4.0?
Have you had any experience with SSOAP in latter versions of R?
Any advice would be greatly appreciated
I'm having some difficulty using this package to access the ChemSpell SOAP service with the SSOAP
package.
When I try to process the WSDL, I get the following error:
> processWSDL("http://chemspell.nlm.nih.gov/axis/SpellAid.jws?wsdl")
Error in UseMethod("xmlAttrs", node) :
no applicable method for 'xmlAttrs' applied to an object of class "NULL"
From this point, I started down the rabbit hole and can't seem to find my way out. I had a look at the processWSDL
function and tried to step through it and got even more errors. I was hoping to manually get myself to a SOAPServerDescription
. It looks like at some point XMLSchema
was split off from the main package and maybe there are some naming inconsistencies?
I fully understand that SOAP is not really a hot topic these days, but does anyone have any hints or links that could point me in the right direction here? The ChemSpell service seems really straightforward, I just haven't quite figured out how to brute force a SOAP message to it.
For our taxize I tried to interact with the WoRMS webservice.
However I can't get their example to run:
> library(SSOAP)
>
> w = processWSDL("http://www.marinespecies.org/aphia.php?p=soap&wsdl=1")
> iface = genSOAPClientInterface(, w)
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
Error during wrapup: evaluation nested too deeply: infinite recursion / options(expressions=)?
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] SSOAP_0.9-1
loaded via a namespace (and not attached):
[1] codetools_0.2-8 RCurl_1.95-4.1 tools_3.0.2 XML_3.98-1.1 XMLSchema_0.7-2
Any Ideas?
The problem comes actually from XMLSchema:::defineClasses()
and there probably the two nested lapply()
(?).
Hi,
I have been using the package to work with WSDL's but after our service provider switched to TLS v1.2 I am getting the below error:
Error in function (type, msg, asError = TRUE) :
Unknown SSL protocol error in connection to ...:443
Any hint on how to workaround this? -- I can fix this and make a pull request if given some high-level advice.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.