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 Carsten Ziegeler <cz...@apache.org> on 2006/07/10 11:38:12 UTC
[Axis2] How to do wsdl based validation with raw messages?
I'm trying to do the following based on axis2: I have a wsdl describing
my web services (incl. ws policy). I now want to provide a service which
does all the validation stuff of the incomming message (based on the xml
schema and policy in the wsdl) and then I want to implement my web
service based on the raw message (the complete message tree is then
processed by some business logic and the result is tree which is then
send back to the client.
Is this possible?
(Of course I could generate the server code using wsdl2java and then
recreate the whole message tree in the implementation based on the
object tree, but this is obviously not a good solution :) ).
Thanks in advance
Carsten
--
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] How to do wsdl based validation with raw messages?
Posted by Carsten Ziegeler <cz...@apache.org>.
Carsten Ziegeler wrote:
> Ajith Ranabahu wrote:
>> Hi Carsten,
>> Nice to see you in this list :) just as Dims said ,for having non
>> databound, raw XML handling use the -d none (ah make it all lowercase
>> please) option and you'll get all your skeletons generated with
>> OMElement in - OMElement out style.
>> Anyway we do not have a model where the input messages get validated
>> against a schema. You'll have to implement that either as a handler
>> (and take a hit in performance) or in the message receiver/ service
>> class (with the risk that an invalid message could get completely
>> processed for the QoS)
>>
> Ah, ok, so this means that I have to implement the validation myself and
> the generated code (with -d none) is not validated at all?
>
And what about ws policy checks? Are there any utility classes in axis2
(or in the
sub projects) I could use?
Thanks
Carsten
--
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] How to do wsdl based validation with raw messages?
Posted by Carsten Ziegeler <cz...@apache.org>.
Ajith Ranabahu schrieb:
> Hi Carsten,
> Nice to see you in this list :) just as Dims said ,for having non
> databound, raw XML handling use the -d none (ah make it all lowercase
> please) option and you'll get all your skeletons generated with
> OMElement in - OMElement out style.
> Anyway we do not have a model where the input messages get validated
> against a schema. You'll have to implement that either as a handler
> (and take a hit in performance) or in the message receiver/ service
> class (with the risk that an invalid message could get completely
> processed for the QoS)
>
Ah, ok, so this means that I have to implement the validation myself and
the generated code (with -d none) is not validated at all?
Carsten
--
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] How to do wsdl based validation with raw messages?
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi Carsten,
Nice to see you in this list :) just as Dims said ,for having non
databound, raw XML handling use the -d none (ah make it all lowercase
please) option and you'll get all your skeletons generated with
OMElement in - OMElement out style.
Anyway we do not have a model where the input messages get validated
against a schema. You'll have to implement that either as a handler
(and take a hit in performance) or in the message receiver/ service
class (with the risk that an invalid message could get completely
processed for the QoS)
Ajith
On 7/10/06, Carsten Ziegeler <cz...@apache.org> wrote:
> Davanum Srinivas wrote:
> > Hi Carsten,
> >
> > Did you try the "-d NONE" option in wsdl2java?
> >
> Ups, no...but will do that now :)
> I didn't see that option when I 'quickly' looked at the tools doc; sorry
> for noise!
>
> Thanks, Dims
>
> Carsten
>
> --
> Carsten Ziegeler - Open Source Group, S&N AG
> http://www.s-und-n.de
> http://www.osoco.org/weblogs/rael/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Ajith Ranabahu
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] How to do wsdl based validation with raw messages?
Posted by Carsten Ziegeler <cz...@apache.org>.
Davanum Srinivas wrote:
> Hi Carsten,
>
> Did you try the "-d NONE" option in wsdl2java?
>
Ups, no...but will do that now :)
I didn't see that option when I 'quickly' looked at the tools doc; sorry
for noise!
Thanks, Dims
Carsten
--
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] How to do wsdl based validation with raw messages?
Posted by Davanum Srinivas <da...@gmail.com>.
Hi Carsten,
Did you try the "-d NONE" option in wsdl2java?
thanks,
dims
On 7/10/06, Carsten Ziegeler <cz...@apache.org> wrote:
> I'm trying to do the following based on axis2: I have a wsdl describing
> my web services (incl. ws policy). I now want to provide a service which
> does all the validation stuff of the incomming message (based on the xml
> schema and policy in the wsdl) and then I want to implement my web
> service based on the raw message (the complete message tree is then
> processed by some business logic and the result is tree which is then
> send back to the client.
>
> Is this possible?
>
> (Of course I could generate the server code using wsdl2java and then
> recreate the whole message tree in the implementation based on the
> object tree, but this is obviously not a good solution :) ).
>
> Thanks in advance
> Carsten
> --
> Carsten Ziegeler - Open Source Group, S&N AG
> http://www.s-und-n.de
> http://www.osoco.org/weblogs/rael/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
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