Question: Problems Accessing The Soaplab Newcpgreport Webservice
gravatar for herderbezem
7.7 years ago by
herderbezem0 wrote:

I'm trying to use the NewCpGReport webservice to find CpGIslands in nucleotide sequences. However, I'm having problems with the input format.

I'm using SOAPpy in Python to access the wsdl

and trying to use "createAndRun" but so far I can only get the following error:

faultType: <Fault soapenv:Server.userException:
org.soaplab.share.SoaplabException: Soaplab::NotValidInputs [sequence]
Input is mandatory and cannot remain empty. : <SOAPpy.Types.structType
detail at 181263052>: {'hostname': ''}>

Problem is, in the discription, which is the only documentation I've been able to find which discusses input from a webservice point of view, there are 3 input options which I've all tried but I still get the same error.

 <input name = "sequence_usa" type = "string" mandatory = "false ></input>
 <input name = "sequence_direct_data" type = "string" mandatory = "false"></input>
 <input name = "sformat_sequence" type = "string" mandatory = "false">

So far I've tried setting the input up in multiple ways, trying to copy the input format EMBL used in other tools of theirs but I'm at a loss for ideas how to get it running properly.

ADD COMMENTlink modified 6.9 years ago by Biostar ♦♦ 20 • written 7.7 years ago by herderbezem0
gravatar for Michael Dondrup
7.7 years ago by
Bergen, Norway
Michael Dondrup47k wrote:

Did you try to test the service in SoapUI first? It is a good way of testing services if they work at all and the example XML it generates could show you which field is missing, this is specifically tricky should the field be named "sequence", because <sequence> is used in XML schema types, too. From what I can see with SoapUI, this service needs to be called in a very particular way, like all soaplab services. It accepts key, value pairs as input. The list of possible keys can be fetched from invoking the "describe" operation.

Following that, the following is a valid invocation (not necessarily sensible):

<soapenv:Envelope xmlns:xsi="&lt;a href=" http:="""" 2001="" XMLSchema-instance"="" rel="nofollow">" xmlns:xsd="" xmlns:soapenv="" xmlns:axis="">
      <axis:createAndRun soapenv:encodingStyle="&lt;a href=" http:="""" soap="" encoding="" "="" rel="nofollow">">
         <inputs xsi:type="x-:Map" xs:type="type:Map" xmlns:x-="&lt;a href=" http:="""" xml-soap"="" rel="nofollow">" xmlns:xs="">
            <item xsi:type="x-:mapItem" xs:type="type:mapItem">
               <key xsi:type="xsd:string">sequence_usa</key>
               <value xsi:type="xsd:string">acgt</value>


<soapenv:Envelope xmlns:soapenv="&lt;a href=" http:="""" soap="" envelope="" "="" rel="nofollow">" xmlns:xsd="" xmlns:xsi="">
      <ns1:createAndRunResponse soapenv:encodingStyle="&lt;a href=" http:="""" soap="" encoding="" "="" rel="nofollow">" xmlns:ns1="">
         <createAndRunReturn xsi:type="xsd:string">[nucleic_cpg_islands.newcpgreport]_1f702357.13847d191e5._5189</createAndRunReturn>

Use the jobid retrieved to call other methods in the work-flow.

Btw, this should be covered by the documentation, shouldn't it?

ADD COMMENTlink modified 7.7 years ago • written 7.7 years ago by Michael Dondrup47k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1118 users visited in the last hour