The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: SOAP message input parameters
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Philip Spratt

Posts: 1
Registered: 6/13/13
SOAP message input parameters
Posted: Jun 13, 2013 8:42 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I am trying to use the Metlin SOAP API and have generated the methods in Matlab using createClassFromWsdl. Unlike the generated SOAP messages from other metabolomics databases, this asks for a single input parameter 'SpectrumMatchRequest' (other than 'obj'). I have only experienced using single vectors as parameters previously, e.g.:

function xReturn = searchSpectrum(obj,mzs,intensities,unit,tolerance,cutoff,instrumentTypes,ionMode,maxNumResults)

However, this particular SOAP API requires 8 parameters, but only asks for 'SpectrumMatchRequest'. Is there a way of putting all of the parameters into a single object or array, consisting of differing data types?

Please see the auto-generated SOAP message which this issue is regarding:

function result = SpectrumMatch(obj,SpectrumMatchRequest)
% Input:
% SpectrumMatchRequest = (SpectrumMatchRequest)
% Output:
% result = (spectrumLineInfo)

% Build up the argument lists.
values = { ...
SpectrumMatchRequest, ...
names = { ...
'SpectrumMatchRequest', ...
types = { ...
'SpectrumMatchRequest', ...

% Create the message, make the call, and convert the response into a variable.
soapMessage = createSoapMessage( ...
'Metlin', ...
'SpectrumMatch', ...
response = callSoapService( ...
obj.endpoint, ...
'SOAP/Metlin#SpectrumMatch', ...
result = parseSoapResponse(response);

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.