Forums Register Login

Webservice client for MS CRM in java

+Pie Number of slices to send: Send
Hi ,
I want to connect to MS CRM with java werservice client . i am able to connet to and store and retrrive the data . But i want to retrive the data based on query condition , update the data based these 2 things are not workin for me .
if any one has worked on this can you please provide the sample code .
i am thinking the problem is while settting the query condition values .

this is my code . please help me on this .

//***query conditon **/
ConditionExpression conditionExpression = ConditionExpression.Factory.newInstance();
conditionExpression.setAttributeName("accountid");
conditionExpression.setOperator(ConditionOperator.EQUAL);

// void setValueArray(int i, org.apache.xmlbeans.XmlObject value);

ArrayOfAnyType arrtype = ArrayOfAnyType.Factory.newInstance();
String s = "<accountid>123</accountid>";
StringReader strr = new StringReader(s);
XmlObject obj = XmlObject.Factory.parse(strr);
arrtype.set(obj);
conditionExpression.setValues(arrtype);
//ArrayOfAnyType arr = new ArrayOfAnyType(new String[]{createdAccountid});
ArrayOfConditionExpression arr = ArrayOfConditionExpression.Factory.newInstance();
arr.setConditionArray(1,conditionExpression);
FilterExpression filter = FilterExpression.Factory.newInstance();
When I was younger I felt like a man trapped inside a woman’s body. Then I was born. My twin is a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1547 times.
Similar Threads
Help me get started
hibernate exception on selecting record based on multiple tables..?
How to put List in hibernate Query
Want to connect to computer over internet. Getting exception- Connection refused:connect
AXIS2 - set conditions - XmlValueDisconnectedException
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:33:18.