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 Dmitrii Dimandt <dm...@gmail.com> on 2005/07/09 10:58:35 UTC
Anonymous types and wsdl2ws
I have just downloaded Axis C++ 1.5 and decided to test it against a
web service, located here: http://www.rsdn.ru/ws/Janus.asmx?WSDL
I ran wsdl2ws as described in the documentation. The tool output the following:
ignoring anonymous type >JanusResponse_newMessages
ignoring anonymous type >JanusUserResponse_users
ignoring anonymous type >Check
ignoring anonymous type >JanusRequest_writedMessages
and so on. However, the resulting source files have the following
lines in them:
#include "JanusResponse_newMessages.hpp"
#include "JanusUserResponse_users.hpp"
#include "JanusRequest_writedMessages.hpp"
etc.
That is, the tool creates files that are dependent on these type yet
does nothing to provide those types. How in the world can I make it
_not_ ignore these types?
Thank you
Re: Anonymous types and wsdl2ws
Posted by Anne Thomas Manes <at...@gmail.com>.
You won't do any better with gSOAP.
On 7/9/05, Dmitrii Dimandt <dm...@gmail.com> wrote:
> On 7/9/05, Anne Thomas Manes <at...@gmail.com> wrote:
> > Dmitrii,
> >
> > You'll never be able to generate types from this kind of service. The
> > schema is full of <s:schema> and <s:any> elements, so the only
> > possible way to interact with this service is using raw XML
> > processing. You application will have to process the returned schemas
> > at runtime to determine the structures of the messages and then
> > process them accordingly.
> >
> > Axis C++ should map these response messages to DOM for you, though.
> >
> > Anne
>
> Now, that's inconvenient... I guess, I'll have to use gSOAP instead...
>
Re: Anonymous types and wsdl2ws
Posted by Dmitrii Dimandt <dm...@gmail.com>.
On 7/9/05, Anne Thomas Manes <at...@gmail.com> wrote:
> Dmitrii,
>
> You'll never be able to generate types from this kind of service. The
> schema is full of <s:schema> and <s:any> elements, so the only
> possible way to interact with this service is using raw XML
> processing. You application will have to process the returned schemas
> at runtime to determine the structures of the messages and then
> process them accordingly.
>
> Axis C++ should map these response messages to DOM for you, though.
>
> Anne
Now, that's inconvenient... I guess, I'll have to use gSOAP instead...
Re: Anonymous types and wsdl2ws
Posted by Dmitrii Dimandt <dm...@gmail.com>.
On 7/9/05, Anne Thomas Manes <at...@gmail.com> wrote:
> Dmitrii,
>
> You'll never be able to generate types from this kind of service. The
> schema is full of <s:schema> and <s:any> elements, so the only
> possible way to interact with this service is using raw XML
> processing. You application will have to process the returned schemas
> at runtime to determine the structures of the messages and then
> process them accordingly.
>
> Axis C++ should map these response messages to DOM for you, though.
>
> Anne
Now, that's inconvenient... I guess, I'll have to use gSOAP instead...
Re: Anonymous types and wsdl2ws
Posted by Anne Thomas Manes <at...@gmail.com>.
Dmitrii,
You'll never be able to generate types from this kind of service. The
schema is full of <s:schema> and <s:any> elements, so the only
possible way to interact with this service is using raw XML
processing. You application will have to process the returned schemas
at runtime to determine the structures of the messages and then
process them accordingly.
Axis C++ should map these response messages to DOM for you, though.
Anne
On 7/9/05, Dmitrii Dimandt <dm...@gmail.com> wrote:
> I have just downloaded Axis C++ 1.5 and decided to test it against a
> web service, located here: http://www.rsdn.ru/ws/Janus.asmx?WSDL
>
> I ran wsdl2ws as described in the documentation. The tool output the following:
>
> ignoring anonymous type >JanusResponse_newMessages
> ignoring anonymous type >JanusUserResponse_users
> ignoring anonymous type >Check
> ignoring anonymous type >JanusRequest_writedMessages
>
> and so on. However, the resulting source files have the following
> lines in them:
>
> #include "JanusResponse_newMessages.hpp"
> #include "JanusUserResponse_users.hpp"
> #include "JanusRequest_writedMessages.hpp"
>
> etc.
>
> That is, the tool creates files that are dependent on these type yet
> does nothing to provide those types. How in the world can I make it
> _not_ ignore these types?
>
> Thank you
>
Re: Anonymous types and wsdl2ws
Posted by John Hawkins <HA...@uk.ibm.com>.
Hi,
don 't know if anyone replied to this already.
I think that you've found a bug i.e that the anonymous types are attempted
to be imported.
For the moment I'm afraid you'll just have to remove the imports.
An anonymous type is where an element within itself contains a complextype
rather than referring to a seperately declared complextype
We've found various issues with excess imports - you might find that if
you took a newer build from the site that your particular problem is
fixed. If not can you raise a JIRA please?
Dmitrii Dimandt <dm...@gmail.com>
09/07/2005 09:58
Please respond to
"Apache AXIS C User List"
To
axis-user@ws.apache.org, axis-c-user@ws.apache.org
cc
Subject
Anonymous types and wsdl2ws
I have just downloaded Axis C++ 1.5 and decided to test it against a
web service, located here: http://www.rsdn.ru/ws/Janus.asmx?WSDL
I ran wsdl2ws as described in the documentation. The tool output the
following:
ignoring anonymous type >JanusResponse_newMessages
ignoring anonymous type >JanusUserResponse_users
ignoring anonymous type >Check
ignoring anonymous type >JanusRequest_writedMessages
and so on. However, the resulting source files have the following
lines in them:
#include "JanusResponse_newMessages.hpp"
#include "JanusUserResponse_users.hpp"
#include "JanusRequest_writedMessages.hpp"
etc.
That is, the tool creates files that are dependent on these type yet
does nothing to provide those types. How in the world can I make it
_not_ ignore these types?
Thank you