|
本帖最后由 mmcroom 于 2011-10-21 17:38 编辑
我直接建了一个webservices脚本,然后导入了wsdl文件,一个名为icsrequest接口。
然后写了如下脚本
Action()
{
web_service_call( "StepName=icsRequest_102",
"SOAPMethod=ICSWebService|ICSWebService|icsRequest",
"ResponseParam=response",
"Service=ICSWebService",
"JMSSendQueueName=",
"JMSReceiveQueueName=",
"ExpectedResponse=SoapResult",
"Snapshot=t1319171747.inf",
BEGIN_ARGUMENTS,
"requestXML="
"<pmsRequest xmlns=\"http://www.set.com/pms/service/ics/pmsWebservice\">"
"<RequestHead>"
"<operation>queryFirstOutageData</operation>"
"</RequestHead>"
"<RequestBody>"
"<DBSET RESULT=\"1\">"
"<Row>"
"<Col name=\"startDate\">2011-10-11 00:00:01</Col>"
"<Col name=\"endDate\">2011-10-12 23:59:59</Col>"
"</Row>"
"</DBSET>"
"</RequestBody>"
"</pmsRequest>",
END_ARGUMENTS,
BEGIN_RESULT,
"responseXML=Param_responseXML",
END_RESULT,
LAST);
return 0;
}
异常如下:
Action.c(6): Error: Failed to set property name value due to the following exception : javax.naming.NoInitialContextException: Cannot instantiate class: [Root exception is java.lang.ClassNotFoundException: ]
javax.naming.NoInitialContextException: Cannot instantiate class: [Root exception is java.lang.ClassNotFoundException: ]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at com.mercury.ws.jms.ConnectionManagerImpl.initialize(ConnectionManagerImpl.java:98)
at com.mercury.ws.jms.JMSSupportImpl.initialize(JMSSupportImpl.java:28)
at com.mercury.ws.jms.JMSBridge.init_jms(JMSBridge.java:154)
Caused by: java.lang.ClassNotFoundException:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
... 6 more
Action.c(6): Error: InvokeMethod failure: ?_
Action.c(6): Error: ExtractResultArg failure: ? |
|