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 Demetris G <de...@ece.neu.edu> on 2009/06/04 22:42:52 UTC

Axis1.x / Axis2 / WSDL for J2ME

Hi all,

    I have been using Axis and Axis2 for my apps but now as we are 
migrating our software architecture
to mobile devices (primarily CDC-based) we scrabbling to figure out the 
migration of Axis engines
and WSDL parsers.

    Is kSOAP2 the best we can do for using Axis engines on mobile 
devices? And where can we find
WSDL parsers for such environments? Any hints or info on this would be 
greatly appreciated.

Thanks very much
Demetris


Re: Attaching XML to response

Posted by Chinmoy Chakraborty <cc...@gmail.com>.
You can try MTOM attachment strategy and attach your xml in the server side
before it returns to the client...to do that you need to enable MTOM..in the
server side create a datahandler form file-datasource and return it...

DataHandler dh = new DataHandler(new FileDataSource(String path));

HTH,
Chinmoy

On Wed, Jun 10, 2009 at 11:50 PM, Shasta Willson <sh...@gmail.com> wrote:

> On Wed, Jun 10, 2009 at 10:54 AM, Marc Lefebvre<ml...@akimeka.com>
> wrote:
> > Not quite.   I want to insert it in the response on the server side
> BEFORE its sent to the Client.    Is there any examples out there that can
> show how to do this?
>
> I don't have an example, but I'm also not sure how what I suggested
> can't do what you describe here?  At some point you're going to have a
> SOAP/XML message that's about to be sent to the client, right?  So at
> that point in your service I would  think you can create an XML
> element that represents your add-in then attach it into the SOAP/XML
> at the appropriate node.  It sounds like you've tried this with the
> String, but it becomes CDATA in the SOAP/XML message.  Basically I'm
> suggesting that you don't try to add in a String that happens to look
> like XML, but the actual XML element it represents.
>
> - Shasta
>

Re: Attaching XML to response

Posted by Shasta Willson <sh...@gmail.com>.
On Wed, Jun 10, 2009 at 10:54 AM, Marc Lefebvre<ml...@akimeka.com> wrote:
> Not quite.   I want to insert it in the response on the server side BEFORE its sent to the Client.    Is there any examples out there that can show how to do this?

I don't have an example, but I'm also not sure how what I suggested
can't do what you describe here?  At some point you're going to have a
SOAP/XML message that's about to be sent to the client, right?  So at
that point in your service I would  think you can create an XML
element that represents your add-in then attach it into the SOAP/XML
at the appropriate node.  It sounds like you've tried this with the
String, but it becomes CDATA in the SOAP/XML message.  Basically I'm
suggesting that you don't try to add in a String that happens to look
like XML, but the actual XML element it represents.

- Shasta

RE: Attaching XML to response

Posted by Marc Lefebvre <ml...@akimeka.com>.
Not quite.   I want to insert it in the response on the server side BEFORE its sent to the Client.    Is there any examples out there that can show how to do this?

-----Original Message-----
From: Shasta Willson [mailto:shastaw@gmail.com] 
Sent: Wednesday, June 10, 2009 7:42 AM
To: axis-user@ws.apache.org
Subject: Re: Attaching XML to response

On Wed, Jun 10, 2009 at 10:32 AM, Marc Lefebvre<ml...@akimeka.com> wrote:
> My webservice has a block of XML in a string, and I was wondering how do
> I insert it into the response that comes back from Axis.  If I send it
> in the string coming back, it becomes surrounded CDATA element.  I want
> it to be inline with the rest of the XML response.
>

I'm not entirely sure I understood the question, but if it's what I
think, then you can create XML elements to model the data in your
string and insert those into the XML structure you got back at the
point in the XML tree where you want them to show up.

- Shasta

Re: Attaching XML to response

Posted by Shasta Willson <sh...@gmail.com>.
On Wed, Jun 10, 2009 at 10:32 AM, Marc Lefebvre<ml...@akimeka.com> wrote:
> My webservice has a block of XML in a string, and I was wondering how do
> I insert it into the response that comes back from Axis.  If I send it
> in the string coming back, it becomes surrounded CDATA element.  I want
> it to be inline with the rest of the XML response.
>

I'm not entirely sure I understood the question, but if it's what I
think, then you can create XML elements to model the data in your
string and insert those into the XML structure you got back at the
point in the XML tree where you want them to show up.

- Shasta

Attaching XML to response

Posted by Marc Lefebvre <ml...@akimeka.com>.
My webservice has a block of XML in a string, and I was wondering how do
I insert it into the response that comes back from Axis.  If I send it
in the string coming back, it becomes surrounded CDATA element.  I want
it to be inline with the rest of the XML response.

Re: Axis1.x / Axis2 / WSDL for J2ME

Posted by Demetris G <de...@ece.neu.edu>.
No luck still - is it possible that no one using Axis or any SOAP-engine 
implementation
is involved with mobility? If yes let me know and I will sell my idea 
for millions - he he
But I doubt I have anything new.

Seriously, can at least anyone involved in the development of Axis and 
its products tell
me with even a simple yes or a no, is there a lightweight implementation 
of Axis that
can run on mobile devices (CDC, CLDC) or any other such technology. I 
have been
searching around for a while and nothing much other than a 2006 proposal 
for mobile
Axis came about so before I get into implementing something on my own it 
would
be good to avoid re-inventing the wheel

Thanks very much for your help

Demetris G wrote:
>
> Trying again hoping to get some kind of hope for mobile Axis. No one 
> has ever
> used SOAP implementations on mobile devices? Before I jump into k-this 
> and
> k-that I wanted to make sure I am not missing a mobile implementation 
> of the
> Axis engines.
>
> Thanks again
> Demetris
>
> Demetris G wrote:
>>
>> Hi all,
>>
>>    I have been using Axis and Axis2 for my apps but now as we are 
>> migrating our software architecture
>> to mobile devices (primarily CDC-based) we scrabbling to figure out 
>> the migration of Axis engines
>> and WSDL parsers.
>>
>>    Is kSOAP2 the best we can do for using Axis engines on mobile 
>> devices? And where can we find
>> WSDL parsers for such environments? Any hints or info on this would 
>> be greatly appreciated.
>>
>> Thanks very much
>> Demetris
>>
>>
>

Re: Axis1.x / Axis2 / WSDL for J2ME

Posted by Demetris G <de...@ece.neu.edu>.
Trying again hoping to get some kind of hope for mobile Axis. No one has 
ever
used SOAP implementations on mobile devices? Before I jump into k-this and
k-that I wanted to make sure I am not missing a mobile implementation of the
Axis engines.

Thanks again
Demetris

Demetris G wrote:
>
> Hi all,
>
>    I have been using Axis and Axis2 for my apps but now as we are 
> migrating our software architecture
> to mobile devices (primarily CDC-based) we scrabbling to figure out 
> the migration of Axis engines
> and WSDL parsers.
>
>    Is kSOAP2 the best we can do for using Axis engines on mobile 
> devices? And where can we find
> WSDL parsers for such environments? Any hints or info on this would be 
> greatly appreciated.
>
> Thanks very much
> Demetris
>
>