Hi All,
i am still not able to solve the problem. here i am sending the
code. please let me know what is the problem.
public static String getMessageInfo(String fileId) throws AxisFault {
String success = "true";
RPCServiceClient sender = new RPCServiceClient();
Options opts = new Options();
int msgId = Integer.parseInt(fileId);
Object[] queryArgs = new Object[] {msgId};
logger.debug("STARTING OF getMessageInfo WEBSERVICE CALL ...");
opts.setTo(new EndpointReference(
"http://localhost:8080/LibraryService"));
opts.setAction("
http://standards.xxx.com/schemas/AddIn_1_0/ContentLibrary/GetMessageInfos");
sender.setOptions(opts);
OMElement res = null;
logger.debug("getMessageInfo ALL RESPONSES:");
ArrayList<Integer> args = new ArrayList<Integer>();
args.add(msgId);
try {
logger.debug("Message ID : "+args.get(0) );
res = sender.invokeBlocking(new QName("
http://standards.xxx.com/schemas/AddIn_1_0", "GetMessageInfos"),queryArgs);
logger.debug("getMessageInfo RESPONSE XML: " + res);
System.out.println(res);
} catch (Exception e) {
success = "false";
logger.error("GetStatus SOAP ERROR");
logger.error("GetStatus : " + e.getMessage());
}
logger.debug("END OF getMessageInfo WEBSERVICE CALL ...");
return success;
}
i am getting SOAP ERROR Value cannot be null.
My call should be like this :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:van="http://standards.xxx.com/schemas/AddIn_1_0" xmlns:arr="
http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<soapenv:Header/>
<soapenv:Body>
<van:GetMessageInfos>
<!--Optional:-->
<van:messageIds>
<!--Zero or more repetitions:-->
<arr:int>51</arr:int>
</van:messageIds>
</van:GetMessageInfos>
</soapenv:Body>
</soapenv:Envelope>
but with about method i am able to build like this
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetMessageInfos xmlns="http://standards.xxx.com/schemas/AddIn_1_0">
<arg0 xmlns="">51</arg0>
</GetMessageInfos>
</soapenv:Body>
</soapenv:Envelope>"
this is giving me error. Could you people help me with this.
Thanks
Venkaesh
On Thu, Jun 20, 2013 at 9:49 PM, Venkatesh Reddy Ravula <
[email protected]> wrote:
> Hi Deepal,
> Thanks for your quick response and the links your have
> given. The link has really has excellent information. But i have gone
> through all the links but i have not seen any thing which is using the
> element that is passing int value to the serviceClient. Please Deepal
> point me to right link if missed any thing or let me know if you have any
> sample. This is little urgent for me.
>
> Thanks
> Venkatesh
>
>
> On Thu, Jun 20, 2013 at 6:10 PM, Deepal jayasinghe <[email protected]>wrote:
>
>> You should be able to find the related stuff here -
>> http://blogs.deepal.org/2009/06/axis2-tutorials-and-articles.html
>>
>> Deepal
>>
>> Could you please let me know which element I have to use to send the int
>> value. I am trying from past several dayes to figure out which element will
>> take the int value. Please let me know the element name.
>>
>> Thanks
>> Venkatesh
>> On Jun 20, 2013 4:22 PM, "Deepal jayasinghe" <[email protected]> wrote:
>>
>>> You cannot directly send 'int' value to ServiceClient, you can use one
>>> of the following:
>>> - Create a correct Axiom element
>>> - Use RPCServiceClient
>>>
>>> Deepal
>>> > Hi All,
>>> > I have one problem here. I am unable to find a method to send
>>> > int value to the service client. When i was sending the String value i
>>> > am getting the following error:
>>> >
>>> > The InnerException message was 'There was an error deserializing the
>>> > object of type System.Int32[].
>>> >
>>> > Thanks
>>> > Venkatesh
>>> >
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>