You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by fire fox <fy...@gmail.com> on 2010/12/15 13:37:02 UTC

trouble in upgrading Object model (Axiom): Axis -> Axis2

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.

AW: trouble in upgrading Object model (Axiom): Axis -> Axis2

Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
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:fyr3fox@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 <fy...@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.

 


Re: trouble in upgrading Object model (Axiom): Axis -> Axis2

Posted by fire fox <fy...@gmail.com>.
really sorry, but it's been 5 days. Please help!

On Wed, Dec 15, 2010 at 6:07 PM, fire fox <fy...@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.
>

Re: trouble in upgrading Object model (Axiom): Axis -> Axis2

Posted by fire fox <fy...@gmail.com>.
Thanks Josef and Amila. Your replies were really helpful.

On Wed, Jan 5, 2011 at 4:12 PM, Amila Suriarachchi <
amilasuriarachchi@gmail.com> wrote:

> I think you need to convert the axis module to compatible with Axis2 i.e
> using Axiom manually.
>
> this link[1] may help you in writing axis2 modules.
>
> thanks,
> Amila.
>
> [1] http://wso2.org/library/articles/extending-axis2
>
> On Wed, Dec 15, 2010 at 6:07 PM, fire fox <fy...@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.
>>
>
>
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>

Re: trouble in upgrading Object model (Axiom): Axis -> Axis2

Posted by Amila Suriarachchi <am...@gmail.com>.
I think you need to convert the axis module to compatible with Axis2 i.e
using Axiom manually.

this link[1] may help you in writing axis2 modules.

thanks,
Amila.

[1] http://wso2.org/library/articles/extending-axis2

On Wed, Dec 15, 2010 at 6:07 PM, fire fox <fy...@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.
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/