Project

General

Profile

Actions

Bug #4118

closed

Web Service Actor stored in Library

Added by Chris Weed over 15 years ago. Updated about 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

Also available in: Atom PDF