You need to sign in to do that
Don't have an account?
firefox
problem with sObject.get_any()
Hi all, I am upgrading existing Axis code to Axis2. It's become even worse since the underlying Object model has also been changed.
-> Axis:
- sObject.get_any() returns MessageElement.
-> Axis2:
- I am facing trouble in finding relevant corresponding one. Is it the following?
sObject.getExtraElement() ?
Let me know if someone has already faced similar problems. Please help.
When you use - Axis2, partner.wsdl, here is how one should retrieve values of various fields in a SObject (we do not have Account, Contact, etc objects in partner.wsdl)
-- OMElement[] records = queryResponse.getResult().getRecords()[0].getExtraElement();
for(OMElement record : record){
String name = record.getLocalName();
String value = record.getText();
}
All Answers
Our suggestion is usually to remain on Axis 1. Do you have a hard requirement to use Axis 2?
We've yet to see a case where the additional complexity from switching to Axis2 was worth the effort. You might want to look at WSC (and you might also want to strongly consider doing nothing, unless you're having siginificant perf issues with Axis1)
Thank you SimonF.
Now, I understand that there is no point in upgrading as of now. I will raise the issue.
However, it seems my part is not very cumbersome and needs only a few relevant concepts of Axis2 version.
If possible, can you please clarify
1) the actual question [1st post]
2) queryMore() concept has a lot of new entries in Axis2. (QueryMore object, etc.) So, any sample code?
The reason is that I can't stop upgrading task immediately, and meanwhile I should have some progress.
So I apologize beforehand, please help if you have any idea.
When you use - Axis2, partner.wsdl, here is how one should retrieve values of various fields in a SObject (we do not have Account, Contact, etc objects in partner.wsdl)
-- OMElement[] records = queryResponse.getResult().getRecords()[0].getExtraElement();
for(OMElement record : record){
String name = record.getLocalName();
String value = record.getText();
}
To add to the responses posted by others in this thread and basically to help out our many friends in IT who are likely to stumble across this answer, I want to share some observations from personal experience: