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 Houman Babai-Amameh <hb...@hotmail.com> on 2007/03/20 01:26:03 UTC
WSDL2Java - incompatible type build error
Hello,
This problem is happening when I run WSDL2Java on a service that is exposing
types that may clash with java types such as:
found : java.lang.String
required: myPkg.MyServiceStub.String
String prefix2 =
org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
^
cannot find symbol
symbol : method
writeStartElement(myPkg.MyServiceStub.String,java.lang.String,java.lang.String)
location: interface javax.xml.stream.XMLStreamWriter
xmlWriter.writeStartElement(prefix2,"string", namespace);
^
Could somebody please help?
Thanks
_________________________________________________________________
5.5%* 30 year fixed mortgage rate. Good credit refinance. Up to 5 free
quotes - *Terms
https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h2a5d&s=4056&p=5117&disc=y&vers=910
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: WSDL2Java - incompatible type build error
Posted by Martin Gainty <mg...@hotmail.com>.
I dont see the 3 arg method.. the implementation I see for writeStartElement is
final javax.xml.namespace.QName parentQName,
javax.xml.stream.XMLStreamWriter xmlWriter;
Namespace URI = http://w3.ibm.com/schemas/services/2002/11/15/stockquote
xmlWriter.writeStartElement(URI, parentQName.getLocalPart()); //write Start element with the specified namespace and LocalPart of QName
M--
---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.
---------------------------------------------------------------------------
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
----- Original Message -----
From: "Houman Babai-Amameh" <hb...@hotmail.com>
To: <ax...@ws.apache.org>
Sent: Monday, March 19, 2007 8:26 PM
Subject: WSDL2Java - incompatible type build error
> Hello,
>
> This problem is happening when I run WSDL2Java on a service that is exposing
> types that may clash with java types such as:
>
> found : java.lang.String
> required: myPkg.MyServiceStub.String
> String prefix2 =
> org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
>
> ^
>
> cannot find symbol
> symbol : method
> writeStartElement(myPkg.MyServiceStub.String,java.lang.String,java.lang.String)
> location: interface javax.xml.stream.XMLStreamWriter
>
> xmlWriter.writeStartElement(prefix2,"string", namespace);
> ^
>
> Could somebody please help?
>
> Thanks
>
> _________________________________________________________________
> 5.5%* 30 year fixed mortgage rate. Good credit refinance. Up to 5 free
> quotes - *Terms
> https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h2a5d&s=4056&p=5117&disc=y&vers=910
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
Re: WSDL2Java - incompatible type build error
Posted by Amila Suriarachchi <am...@gmail.com>.
when generating code we generate the java.lang package Class names with
fully qualified names.
i.e. String (if intended is default String) it should be java.lang.String
What I can see is that there is a missing string in stub without java.lang.
part
On 3/20/07, Houman Babai-Amameh <hb...@hotmail.com> wrote:
>
> Hello,
>
> This problem is happening when I run WSDL2Java on a service that is
> exposing
> types that may clash with java types such as:
>
> found : java.lang.String
> required: myPkg.MyServiceStub.String
> String prefix2 =
> org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
>
> ^
>
> cannot find symbol
> symbol : method
> writeStartElement(myPkg.MyServiceStub.String,java.lang.String,
> java.lang.String)
> location: interface javax.xml.stream.XMLStreamWriter
>
> xmlWriter.writeStartElement(prefix2,"string", namespace);
> ^
>
> Could somebody please help?
>
> Thanks
>
> _________________________________________________________________
> 5.5%* 30 year fixed mortgage rate. Good credit refinance. Up to 5 free
> quotes - *Terms
>
> https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h2a5d&s=4056&p=5117&disc=y&vers=910
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Amila Suriarachchi,
WSO2 Inc.
RE: WSDL2Java - incompatible type build error
Posted by Houman Babai-Amameh <hb...@hotmail.com>.
OK I think fixed it by including -u when I run wsdl2java.
But now I'm getting 166 classes instead of the 4 I was getting before.
Is there another way to solve this problem.
Thanks
Houman
>From: "Houman Babai-Amameh" <hb...@hotmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: WSDL2Java - incompatible type build error Date: Mon, 19 Mar 2007
>17:26:03 -0700
>
>Hello,
>
>This problem is happening when I run WSDL2Java on a service that is
>exposing types that may clash with java types such as:
>
>found : java.lang.String
>required: myPkg.MyServiceStub.String
> String prefix2 =
>org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
>
> ^
>
>cannot find symbol
>symbol : method
>writeStartElement(myPkg.MyServiceStub.String,java.lang.String,java.lang.String)
>location: interface javax.xml.stream.XMLStreamWriter
>
>xmlWriter.writeStartElement(prefix2,"string", namespace);
> ^
>
>Could somebody please help?
>
>Thanks
>
>_________________________________________________________________
>5.5%* 30 year fixed mortgage rate. Good credit refinance. Up to 5 free
>quotes - *Terms
>https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h2a5d&s=4056&p=5117&disc=y&vers=910
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
_________________________________________________________________
i'm making a difference. Make every IM count for the cause of your choice.
Join Now.
http://clk.atdmt.com/MSN/go/msnnkwme0080000001msn/direct/01/?href=http://im.live.com/messenger/im/home/?source=hmtagline
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org