Project

General

Profile

Actions

Bug #4118

closed

Web Service Actor stored in Library

Added by Chris Weed over 15 years ago. Updated over 14 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
actors
Target version:
Start date:
05/29/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4118

Description

After setting the wsdl and service name in org.sdm.spa.WebService and org.sdm.spa.WSWithComplexTypes, I store them back in the library.
I then drag these new actors into the workflow desktop.
For WebService I get the error:
Change Failed
String index out of range: -5

For WSWithComplexTypes I get the error:
Error encountered in:
<property name="_type" class="ptolemy.actor.TypeAttribute" value="string">
TypeAttribute can only be contained by instances of TypedIOPort.
in .My WSWithComplexTypes.kepler:query and ._type

For WebService this seems to be a problem with setting the methodName parameter before setting the url parameter.
I was able to add a check on _urlStr to avoid this:

Line 410:
// System.out.println("Method name before get expression: " +
// _methodNameStr);
_methodNameStr = methodName.getExpression();
_debug("<METHOD_NAME>" + _methodNameStr + "</METHOD_NAME>");
// System.out.println("Method name after get expression: " +
// _methodNameStr);
int slashIndex = _urlStr.lastIndexOf('/');
//if(_urlStr.length()>0) {
_wsName = _urlStr.substring(slashIndex + 1,
_urlStr.length() - 5);
}

For WSWithComplexType I don't know the problem.
Chris

Actions #1

Updated by Chris Weed over 15 years ago

This line should be uncommented to make this work:

//if(_urlStr.length()>0)

Actions #2

Updated by Daniel Crawl over 15 years ago

Are you using Kepler from SVN? I think I've already fixed this bug in WebService.
(http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4062)

I'll look into the problem with WSWithComplexTypes. It would help if I had the wsdl and service name.

Actions #3

Updated by Daniel Crawl over 14 years ago

I am no longer able to reproduce this problem. If it still occurs for your web services, feel free to re-open.

Actions #4

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 4118

Actions

Also available in: Atom PDF