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 Melanie Courtot <co...@ebi.ac.uk> on 2006/12/11 17:53:33 UTC

custom types with non-java client

Hi,

I'm fairly new at webservices, and I've been developing a webservice based
on axis 1.4.
To send back complex objects that I already had I'm using the castor
serializer.
I was wondering if some of my clients don't use java to access my
webservices if it was still possible for them to get the XML?
Dose somebody have a basic example?

I found this on the web:
http://mail-archives.apache.org/mod_mbox/ws-axis-user/200407.mbox/%3C200407292306.i6TN6ZRk031249@host.concepthost.net%3E
Does this means that I have to modify my methods to send back basic types?

Thanks for any help,
Melanie



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: custom types with non-java client

Posted by Anne Thomas Manes <at...@gmail.com>.
The <wsdl:types> section must specify the schema(s) that describe your
input and output messages. The schemas may be defined inline, or they
may be imported or included using <xsd:import> or <xsd:include>.

In all cases, what is transferred between the client and the service
is an XML message wrapped in a SOAP envelope. Typically, though, the
runtime framework (e.g., Axis, .NET, etc) translates the XML message
into a set of language-specific objects. If you want direct access to
the XML message in Axis, you must use the low-level messaging API.

Anne

On 12/12/06, Melanie Courtot <co...@ebi.ac.uk> wrote:
> Hi Anne,
>
> Thank you for your reply.
>
> I have a few more questions:
>
> - I have a method Term term1 = port.getTermById(144);
> If my non java clients want to access the Term, they will have to build
> the same kind of structure in their own language, which means I need to
> distribute the XML schema. Using the ant java2wsdl how can I specify the
> schemaLocation to import?
>
> - Is it possible to get the XML without using any structure?
>
> I guess I'm just confused about what is sent back by Axis, I thought it
> was just XML in a SOAP envelop (document wrapped style), so I thought
> there would be the 2 options, either using the java objects or getting the
> raw XML, but I don't see how I can test that I can actually get the raw
> XML.
>
> Thanks again,
> Melanie
>
>
>
>
> > It depends on how Castor is serializing your objects. If Castor
> > converts your objects into reasonably straightforward XML schema
> > structures, it should work. What you don't want to do is use SOAP
> > encoding to serialize the objects, because it has a tendency to
> > produce XML that can't be easily processed by non-Java applications.
> >
> > Anne
> >
> > On 12/11/06, Melanie Courtot <co...@ebi.ac.uk> wrote:
> >> Hi,
> >>
> >> I'm fairly new at webservices, and I've been developing a webservice
> >> based
> >> on axis 1.4.
> >> To send back complex objects that I already had I'm using the castor
> >> serializer.
> >> I was wondering if some of my clients don't use java to access my
> >> webservices if it was still possible for them to get the XML?
> >> Dose somebody have a basic example?
> >>
> >> I found this on the web:
> >> http://mail-archives.apache.org/mod_mbox/ws-axis-user/200407.mbox/%3C200407292306.i6TN6ZRk031249@host.concepthost.net%3E
> >> Does this means that I have to modify my methods to send back basic
> >> types?
> >>
> >> Thanks for any help,
> >> Melanie
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: custom types with non-java client

Posted by Melanie Courtot <co...@ebi.ac.uk>.
Hi Anne,

Thank you for your reply.

I have a few more questions:

- I have a method Term term1 = port.getTermById(144);
If my non java clients want to access the Term, they will have to build
the same kind of structure in their own language, which means I need to
distribute the XML schema. Using the ant java2wsdl how can I specify the
schemaLocation to import?

- Is it possible to get the XML without using any structure?

I guess I'm just confused about what is sent back by Axis, I thought it
was just XML in a SOAP envelop (document wrapped style), so I thought
there would be the 2 options, either using the java objects or getting the
raw XML, but I don't see how I can test that I can actually get the raw
XML.

Thanks again,
Melanie




> It depends on how Castor is serializing your objects. If Castor
> converts your objects into reasonably straightforward XML schema
> structures, it should work. What you don't want to do is use SOAP
> encoding to serialize the objects, because it has a tendency to
> produce XML that can't be easily processed by non-Java applications.
>
> Anne
>
> On 12/11/06, Melanie Courtot <co...@ebi.ac.uk> wrote:
>> Hi,
>>
>> I'm fairly new at webservices, and I've been developing a webservice
>> based
>> on axis 1.4.
>> To send back complex objects that I already had I'm using the castor
>> serializer.
>> I was wondering if some of my clients don't use java to access my
>> webservices if it was still possible for them to get the XML?
>> Dose somebody have a basic example?
>>
>> I found this on the web:
>> http://mail-archives.apache.org/mod_mbox/ws-axis-user/200407.mbox/%3C200407292306.i6TN6ZRk031249@host.concepthost.net%3E
>> Does this means that I have to modify my methods to send back basic
>> types?
>>
>> Thanks for any help,
>> Melanie
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Question about performance issues with Axis 1.3

Posted by Davanum Srinivas <da...@gmail.com>.
Aniket,

I don't think anyone says that. Anyway, You need to switch to Axis2
for much better performance than axis1.

thanks,
dims

On 12/13/06, Aniket M Shende <an...@aexp.com> wrote:
>
> Hello ,
>
> Well ... tihs is not really about any performance issue with axis as such ,
> but a more general question regarding performance.
> It is said that in the generated stub solution offers the best performance.
> In axis , the generated stubs use the DII solution internally.
>
> So  , clearly , the Axis framework is overcomming those drawbacks of using
> DII (performance wise) . I would like to know what those drawbacks are and
> how Axis overcomes those .
>
>  Thanks,
>  Aniket
>
>
> American Express made the following
>  annotations on 12/13/06, 08:50:43
> ------------------------------------------------------------------------------
> ******************************************************************************
>
> "This message and any attachments are solely for the intended recipient and
> may contain confidential or privileged information. If you are not the
> intended recipient, any disclosure, copying, use, or distribution of the
> information included in this message and any attachments is prohibited. If
> you have received this communication in error, please notify us by reply
> e-mail and immediately and permanently delete this message and any
> attachments. Thank you."
>
> American Express a ajouté le commentaire suivant le 12/13/06, 08:50:43
>
> Ce courrier et toute pièce jointe qu'il contient sont réservés au seul
> destinataire indiqué et peuvent renfermer des renseignements confidentiels
> et privilégiés. Si vous n'êtes pas le destinataire prévu, toute divulgation,
> duplication, utilisation ou distribution du courrier ou de toute pièce
> jointe est interdite. Si vous avez reçu cette communication par erreur,
> veuillez nous en aviser par courrier et détruire immédiatement le courrier
> et les pièces jointes. Merci.
> ******************************************************************************
> ==============================================================================
>
>
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Question about performance issues with Axis 1.3

Posted by Aniket M Shende <an...@aexp.com>.
Hello , 

Well ... tihs is not really about any performance issue with axis as such 
, but a more general question regarding performance. 
It is said that in the generated stub solution offers the best 
performance. In axis , the generated stubs use the DII solution 
internally. 

So  , clearly , the Axis framework is overcomming those drawbacks of using 
DII (performance wise) . I would like to know what those drawbacks are and 
how Axis overcomes those . 

Thanks,
Aniket

American Express made the following
 annotations on 12/13/06, 08:50:43
------------------------------------------------------------------------------
******************************************************************************

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

American Express a ajout� le commentaire suivant le 12/13/06, 08:50:43

Ce courrier et toute pi�ce jointe qu'il contient sont r�serv�s au seul destinataire indiqu� et peuvent renfermer des renseignements confidentiels et privil�gi�s. Si vous n'�tes pas le destinataire pr�vu, toute divulgation, duplication, utilisation ou distribution du courrier ou de toute pi�ce jointe est interdite. Si vous avez re�u cette communication par erreur, veuillez nous en aviser par courrier et d�truire imm�diatement le courrier et les pi�ces jointes. Merci. 
******************************************************************************
==============================================================================

Re: custom types with non-java client

Posted by Anne Thomas Manes <at...@gmail.com>.
It depends on how Castor is serializing your objects. If Castor
converts your objects into reasonably straightforward XML schema
structures, it should work. What you don't want to do is use SOAP
encoding to serialize the objects, because it has a tendency to
produce XML that can't be easily processed by non-Java applications.

Anne

On 12/11/06, Melanie Courtot <co...@ebi.ac.uk> wrote:
> Hi,
>
> I'm fairly new at webservices, and I've been developing a webservice based
> on axis 1.4.
> To send back complex objects that I already had I'm using the castor
> serializer.
> I was wondering if some of my clients don't use java to access my
> webservices if it was still possible for them to get the XML?
> Dose somebody have a basic example?
>
> I found this on the web:
> http://mail-archives.apache.org/mod_mbox/ws-axis-user/200407.mbox/%3C200407292306.i6TN6ZRk031249@host.concepthost.net%3E
> Does this means that I have to modify my methods to send back basic types?
>
> Thanks for any help,
> Melanie
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org