Your code is wrong.
Options options = new Options();
options.set...
serviceClient.setOptions(options);
On 20 Feb 2008, at 05:33, 雪莉 焦 wrote:
Hi all:
I publish a web service using axis2 on websphere 5.1, also i
can invoke this webservice correctly with java application
client ,but i cann't ivoke this webservice in jsp with the same
client code.The client code is:
......
RPCServiceClient serviceClient = new RPCServiceClient();
Options options = serviceClient.getOptions();
EndpointReference targetEPR = new EndpointReference
(serviceURL);
options.setTo(targetEPR);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
......
Object[] response = serviceClient.invokeBlocking
(opFindEntry,opFindEntryArgs, returnTypes);
The exception in running jsp is:
org.apache.axis2.AxisFault: The server failed to process the
WS-Addressing header: wsa:Action [Reason]: A header representing a
Message Addressing Property is not valid and the message cannot be
processed
[08-2-20 9:23:38:177 CST] 57fa3a39 SystemErr R at
org.apache.axis2.handlers.addressing.AddressingInFaultHandler.invoke
(AddressingInFaultHandler.java:114)
[08-2-20 9:23:38:177 CST] 57fa3a39 SystemErr R at
org.apache.axis2.engine.Phase.invoke(Phase.java:292)
[08-2-20 9:23:38:177 CST] 57fa3a39 SystemErr R at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
[08-2-20 9:23:38:177 CST] 57fa3a39 SystemErr R at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
[08-2-20 9:23:38:177 CST] 57fa3a39 SystemErr R at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse
(OutInAxisOperation.java:336)
[08-2-20 9:23:38:177 CST] 57fa3a39 SystemErr R at
org.apache.axis2.description.OutInAxisOperationClient.send
(OutInAxisOperation.java:389)
[08-2-20 9:23:38:177 CST] 57fa3a39 SystemErr R at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl
(OutInAxisOperation.java:211)
[08-2-20 9:23:38:177 CST] 57fa3a39 SystemErr R at
org.apache.axis2.client.OperationClient.execute
(OperationClient.java:163)
[08-2-20 9:23:38:177 CST] 57fa3a39 SystemErr R at
org.apache.axis2.client.ServiceClient.sendReceive
(ServiceClient.java:528)
[08-2-20 9:23:38:177 CST] 57fa3a39 SystemErr R at
org.apache.axis2.client.ServiceClient.sendReceive
(ServiceClient.java:508)
[08-2-20 9:23:38:177 CST] 57fa3a39 SystemErr R at
org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking
(RPCServiceClient.java:101)
Thanks in advance,zhyj.
雅虎邮箱传递新年祝福,个性贺卡送亲朋!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]