Hello Regivaldo,
You need to set the action explicitly. Try setting the action as follows:
options.setAction("...");
Cheers
Brian DePradine
Web Services Development
IBM Hursley
External +44 (0) 1962 816319 Internal 246319
If you can't find the time to do it right the first time, where will you
find the time to do it again?
Regivaldo Gomes Costa <[EMAIL PROTECTED]> wrote on 30/10/2007
04:10:32:
> Friends,
>
> I need the next help:
>
> I have a service that has a method that effectuates a like client
> call and the presents the below mistake:
>
> "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"
>
> My client (also it is a axis service) code uses RPC:
>
> private static String ReqIDs(String reqXMLStr) throws AxisFault{
> String respCred = null;
> try {
> RPCServiceClient serviceClient = new RPCServiceClient();
> Options options = new Options();
> options = serviceClient.getOptions();
> EndpointReference targetEPR = new EndpointReference("
> http://localhost:80/axis2/services/VMService");
> options.setTo(targetEPR);
>
> // Access reqCredential methode for VMService Axis2 Service
> QName ReqBallot = new QName("http://ses/vm/xsd",
"ReqBallotIDs");
> Object[] sendParameters = new Object[] {reqXMLStr};
> Class[] respType = new Class[] { String.class };
> Object[] respService = serviceClient.
> invokeBlocking(ReqBallot, sendParameters, respType);
> respCred = (String) respService[0]; // Credential receive
> }
> How I can resolve the problem?
>
> Thank you.
>
> Regivaldo Costa
>
>
> Abra sua conta no Yahoo! Mail, o único sem limite de espaço para
> armazenamento!
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU