SOAP API method errors
1 次查看(过去 30 天)
显示 更早的评论
Can anyone tell me whether the below SOAP method looks correct. To me it seems this autogenerated method does not contain the correct information, but I may be wrong. I am trying to understand whether it is my script which is wrong or the SOAP method.
function result = SpectrumMatch(obj,SpectrumMatchRequest) %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', ... values,names,types,'rpc'); response = callSoapService( ... obj.endpoint, ... 'SOAP/Metlin#SpectrumMatch', ... soapMessage); result = parseSoapResponse(response);
The errors I get are:
??? Error using ==> callSoapService at 130 SOAP Fault: SOAP-ERROR: Encoding: Cannot find encoding
Error in ==> MetlinService.SpectrumMatch at 26 response = callSoapService( ...
Error in ==> MetlinQuery at 38 results = SpectrumMatch(obj,SpectrumMatchRequest);
Error in ==> PRS_VIEW_PLSDA_LOADINGS_v4ps>Export2MSfile_Callback at 1362 METLINHITS = MetlinQuery(mzs, intensities, ionMode);
Error in ==> gui_mainfcn at 96 feval(varargin{:});
Error in ==> PRS_VIEW_PLSDA_LOADINGS_v4ps at 44 gui_mainfcn(gui_State, varargin{:});
Error in ==> guidemfile>@(hObject,eventdata)PRS_VIEW_PLSDA_LOADINGS_v4ps('Export2MSfile_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback % code end
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!