processWSDL              package:SSOAP              R Documentation

_R_e_a_d _a_n_d _p_r_o_c_e_s_s _a _W_e_b _S_e_r_v_i_c_e _D_e_s_c_r_i_p_t_i_o_n _L_a_n_g_u_a_g_e _f_i_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     This reads and converts a WSDL file for a server into a collection
     of functions and methods.

_U_s_a_g_e:

     processWSDL(fileName = "KEGG.wsdl", handlers = WSDLParseHandlers(fileName))

_A_r_g_u_m_e_n_t_s:

fileName: the name of the WSDL file or URI.

handlers: a list of handler functions that are passed to 'xmlTreeParse'
          to perform transformations on the XML nodes as the are parsed
          and converted to R objects. The default handlers drop
          comments and take care of importing files that are referenced
          via <wsdl:import> nodes.

_D_e_t_a_i_l_s:

_V_a_l_u_e:

     An object of class 'SOAPServerDescription'.

_A_u_t_h_o_r(_s):

     Duncan Temple Lang <duncan@wald.ucdavis.edu>

_S_e_e _A_l_s_o:

     'UseDashInSOAPNames' is an R option that can be set by the user
     that is understood by this package to control whether to either
     leave SOAP method names as-is, or if 'FALSE', to remove '_' in the
     names and capitalize the first character in all but the first word
     of the name. In other words, if 'UseDashInSOAPNames' is set to
     FALSE, the name 'abc_def_ghi' is mapped to 'abcDefGhi'.  By
     default, the value is unset and treated as 'TRUE', so dashes are
     preserved.

_E_x_a_m_p_l_e_s:

       tmp = processWSDL(system.file("examples", "KEGG.wsdl", package = "SSOAP"))

        # The first set of operations, and the method "color_pathway_by_objects"
       o = tmp@operations[[1]][["color_pathway_by_objects"]]
       names(o@parameters)
       o@parameters[["fg_color_list"]]
       o@returnValue

       ff = genSOAPClientInterface(tmp@operations[[1]], def = tmp, tmp@name, verbose=FALSE)

     # ff$functions$get_all_neighbors_by_gene(kid="eco:b0002", threshold= as.integer(500), orgs = c("ecs","ypk"))

     ## Not run: 
       x = ff@functions$get_paralogs_by_gene("eco:b0002", 1, 10)
     ## End(Not run)

       tp = get(".operation", environment(ff@functions$get_paralogs_by_gene))@returnValue

       # A different WSDL file.
       tmp = processWSDL(system.file("examples", "XMethodsFilesystemService.wsdl.xml", package = "SSOAP"))

