Because nobody answered so far, I try to give you a bit starter help

 

First - there is no free lunch L

 

Try to model as XML what you exchange between client and server.

i.e. 

If you have many records you may think to model a collection of records 

where each record is a collection of fields modeled as name value pairs
in XML !

 

i.e.

<Record>

<field>

                                <name>CustomerName</name>

                                <value>Stadelmann</value>

</field>

<field>

                                <name>CustomerPreName</name>

                                <value>Josef</value>

</field>

<field>

                                <name>CustomerCity</name>

                                <value>NewYork</value>

</field>

</Record>

<Record>

....

</Record>

 

Then look at AXIOM ...

and find that axiom is a tree with a root-object with parent- and
child-nodes where each node can have siblings plus ... ( this in the
raw).

You can iterate over this node-tree from sibling to sibling . . .

 

When you have your xml stream, 

de-serialize it into a axiom OMElement, that is building you axiom model
iteratively / programmatically AND

       serializing an OMElement into a xml stream is just one function
call.

 

The only parameter to exchange between a client and a server is the
OMElement, 

which in the end can be a nested collection of collections of something
...

 

Then build your client and web service in Java or C using AXIS2/J and/or
AXIS2/C

 

And I don't know what the SForce API is for ...

So far

 

Josef.Stadelmann

@axa-winterthur.ch

 

 

 

Von: fire fox [mailto:fyr3...@gmail.com] 
Gesendet: Montag, 20. Dezember 2010 07:32
An: java-user@axis.apache.org
Betreff: Re: trouble in upgrading Object model (Axiom): Axis -> Axis2

 

really sorry, but it's been 5 days. Please help!

 

On Wed, Dec 15, 2010 at 6:07 PM, fire fox <fyr3...@gmail.com> wrote:

Hi All, 

          I am very new to Axis2 and even Axis. I have to upgrade
existing module that uses Axis to Axis2. I think the object model has
also been upgraded to Axiom. 

 

--> MessageElement[] records = queryResult.getRecords(i).get_any();
[Salesforce WS API]

 

I am wondering how should I change this one to Axis2 compliant. 

 

I don't expect spoon feeding, and am sorry if my query looks like it. 

I am stuck with three completely new frameworks - axis, axis2, SForce
API. Sometimes I couldn't even figure out whether the issue is Axis
related or WS. 

Please give me some leads. 

 

Thanks.

 

Reply via email to