I'm using Apache Soap v2.2, and by and large it is working fine in calling
basic services over the web. However when I call the service at
http://www.ebob42.com/cgi-bin/Romulan.exe/soap/IRoman
=======
public static void main(String[] args) {
try {
// Build the call.
Call call = new Call();
call.setTargetObjectURI("URIurn:Roman-IRoman");
call.setMethodName("IntToRoman");
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
Vector soapParams = new Vector();
soapParams.addElement(new Parameter("Int", int.class,
new Integer(10), null));
call.setParams(soapParams);
// make the call:
Response resp = call.invoke(new
URL("http://www.ebob42.com/cgi-bin/Romulan.exe/soap/IRoman"),
"");
} catch (Exception e) {
System.out.println(e.toString());
}
}
=======
gives result
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
I get a StringIndexOutOfBounds in the invoke() method. Has anyone else come
across this or something similar? It looks to me like it might be a soap
compatibility issue as the service is hosted on another implementation
(delphi).
Comments/thoughts appreciated!
Neil
Neil Smyth
Senior Software Engineer, Altio
T: +44(0) 20 8580 4519
F: +44(0) 20 8580 2050
nsmyth_at_altio.com
http://www.altio.com