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 Ricardo Blanes <rb...@tissat.es> on 2006/02/08 13:43:36 UTC

Generating code with wsdl2code

Hi all

 

            When I generate code using axis2-0.94 wsdl2code applied to a
wsdl that imports an schema (both of them attached in this mail), the
receiver class compiles with errors, and the methods in the skeleton
class has a parameter of type OMElement, instead of the appropriate type
based on schema and wsdl. 

 

            This is the command I execute:

 

            Wsdl2code -uri /afolder/ip.wsdl -o /outputfolder/ip -p
com.tissat.guide.ip -ss -d xmlbeans

 

            Is this a bug? or have I done anything wrong?

 

Thanks, Ricardo Blanes 


------------------------------------------------------------------------------------------------------------------------------------
Nota Legal: Este correo electronico puede contener informacion estrictamente confidencial y es de uso exclusivo del destinatario, quedando prohibida a cualquier otra persona su revelacion, copia, distribucion, o el ejercicio de cualquier accion relativa a su contenido. Si ha recibido este correo electronico por error, por favor, conteste al remitente, y posteriormente proceda a borrarlo de su sistema. Gracias por su colaboracion.

Confidentiality notice: This e-mail message may contain confidential and/or legally privileged information and is solely for the attention and use of the intended recipient. Any disclosure, copying, distribution or the taking of any action with relation to  the contents of this e-mail by any other person is strictly prohibited. If you believe that this e-mail has been mistakenly sent  to you, please reply to the sender from whom you received the message in error and then delete the original e-mail from your system. Thank you for your co-operation.
------------------------------------------------------------------------------------------------------------------------------------


Re: Generating code with wsdl2code

Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
I see a number of simpletype restrictions in your schema. ADB does not
support these schema constructions and that may well be the problem
here. Even though you explicitly mentioned  -d xmlbeans, there is a
problem with the script (both the bat and the sh) that caused it not
to pick some of the parameters. (I am inclined to think that since the
xmlbeans argument is last, that can be the case)

Please check whether you see any XMLBeans stuff generated.


On 2/8/06, Ricardo Blanes <rb...@tissat.es> wrote:
>
>
>
> Hi all
>
>
>
>             When I generate code using axis2-0.94 wsdl2code applied to a
> wsdl that imports an schema (both of them attached in this mail), the
> receiver class compiles with errors, and the methods in the skeleton class
> has a parameter of type OMElement, instead of the appropriate type based on
> schema and wsdl.
>
>
>
>             This is the command I execute:
>
>
>
>             Wsdl2code –uri /afolder/ip.wsdl –o /outputfolder/ip –p
> com.tissat.guide.ip –ss –d xmlbeans
>
>
>
>             Is this a bug? or have I done anything wrong?
>
>
>
> Thanks, Ricardo Blanes
>
>  ________________________________
>  Nota Legal: Este correo electronico puede contener informacion
> estrictamente confidencial y es de uso exclusivo del destinatario, quedando
> prohibida a cualquier otra persona su revelacion, copia, distribucion, o el
> ejercicio de cualquier accion relativa a su contenido. Si ha recibido este
> correo electronico por error, por favor, conteste al remitente, y
> posteriormente proceda a borrarlo de su sistema. Gracias por su
> colaboracion.
>
> Confidentiality notice: This e-mail message may contain confidential and/or
> legally privileged information and is solely for the attention and use of
> the intended recipient. Any disclosure, copying, distribution or the taking
> of any action with relation to  the contents of this e-mail by any other
> person is strictly prohibited. If you believe that this e-mail has been
> mistakenly sent  to you,
> please reply to the sender from whom you received the message in error and
> then delete the original e-mail from your system. Thank you for your
> co-operation. ________________________________
>
>
>
>
>
>
>
>
>
>


--
Ajith Ranabahu