You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by lsf <su...@opensource.lk> on 2003/11/12 06:07:15 UTC

RE: Axis C++ and a question on WSDL inspection

Hi Ron,

Runtime WSDL generation for a webservice (as does in Axis Java) is *almost*
impossible with C/C++ as there is no reflection kind of mechanisms in C/C++.
So what we do in Axis C++ is that we keep a static copy on the WSDL for each
web service at the server.

But to generate WSDL from a C++ class we have been developing a tool in
C/C++ itself. This tool is supposed to generate, WSDL and server side
wrappers for the web service. But this tool is not developped for some time
(say 3 months) and is not upto date.

There is no WSDL generation/inspection in the Axis Runtime. Where and for
what purposes do you think that this funtionality is needed ? (other than
the tools).

Thanks,

Susantha.

-----Original Message-----
From: Ron Lue-Sang [mailto:luesang@apple.com]
Sent: Wednesday, November 12, 2003 4:18 AM
To: susantha@opensource.lk
Cc: Han Ming Ong; Bill Bumgarner
Subject: Axis C++ and a question on WSDL inspection


Hello,
	I was wondering if AxisC does any of the WSDL parsing/inspection in
C/C++ code... From looking in the source I believe the java WSDL2WS
tool is the only thing available for WSDL consumption... (as opposed to
WSDL generation from the server)

Thanks
Ron



Re: Axis C++ and a question on WSDL inspection

Posted by Ron Lue-Sang <lu...@apple.com>.
Cool, thanks Susantha.
	Not sure yet what we'd do with it, just wanted to see what's 
possible...

On Nov 11, 2003, at 9:07 PM, lsf wrote:

> Hi Ron,
>
> Runtime WSDL generation for a webservice (as does in Axis Java) is 
> *almost*
> impossible with C/C++ as there is no reflection kind of mechanisms in 
> C/C++.
> So what we do in Axis C++ is that we keep a static copy on the WSDL 
> for each
> web service at the server.
>
> But to generate WSDL from a C++ class we have been developing a tool in
> C/C++ itself. This tool is supposed to generate, WSDL and server side
> wrappers for the web service. But this tool is not developped for some 
> time
> (say 3 months) and is not upto date.
>
> There is no WSDL generation/inspection in the Axis Runtime. Where and 
> for
> what purposes do you think that this funtionality is needed ? (other 
> than
> the tools).
>
> Thanks,
>
> Susantha.
>
> -----Original Message-----
> From: Ron Lue-Sang [mailto:luesang@apple.com]
> Sent: Wednesday, November 12, 2003 4:18 AM
> To: susantha@opensource.lk
> Cc: Han Ming Ong; Bill Bumgarner
> Subject: Axis C++ and a question on WSDL inspection
>
>
> Hello,
> 	I was wondering if AxisC does any of the WSDL parsing/inspection in
> C/C++ code... From looking in the source I believe the java WSDL2WS
> tool is the only thing available for WSDL consumption... (as opposed to
> WSDL generation from the server)
>
> Thanks
> Ron
>
>
>


Re: Axis C++ and a question on WSDL inspection

Posted by Ron Lue-Sang <lu...@apple.com>.
Cool, thanks Susantha.
	Not sure yet what we'd do with it, just wanted to see what's 
possible...

On Nov 11, 2003, at 9:07 PM, lsf wrote:

> Hi Ron,
>
> Runtime WSDL generation for a webservice (as does in Axis Java) is 
> *almost*
> impossible with C/C++ as there is no reflection kind of mechanisms in 
> C/C++.
> So what we do in Axis C++ is that we keep a static copy on the WSDL 
> for each
> web service at the server.
>
> But to generate WSDL from a C++ class we have been developing a tool in
> C/C++ itself. This tool is supposed to generate, WSDL and server side
> wrappers for the web service. But this tool is not developped for some 
> time
> (say 3 months) and is not upto date.
>
> There is no WSDL generation/inspection in the Axis Runtime. Where and 
> for
> what purposes do you think that this funtionality is needed ? (other 
> than
> the tools).
>
> Thanks,
>
> Susantha.
>
> -----Original Message-----
> From: Ron Lue-Sang [mailto:luesang@apple.com]
> Sent: Wednesday, November 12, 2003 4:18 AM
> To: susantha@opensource.lk
> Cc: Han Ming Ong; Bill Bumgarner
> Subject: Axis C++ and a question on WSDL inspection
>
>
> Hello,
> 	I was wondering if AxisC does any of the WSDL parsing/inspection in
> C/C++ code... From looking in the source I believe the java WSDL2WS
> tool is the only thing available for WSDL consumption... (as opposed to
> WSDL generation from the server)
>
> Thanks
> Ron
>
>
>


RE: Axis C++ and a question on WSDL inspection

Posted by Susantha Kumara <su...@opensource.lk>.
Hi Glen,

-----Original Message-----
From: Glen Daniels
[mailto:glen+dated+1069080918.be090a@thoughtcraft.com]
Sent: Wednesday, November 12, 2003 8:55 PM
To: axis-user@ws.apache.org; Ron Lue-Sang
Cc: Han Ming Ong; Bill Bumgarner; axis-dev@ws.apache.org;
axis-user@ws.apache.org
Subject: Re: Axis C++ and a question on WSDL inspection


Hi Susantha!

One of the important parts of WSDL generation on-the-fly is that the
deployed Handlers for a particular service can participate in generating the
WSDL document.  So for instance, if you have WS-Security handlers present on
your global chain, they can add appropriate policy statements (based on
deployment parameters) in the WSDL to indicate to potential clients that you
require a certain level of security.

Thanks Glen. Now I understand the need of on-the-fly WSDL generation. I want
to
clarify few other things about the on-the-fly WSDL generation,

1. Should operations be only the allowed methods ?. If so what happens when
a
subset of methods of the web service are allowed ?. Should we have only that
subset
of operations in the generated WSDL ?
2. Say we have an encryption/decryption handler configured. Is there any way
to
indicate this in the WSDL ?. If so please provide me the links to such
documentation.

I haven't looked at the C++ code, but it would be good if this pattern were
still possible - clearly since there's no introspection facility, so you'd
probably start with static WSDL and then modify it in the handlers.

Yes we can have the static WSDL in an object Model (De-serialized form) and
do
the wsdl generation at runtime appropriately.

Do you guys have a WSDL object model like wsdl4j?

No Not yet. But I suggest we have it ASAP. Also I think this is quite
independant
module and can be done without much knowladge on Axis C++ code base. Any
volunteer ?.

What about using DOM for the schema part of the WSDL object model ?

This kind of functionality is going to become really critical as people
start defining and using WSDL extensibility to control SOAP extensions.

Thanks,

--Glen

----- Original Message -----
From: "lsf" <su...@opensource.lk>
To: "Ron Lue-Sang" <lu...@apple.com>
Cc: "Han Ming Ong" <ha...@apple.com>; "Bill Bumgarner" <bb...@apple.com>;
<ax...@ws.apache.org>; <ax...@ws.apache.org>
Sent: Wednesday, November 12, 2003 12:07 AM
Subject: RE: Axis C++ and a question on WSDL inspection


> Hi Ron,
>
> Runtime WSDL generation for a webservice (as does in Axis Java) is
*almost*
> impossible with C/C++ as there is no reflection kind of mechanisms in
C/C++.
> So what we do in Axis C++ is that we keep a static copy on the WSDL for
each
> web service at the server.
>
> But to generate WSDL from a C++ class we have been developing a tool in
> C/C++ itself. This tool is supposed to generate, WSDL and server side
> wrappers for the web service. But this tool is not developped for some
time
> (say 3 months) and is not upto date.
>
> There is no WSDL generation/inspection in the Axis Runtime. Where and for
> what purposes do you think that this funtionality is needed ? (other than
> the tools).
>
> Thanks,
>
> Susantha.
>
> -----Original Message-----
> From: Ron Lue-Sang [mailto:luesang@apple.com]
> Sent: Wednesday, November 12, 2003 4:18 AM
> To: susantha@opensource.lk
> Cc: Han Ming Ong; Bill Bumgarner
> Subject: Axis C++ and a question on WSDL inspection
>
>
> Hello,
> I was wondering if AxisC does any of the WSDL parsing/inspection in
> C/C++ code... From looking in the source I believe the java WSDL2WS
> tool is the only thing available for WSDL consumption... (as opposed to
> WSDL generation from the server)
>
> Thanks
> Ron
>
>
>

Thanks,

Susantha.


Re: Axis C++ and a question on WSDL inspection

Posted by Glen Daniels <gl...@thoughtcraft.com>.
Hi Susantha!

One of the important parts of WSDL generation on-the-fly is that the
deployed Handlers for a particular service can participate in generating the
WSDL document.  So for instance, if you have WS-Security handlers present on
your global chain, they can add appropriate policy statements (based on
deployment parameters) in the WSDL to indicate to potential clients that you
require a certain level of security.

I haven't looked at the C++ code, but it would be good if this pattern were
still possible - clearly since there's no introspection facility, so you'd
probably start with static WSDL and then modify it in the handlers.  Do you
guys have a WSDL object model like wsdl4j?

This kind of functionality is going to become really critical as people
start defining and using WSDL extensibility to control SOAP extensions.

Thanks,

--Glen

----- Original Message ----- 
From: "lsf" <su...@opensource.lk>
To: "Ron Lue-Sang" <lu...@apple.com>
Cc: "Han Ming Ong" <ha...@apple.com>; "Bill Bumgarner" <bb...@apple.com>;
<ax...@ws.apache.org>; <ax...@ws.apache.org>
Sent: Wednesday, November 12, 2003 12:07 AM
Subject: RE: Axis C++ and a question on WSDL inspection


> Hi Ron,
>
> Runtime WSDL generation for a webservice (as does in Axis Java) is
*almost*
> impossible with C/C++ as there is no reflection kind of mechanisms in
C/C++.
> So what we do in Axis C++ is that we keep a static copy on the WSDL for
each
> web service at the server.
>
> But to generate WSDL from a C++ class we have been developing a tool in
> C/C++ itself. This tool is supposed to generate, WSDL and server side
> wrappers for the web service. But this tool is not developped for some
time
> (say 3 months) and is not upto date.
>
> There is no WSDL generation/inspection in the Axis Runtime. Where and for
> what purposes do you think that this funtionality is needed ? (other than
> the tools).
>
> Thanks,
>
> Susantha.
>
> -----Original Message-----
> From: Ron Lue-Sang [mailto:luesang@apple.com]
> Sent: Wednesday, November 12, 2003 4:18 AM
> To: susantha@opensource.lk
> Cc: Han Ming Ong; Bill Bumgarner
> Subject: Axis C++ and a question on WSDL inspection
>
>
> Hello,
> I was wondering if AxisC does any of the WSDL parsing/inspection in
> C/C++ code... From looking in the source I believe the java WSDL2WS
> tool is the only thing available for WSDL consumption... (as opposed to
> WSDL generation from the server)
>
> Thanks
> Ron
>
>
>

Re: Axis C++ and a question on WSDL inspection

Posted by Glen Daniels <gl...@thoughtcraft.com>.
Hi Susantha!

One of the important parts of WSDL generation on-the-fly is that the
deployed Handlers for a particular service can participate in generating the
WSDL document.  So for instance, if you have WS-Security handlers present on
your global chain, they can add appropriate policy statements (based on
deployment parameters) in the WSDL to indicate to potential clients that you
require a certain level of security.

I haven't looked at the C++ code, but it would be good if this pattern were
still possible - clearly since there's no introspection facility, so you'd
probably start with static WSDL and then modify it in the handlers.  Do you
guys have a WSDL object model like wsdl4j?

This kind of functionality is going to become really critical as people
start defining and using WSDL extensibility to control SOAP extensions.

Thanks,

--Glen

----- Original Message ----- 
From: "lsf" <su...@opensource.lk>
To: "Ron Lue-Sang" <lu...@apple.com>
Cc: "Han Ming Ong" <ha...@apple.com>; "Bill Bumgarner" <bb...@apple.com>;
<ax...@ws.apache.org>; <ax...@ws.apache.org>
Sent: Wednesday, November 12, 2003 12:07 AM
Subject: RE: Axis C++ and a question on WSDL inspection


> Hi Ron,
>
> Runtime WSDL generation for a webservice (as does in Axis Java) is
*almost*
> impossible with C/C++ as there is no reflection kind of mechanisms in
C/C++.
> So what we do in Axis C++ is that we keep a static copy on the WSDL for
each
> web service at the server.
>
> But to generate WSDL from a C++ class we have been developing a tool in
> C/C++ itself. This tool is supposed to generate, WSDL and server side
> wrappers for the web service. But this tool is not developped for some
time
> (say 3 months) and is not upto date.
>
> There is no WSDL generation/inspection in the Axis Runtime. Where and for
> what purposes do you think that this funtionality is needed ? (other than
> the tools).
>
> Thanks,
>
> Susantha.
>
> -----Original Message-----
> From: Ron Lue-Sang [mailto:luesang@apple.com]
> Sent: Wednesday, November 12, 2003 4:18 AM
> To: susantha@opensource.lk
> Cc: Han Ming Ong; Bill Bumgarner
> Subject: Axis C++ and a question on WSDL inspection
>
>
> Hello,
> I was wondering if AxisC does any of the WSDL parsing/inspection in
> C/C++ code... From looking in the source I believe the java WSDL2WS
> tool is the only thing available for WSDL consumption... (as opposed to
> WSDL generation from the server)
>
> Thanks
> Ron
>
>
>