Hello,
I’m using the Developer Console trying to send web service request, here is the js expression I used:
var service = isc.WebService.get("uiwebserviceapp");
service.dataURL = "http://192.168.3.218/uiwebserviceapp/uiwebserviceapp";
service.callOperation("getTestDummyData", {testParam: 1}, null, "isc.Log.logWarn(data)");
Then I’m getting this from the log:
Evaluator: result of 'var service = isc.WebService.get("uiwebserviceapp");...' (47ms):
undef
17:50:30.017:XRP2:WARN:RPCManager:Transport error - HTTP code: 404 for URL: http://192.168.3.218/uiwebserviceapp/uiwebserviceapp (via proxy: http://test18.ai.elab/isomorphic/HttpProxy), response: {operationId: "custom",
clientContext: Obj,
context: Obj,
transactionNum: 3,
httpResponseCode: 404,
httpResponseText: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML..."[434],
xmlHttpRequest: [object XMLHttpRequest],
transport: "xmlHttpRequest",
clientOnly: undef,
isStructured: true,
callbackArgs: null,
results: Obj,
status: -90,
data: "Transport error - HTTP code: 404 for URL..."[150]}
The RPC request looks like this:
{
actionURL:"http://test18.ai.elab/isomorphic/HttpProxy",
showPrompt:false,
transport:"xmlHttpRequest",
useSimpleHttp:true,
promptStyle:"dialog",
params:{
data:"<data xmlns:xsi=\"http://www.w3.org/2000/10/XMLSchema-instance\" xsi:type=\"xsd:Object\"><url>http://192.168.3.218/uiwebserviceapp/uiwebserviceapp</url><httpMethod>POST</httpMethod><contentType>text/xml</contentType><requestBody>\r<getTestDummyData>\r <arg0></arg0>\r <testParam>1</testParam>\r</getTestDummyData></requestBody><httpHeaders xsi:type=\"xsd:Object\"><SOAPAction>""</SOAPAction></httpHeaders></data>"
},
httpMethod:null,
contentType:null,
httpHeaders:{
SOAPAction:"\"\""
},
sendNoQueue:true,
isProxied:true,
callback:{
target:null,
methodName:"$37c"
},
serverOutputAsString:true,
clientContext:{
$38r:"isc.Log.logWarn(data)",
$38s:"getTestDummyData",
$38u:null,
$38v:null
},
data:null
}
Here is the detail RPC response:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /isomorphic/HttpProxy was not found on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
<hr>
<address>TWAppliance/2.x.x (Unix) Server at test18.ai.elab.tumbleweed.com Port 80</address>
</body></html>
I don’t know why it kept looking for /isomorhic/HttpProxy, it’s not part of the SDK. Is there way to by pass this?