Re: WSDL2Java - incompatible type build error
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 <[EMAIL PROTECTED]> 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=10035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h2a5d&s=4056&p=5117&disc=y&vers=910 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi, WSO2 Inc.
RE: WSDL2Java - incompatible type build error
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" <[EMAIL PROTECTED]> 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=10035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h2a5d&s=4056&p=5117&disc=y&vers=910 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ i'm making a difference. Make every IM count for the cause of your choice. Join Now. http://clk.atdmt.com/MSN/go/msnnkwme008001msn/direct/01/?href=http://im.live.com/messenger/im/home/?source=hmtagline - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL2Java - incompatible type build error
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" <[EMAIL PROTECTED]> To: 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=10035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h2a5d&s=4056&p=5117&disc=y&vers=910 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
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=10035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h2a5d&s=4056&p=5117&disc=y&vers=910 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]