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 Denis Kishenko <dk...@gmail.com> on 2007/06/06 14:52:42 UTC

wsdl2java crushes

Hi all

I am really interested in wsdl2java tool but have some problems.

On the following link you can find a lot of *good* wsdl files
http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
unfortunately wsdl2java crushes on the most of them (about 70%) with exceptions

For example, see
http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html

getBalance.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:description xmlns:tns="http://example.org/getBalance/"
	xmlns:wsdl="http://www.w3.org/ns/wsdl"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	targetNamespace="http://example.org/getBalance/">

	<wsdl:documentation>
		This test shows how to use elements from an included no-target
		namespace xsd (i.e. chameleon include)
	</wsdl:documentation>

	<wsdl:types>
		<xsd:schema targetNamespace="http://example.org/getBalance/"
			xmlns:xsd="http://www.w3.org/2001/XMLSchema">
			<xsd:include schemaLocation="getBalance.xsd" />
		</xsd:schema>
	</wsdl:types>

	<wsdl:interface name="getBalanceInf">
		<wsdl:operation name="getBalance"
			pattern="http://www.w3.org/ns/wsdl/in-out">
			<wsdl:input element="tns:custInfo" />
			<wsdl:output element="tns:accInfo" />
		</wsdl:operation>
	</wsdl:interface>
</wsdl:description>

C:\axis2-1.2\bin>wsdl2java.bat -uri
C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl
Using AXIS2_HOME:   C:\axis2-1.2
Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:140)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: javax.wsdl.WSDLException: WSDLException (at
/wsdl:description): faultCode=INVALID_WSDL: Expected element
'{http://schemas.xmlsoap.org/wsdl/
}definitions'.
        at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:308)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:97)
        ... 2 more

Why this tool doesn't understand this file?

Thanks,
Denis

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: wsdl2java crushes

Posted by Davanum Srinivas <da...@gmail.com>.
Raghu,

wsdl:description is WSDL 2.0.

thanks,
dims

On 6/6/07, Raghu Upadhyayula <ru...@responsys.com> wrote:
> Hi Dims & Denis,
>
>         I'm not sure about the abstract & concrete wsdl, but one thing I
> observed in Denis's WSDL is that his wsdl is enclosed in
> wsdl:description tag, shouldn't it be enclosed in wsdl:definitions tag
>
> Thanks
> Raghu
>
> -----Original Message-----
> From: Davanum Srinivas [mailto:davanum@gmail.com]
> Sent: Wednesday, June 06, 2007 6:35 AM
> To: Denis Kishenko
> Cc: axis-user@ws.apache.org
> Subject: Re: wsdl2java crushes
>
> Yes, we use them to test for example woden. It's quite easy to write a
> concrete wsdl that imports the abstract one and then run it with
> wsdl2java.
>
> thanks,
> dims
>
> On 6/6/07, Denis Kishenko <dk...@gmail.com> wrote:
> > So it looks like 70% of W3C WSDL 2.0 Test Suite files are abstract =)
> >
> > 2007/6/6, Davanum Srinivas <da...@gmail.com>:
> > > This means that that this is an abstract wsdl and not a concrete
> wsdl.
> > >
> > > -- dims
> > >
> > > On 6/6/07, Denis Kishenko <dk...@gmail.com> wrote:
> > > > I am sorry for confusion, my previous example was incorrect
> because of
> > > > I skipped -wv, but this crushes too
> > > >
> > > > C:\axis2-1.2\bin>wsdl2java.bat -uri
> > > > C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl -wv
> 2.0
> > > > Using AXIS2_HOME:   C:\axis2-1.2
> > > > Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
> > > > Exception in thread "main"
> > > > org.apache.axis2.wsdl.codegen.CodeGenerationException: Error
> parsing
> > > > WSDL
> > > >         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
> Engine.java:137)
> > > >         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > > >         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > > > Caused by: org.apache.axis2.AxisFault: No wsdlService found in the
> WSDL
> > > >         at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(
> WSDL20ToAxisServiceBuilder.java:227)
> > > >         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
> Engine.java:93)
> > > >         ... 2 more
> > > > Caused by: org.apache.axis2.AxisFault: No wsdlService found in the
> WSDL
> > > >         at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processService(W
> SDL20ToAxisServiceBuilder.java:276)
> > > >         at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(
> WSDL20ToAxisServiceBuilder.java:224)
> > > >         ... 3 more
> > > >
> > > >
> > > > 2007/6/6, Lukichev, Alexander S <al...@intel.com>:
> > > > > Maybe because it expects WSDL v1, not v2?
> > > > >
> > > > > Alexander
> > > > >
> > > > > >-----Original Message-----
> > > > > >From: Denis Kishenko [mailto:dkishenko@gmail.com]
> > > > > >Sent: Wednesday, June 06, 2007 4:53 PM
> > > > > >To: axis-user@ws.apache.org
> > > > > >Subject: wsdl2java crushes
> > > > > >
> > > > > >Hi all
> > > > > >
> > > > > >I am really interested in wsdl2java tool but have some
> problems.
> > > > > >
> > > > > >On the following link you can find a lot of *good* wsdl files
> > > > >
> >http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> > > > > >unfortunately wsdl2java crushes on the most of them (about 70%)
> with
> > > > > exceptions
> > > > > >
> > > > > >For example, see
> > > > >
> >http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> > > > > >
> > > > > >getBalance.wsdl
> > > > > ><?xml version="1.0" encoding="UTF-8"?>
> > > > > ><wsdl:description xmlns:tns="http://example.org/getBalance/"
> > > > > >       xmlns:wsdl="http://www.w3.org/ns/wsdl"
> > > > > >       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > > > >       targetNamespace="http://example.org/getBalance/">
> > > > > >
> > > > > >       <wsdl:documentation>
> > > > > >               This test shows how to use elements from an
> included
> > > > > no-target
> > > > > >               namespace xsd (i.e. chameleon include)
> > > > > >       </wsdl:documentation>
> > > > > >
> > > > > >       <wsdl:types>
> > > > > >               <xsd:schema
> > > > > targetNamespace="http://example.org/getBalance/"
> > > > > >
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> > > > > >                       <xsd:include
> schemaLocation="getBalance.xsd" />
> > > > > >               </xsd:schema>
> > > > > >       </wsdl:types>
> > > > > >
> > > > > >       <wsdl:interface name="getBalanceInf">
> > > > > >               <wsdl:operation name="getBalance"
> > > > > >
> pattern="http://www.w3.org/ns/wsdl/in-out">
> > > > > >                       <wsdl:input element="tns:custInfo" />
> > > > > >                       <wsdl:output element="tns:accInfo" />
> > > > > >               </wsdl:operation>
> > > > > >       </wsdl:interface>
> > > > > ></wsdl:description>
> > > > > >
> > > > > >C:\axis2-1.2\bin>wsdl2java.bat -uri
> > > > > >C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl
> > > > > >Using AXIS2_HOME:   C:\axis2-1.2
> > > > > >Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
> > > > > >Exception in thread "main"
> > > > > >org.apache.axis2.wsdl.codegen.CodeGenerationException: Error
> parsing
> > > > > >WSDL
> > > > > >        at
> > > > >
> >org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneratio
> > > > > nEngine.java:140)
> > > > > >        at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > > > > >        at
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > > > > >Caused by: javax.wsdl.WSDLException: WSDLException (at
> > > > > >/wsdl:description): faultCode=INVALID_WSDL: Expected element
> > > > > >'{http://schemas.xmlsoap.org/wsdl/
> > > > > >}definitions'.
> > > > > >        at
> com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown
> > > > > Source)
> > > > > >        at
> com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> > > > > Source)
> > > > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
> Source)
> > > > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
> Source)
> > > > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
> Source)
> > > > > >        at
> > > > >
> >org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(Co
> > > > > deGenerationEngine.java:308
> > > > > >)
> > > > > >        at
> > > > >
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
> > > > > Engine.java:97)
> > > > > >        ... 2 more
> > > > > >
> > > > > >Why this tool doesn't understand this file?
> > > > > >
> > > > > >Thanks,
> > > > > >Denis
> > > > > >
> > > > >
> >---------------------------------------------------------------------
> > > > > >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > > >For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Davanum Srinivas :: http://davanum.wordpress.com
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: wsdl2java crushes

Posted by Raghu Upadhyayula <ru...@responsys.com>.
Hi Dims & Denis,

	I'm not sure about the abstract & concrete wsdl, but one thing I
observed in Denis's WSDL is that his wsdl is enclosed in
wsdl:description tag, shouldn't it be enclosed in wsdl:definitions tag

Thanks
Raghu

-----Original Message-----
From: Davanum Srinivas [mailto:davanum@gmail.com] 
Sent: Wednesday, June 06, 2007 6:35 AM
To: Denis Kishenko
Cc: axis-user@ws.apache.org
Subject: Re: wsdl2java crushes

Yes, we use them to test for example woden. It's quite easy to write a
concrete wsdl that imports the abstract one and then run it with
wsdl2java.

thanks,
dims

On 6/6/07, Denis Kishenko <dk...@gmail.com> wrote:
> So it looks like 70% of W3C WSDL 2.0 Test Suite files are abstract =)
>
> 2007/6/6, Davanum Srinivas <da...@gmail.com>:
> > This means that that this is an abstract wsdl and not a concrete
wsdl.
> >
> > -- dims
> >
> > On 6/6/07, Denis Kishenko <dk...@gmail.com> wrote:
> > > I am sorry for confusion, my previous example was incorrect
because of
> > > I skipped -wv, but this crushes too
> > >
> > > C:\axis2-1.2\bin>wsdl2java.bat -uri
> > > C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl -wv
2.0
> > > Using AXIS2_HOME:   C:\axis2-1.2
> > > Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
> > > Exception in thread "main"
> > > org.apache.axis2.wsdl.codegen.CodeGenerationException: Error
parsing
> > > WSDL
> > >         at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:137)
> > >         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > >         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > > Caused by: org.apache.axis2.AxisFault: No wsdlService found in the
WSDL
> > >         at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(
WSDL20ToAxisServiceBuilder.java:227)
> > >         at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:93)
> > >         ... 2 more
> > > Caused by: org.apache.axis2.AxisFault: No wsdlService found in the
WSDL
> > >         at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processService(W
SDL20ToAxisServiceBuilder.java:276)
> > >         at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(
WSDL20ToAxisServiceBuilder.java:224)
> > >         ... 3 more
> > >
> > >
> > > 2007/6/6, Lukichev, Alexander S <al...@intel.com>:
> > > > Maybe because it expects WSDL v1, not v2?
> > > >
> > > > Alexander
> > > >
> > > > >-----Original Message-----
> > > > >From: Denis Kishenko [mailto:dkishenko@gmail.com]
> > > > >Sent: Wednesday, June 06, 2007 4:53 PM
> > > > >To: axis-user@ws.apache.org
> > > > >Subject: wsdl2java crushes
> > > > >
> > > > >Hi all
> > > > >
> > > > >I am really interested in wsdl2java tool but have some
problems.
> > > > >
> > > > >On the following link you can find a lot of *good* wsdl files
> > > >
>http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> > > > >unfortunately wsdl2java crushes on the most of them (about 70%)
with
> > > > exceptions
> > > > >
> > > > >For example, see
> > > >
>http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> > > > >
> > > > >getBalance.wsdl
> > > > ><?xml version="1.0" encoding="UTF-8"?>
> > > > ><wsdl:description xmlns:tns="http://example.org/getBalance/"
> > > > >       xmlns:wsdl="http://www.w3.org/ns/wsdl"
> > > > >       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > > >       targetNamespace="http://example.org/getBalance/">
> > > > >
> > > > >       <wsdl:documentation>
> > > > >               This test shows how to use elements from an
included
> > > > no-target
> > > > >               namespace xsd (i.e. chameleon include)
> > > > >       </wsdl:documentation>
> > > > >
> > > > >       <wsdl:types>
> > > > >               <xsd:schema
> > > > targetNamespace="http://example.org/getBalance/"
> > > > >
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> > > > >                       <xsd:include
schemaLocation="getBalance.xsd" />
> > > > >               </xsd:schema>
> > > > >       </wsdl:types>
> > > > >
> > > > >       <wsdl:interface name="getBalanceInf">
> > > > >               <wsdl:operation name="getBalance"
> > > > >
pattern="http://www.w3.org/ns/wsdl/in-out">
> > > > >                       <wsdl:input element="tns:custInfo" />
> > > > >                       <wsdl:output element="tns:accInfo" />
> > > > >               </wsdl:operation>
> > > > >       </wsdl:interface>
> > > > ></wsdl:description>
> > > > >
> > > > >C:\axis2-1.2\bin>wsdl2java.bat -uri
> > > > >C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl
> > > > >Using AXIS2_HOME:   C:\axis2-1.2
> > > > >Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
> > > > >Exception in thread "main"
> > > > >org.apache.axis2.wsdl.codegen.CodeGenerationException: Error
parsing
> > > > >WSDL
> > > > >        at
> > > >
>org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneratio
> > > > nEngine.java:140)
> > > > >        at
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > > > >        at
org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > > > >Caused by: javax.wsdl.WSDLException: WSDLException (at
> > > > >/wsdl:description): faultCode=INVALID_WSDL: Expected element
> > > > >'{http://schemas.xmlsoap.org/wsdl/
> > > > >}definitions'.
> > > > >        at
com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown
> > > > Source)
> > > > >        at
com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> > > > Source)
> > > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
Source)
> > > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
Source)
> > > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
Source)
> > > > >        at
> > > >
>org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(Co
> > > > deGenerationEngine.java:308
> > > > >)
> > > > >        at
> > > >
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
> > > > Engine.java:97)
> > > > >        ... 2 more
> > > > >
> > > > >Why this tool doesn't understand this file?
> > > > >
> > > > >Thanks,
> > > > >Denis
> > > > >
> > > >
>---------------------------------------------------------------------
> > > > >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > >For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> > --
> > Davanum Srinivas :: http://davanum.wordpress.com
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: AXIS 1.4 Null Pointer Exception error

Posted by Martin Gainty <mg...@hotmail.com>.
properties.xml
<property name="javax.xml.parsers.DocumentBuilderFactory" 
value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
does the class exist in %AXIS_HOME%dir /s\lib\endorsed\xercesImpl-*.jar

does the class exist in %BEA_HOME%\jrockit81*\console\lib

Can you post the relevant bits of code ..difficult to debug with just a few 
error messages

HTH
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: <Ne...@wellsfargo.com>
To: <ax...@ws.apache.org>
Sent: Wednesday, June 06, 2007 10:25 AM
Subject: AXIS 1.4 Null Pointer Exception error




I turn on debugger and saw following error.
Anyone have any idea to avoid it. (note: AXIS1.4 seems work even you
have these error).


DEBUG - operation.getNumParams()=1
DEBUG - getParamList number of params: 1
DEBUG - Enter: Call::invoke(RPCElement)
DEBUG - org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
DEBUG - Attachment support is enabled?  true
DEBUG - Failed to set EntityResolver to null on DocumentBuilder
java.lang.NullPointerException
at
weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntit
yResolver.java:61)
at
weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocu
mentBuilder.java:168)
at
org.apache.axis.utils.XMLUtils.releaseDocumentBuilder(XMLUtils.java:252)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:342)
at
org.apache.axis.message.SOAPDocumentImpl.<init>(SOAPDocumentImpl.java:70
)
at org.apache.axis.SOAPPart.<init>(SOAPPart.java:1020)
at org.apache.axis.Message.setup(Message.java:377)
at org.apache.axis.Message.<init>(Message.java:246)
at org.apache.axis.client.Call.invoke(Call.java:2425)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at
com.wellsfargo.service.provider.ecpr.prototype._2007.PrototypeSoapBindin
gStub.myOperation(PrototypeSoapBindingStub.java:975)
at
com.wellsfargo.ecpr.prototype.PrototypeClient.main(PrototypeClient.java:
129)
DEBUG - Enter: SOAPPart ctor(FORM_SOAPENVELOPE)
DEBUG - org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
DEBUG - Setting current message form to: FORM_SOAPENVELOPE
(currentMessage is now org.apache.axis.message.SOAPEnvelope)
DEBUG - Exit: SOAPPart ctor()
DEBUG - org.apache.axis.i18n.resource::handleGetObject(addBody00)
DEBUG - Adding body element to message...
DEBUG - Enter: Call::invoke()
DEBUG - MessageContext: setTargetService(prototype2007)
DEBUG - org.apache.axis.i18n.resource::handleGetObject(noService10)
DEBUG - Exception:
org.apache.axis.ConfigurationException: No service named prototype2007
is available
org.apache.axis.ConfigurationException: No service named prototype2007
is available
at
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:
233)
at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
at
org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
at org.apache.axis.client.Call.invoke(Call.java:2690)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at
com.wellsfargo.service.provider.ecpr.prototype._2007.PrototypeSoapBindin
gStub.myOperation(PrototypeSoapBindingStub.java:975)
at
com.wellsfargo.ecpr.prototype.PrototypeClient.main(PrototypeClient.java:
129)

at
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:
233)
at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
at
org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
at org.apache.axis.client.Call.invoke(Call.java:2690)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at
com.wellsfargo.service.provider.ecpr.prototype._2007.PrototypeSoapBindin
gStub.myOperation(PrototypeSoapBindingStub.java:975)
at
com.wellsfargo.ecpr.prototype.PrototypeClient.main(PrototypeClient.java:
129)

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


AXIS 1.4 Null Pointer Exception error

Posted by Ne...@wellsfargo.com.
 

I turn on debugger and saw following error.
Anyone have any idea to avoid it. (note: AXIS1.4 seems work even you
have these error).


DEBUG - operation.getNumParams()=1
DEBUG - getParamList number of params: 1
DEBUG - Enter: Call::invoke(RPCElement)
DEBUG - org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
DEBUG - Attachment support is enabled?  true
DEBUG - Failed to set EntityResolver to null on DocumentBuilder
java.lang.NullPointerException
	at
weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntit
yResolver.java:61)
	at
weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocu
mentBuilder.java:168)
	at
org.apache.axis.utils.XMLUtils.releaseDocumentBuilder(XMLUtils.java:252)
	at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:342)
	at
org.apache.axis.message.SOAPDocumentImpl.<init>(SOAPDocumentImpl.java:70
)
	at org.apache.axis.SOAPPart.<init>(SOAPPart.java:1020)
	at org.apache.axis.Message.setup(Message.java:377)
	at org.apache.axis.Message.<init>(Message.java:246)
	at org.apache.axis.client.Call.invoke(Call.java:2425)
	at org.apache.axis.client.Call.invoke(Call.java:2366)
	at org.apache.axis.client.Call.invoke(Call.java:1812)
	at
com.wellsfargo.service.provider.ecpr.prototype._2007.PrototypeSoapBindin
gStub.myOperation(PrototypeSoapBindingStub.java:975)
	at
com.wellsfargo.ecpr.prototype.PrototypeClient.main(PrototypeClient.java:
129)
DEBUG - Enter: SOAPPart ctor(FORM_SOAPENVELOPE)
DEBUG - org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
DEBUG - Setting current message form to: FORM_SOAPENVELOPE
(currentMessage is now org.apache.axis.message.SOAPEnvelope)
DEBUG - Exit: SOAPPart ctor()
DEBUG - org.apache.axis.i18n.resource::handleGetObject(addBody00)
DEBUG - Adding body element to message...
DEBUG - Enter: Call::invoke()
DEBUG - MessageContext: setTargetService(prototype2007)
DEBUG - org.apache.axis.i18n.resource::handleGetObject(noService10)
DEBUG - Exception: 
org.apache.axis.ConfigurationException: No service named prototype2007
is available
org.apache.axis.ConfigurationException: No service named prototype2007
is available
	at
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:
233)
	at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
	at
org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
	at org.apache.axis.client.Call.invoke(Call.java:2690)
	at org.apache.axis.client.Call.invoke(Call.java:2443)
	at org.apache.axis.client.Call.invoke(Call.java:2366)
	at org.apache.axis.client.Call.invoke(Call.java:1812)
	at
com.wellsfargo.service.provider.ecpr.prototype._2007.PrototypeSoapBindin
gStub.myOperation(PrototypeSoapBindingStub.java:975)
	at
com.wellsfargo.ecpr.prototype.PrototypeClient.main(PrototypeClient.java:
129)

	at
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:
233)
	at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
	at
org.apache.axis.MessageContext.setTargetService(MessageContext.java:756)
	at org.apache.axis.client.Call.invoke(Call.java:2690)
	at org.apache.axis.client.Call.invoke(Call.java:2443)
	at org.apache.axis.client.Call.invoke(Call.java:2366)
	at org.apache.axis.client.Call.invoke(Call.java:1812)
	at
com.wellsfargo.service.provider.ecpr.prototype._2007.PrototypeSoapBindin
gStub.myOperation(PrototypeSoapBindingStub.java:975)
	at
com.wellsfargo.ecpr.prototype.PrototypeClient.main(PrototypeClient.java:
129)

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: wsdl2java crushes

Posted by Davanum Srinivas <da...@gmail.com>.
Yes, we use them to test for example woden. It's quite easy to write a
concrete wsdl that imports the abstract one and then run it with
wsdl2java.

thanks,
dims

On 6/6/07, Denis Kishenko <dk...@gmail.com> wrote:
> So it looks like 70% of W3C WSDL 2.0 Test Suite files are abstract =)
>
> 2007/6/6, Davanum Srinivas <da...@gmail.com>:
> > This means that that this is an abstract wsdl and not a concrete wsdl.
> >
> > -- dims
> >
> > On 6/6/07, Denis Kishenko <dk...@gmail.com> wrote:
> > > I am sorry for confusion, my previous example was incorrect because of
> > > I skipped -wv, but this crushes too
> > >
> > > C:\axis2-1.2\bin>wsdl2java.bat -uri
> > > C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl -wv 2.0
> > > Using AXIS2_HOME:   C:\axis2-1.2
> > > Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
> > > Exception in thread "main"
> > > org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
> > > WSDL
> > >         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:137)
> > >         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > >         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > > Caused by: org.apache.axis2.AxisFault: No wsdlService found in the WSDL
> > >         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:227)
> > >         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:93)
> > >         ... 2 more
> > > Caused by: org.apache.axis2.AxisFault: No wsdlService found in the WSDL
> > >         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processService(WSDL20ToAxisServiceBuilder.java:276)
> > >         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:224)
> > >         ... 3 more
> > >
> > >
> > > 2007/6/6, Lukichev, Alexander S <al...@intel.com>:
> > > > Maybe because it expects WSDL v1, not v2?
> > > >
> > > > Alexander
> > > >
> > > > >-----Original Message-----
> > > > >From: Denis Kishenko [mailto:dkishenko@gmail.com]
> > > > >Sent: Wednesday, June 06, 2007 4:53 PM
> > > > >To: axis-user@ws.apache.org
> > > > >Subject: wsdl2java crushes
> > > > >
> > > > >Hi all
> > > > >
> > > > >I am really interested in wsdl2java tool but have some problems.
> > > > >
> > > > >On the following link you can find a lot of *good* wsdl files
> > > > >http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> > > > >unfortunately wsdl2java crushes on the most of them (about 70%) with
> > > > exceptions
> > > > >
> > > > >For example, see
> > > > >http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> > > > >
> > > > >getBalance.wsdl
> > > > ><?xml version="1.0" encoding="UTF-8"?>
> > > > ><wsdl:description xmlns:tns="http://example.org/getBalance/"
> > > > >       xmlns:wsdl="http://www.w3.org/ns/wsdl"
> > > > >       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > > >       targetNamespace="http://example.org/getBalance/">
> > > > >
> > > > >       <wsdl:documentation>
> > > > >               This test shows how to use elements from an included
> > > > no-target
> > > > >               namespace xsd (i.e. chameleon include)
> > > > >       </wsdl:documentation>
> > > > >
> > > > >       <wsdl:types>
> > > > >               <xsd:schema
> > > > targetNamespace="http://example.org/getBalance/"
> > > > >                       xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> > > > >                       <xsd:include schemaLocation="getBalance.xsd" />
> > > > >               </xsd:schema>
> > > > >       </wsdl:types>
> > > > >
> > > > >       <wsdl:interface name="getBalanceInf">
> > > > >               <wsdl:operation name="getBalance"
> > > > >                       pattern="http://www.w3.org/ns/wsdl/in-out">
> > > > >                       <wsdl:input element="tns:custInfo" />
> > > > >                       <wsdl:output element="tns:accInfo" />
> > > > >               </wsdl:operation>
> > > > >       </wsdl:interface>
> > > > ></wsdl:description>
> > > > >
> > > > >C:\axis2-1.2\bin>wsdl2java.bat -uri
> > > > >C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl
> > > > >Using AXIS2_HOME:   C:\axis2-1.2
> > > > >Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
> > > > >Exception in thread "main"
> > > > >org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
> > > > >WSDL
> > > > >        at
> > > > >org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneratio
> > > > nEngine.java:140)
> > > > >        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > > > >        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > > > >Caused by: javax.wsdl.WSDLException: WSDLException (at
> > > > >/wsdl:description): faultCode=INVALID_WSDL: Expected element
> > > > >'{http://schemas.xmlsoap.org/wsdl/
> > > > >}definitions'.
> > > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown
> > > > Source)
> > > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> > > > Source)
> > > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > > > >        at
> > > > >org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(Co
> > > > deGenerationEngine.java:308
> > > > >)
> > > > >        at
> > > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
> > > > Engine.java:97)
> > > > >        ... 2 more
> > > > >
> > > > >Why this tool doesn't understand this file?
> > > > >
> > > > >Thanks,
> > > > >Denis
> > > > >
> > > > >---------------------------------------------------------------------
> > > > >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > >For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> > --
> > Davanum Srinivas :: http://davanum.wordpress.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: wsdl2java crushes

Posted by Denis Kishenko <dk...@gmail.com>.
So it looks like 70% of W3C WSDL 2.0 Test Suite files are abstract =)

2007/6/6, Davanum Srinivas <da...@gmail.com>:
> This means that that this is an abstract wsdl and not a concrete wsdl.
>
> -- dims
>
> On 6/6/07, Denis Kishenko <dk...@gmail.com> wrote:
> > I am sorry for confusion, my previous example was incorrect because of
> > I skipped -wv, but this crushes too
> >
> > C:\axis2-1.2\bin>wsdl2java.bat -uri
> > C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl -wv 2.0
> > Using AXIS2_HOME:   C:\axis2-1.2
> > Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
> > Exception in thread "main"
> > org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
> > WSDL
> >         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:137)
> >         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> >         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > Caused by: org.apache.axis2.AxisFault: No wsdlService found in the WSDL
> >         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:227)
> >         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:93)
> >         ... 2 more
> > Caused by: org.apache.axis2.AxisFault: No wsdlService found in the WSDL
> >         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processService(WSDL20ToAxisServiceBuilder.java:276)
> >         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:224)
> >         ... 3 more
> >
> >
> > 2007/6/6, Lukichev, Alexander S <al...@intel.com>:
> > > Maybe because it expects WSDL v1, not v2?
> > >
> > > Alexander
> > >
> > > >-----Original Message-----
> > > >From: Denis Kishenko [mailto:dkishenko@gmail.com]
> > > >Sent: Wednesday, June 06, 2007 4:53 PM
> > > >To: axis-user@ws.apache.org
> > > >Subject: wsdl2java crushes
> > > >
> > > >Hi all
> > > >
> > > >I am really interested in wsdl2java tool but have some problems.
> > > >
> > > >On the following link you can find a lot of *good* wsdl files
> > > >http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> > > >unfortunately wsdl2java crushes on the most of them (about 70%) with
> > > exceptions
> > > >
> > > >For example, see
> > > >http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> > > >
> > > >getBalance.wsdl
> > > ><?xml version="1.0" encoding="UTF-8"?>
> > > ><wsdl:description xmlns:tns="http://example.org/getBalance/"
> > > >       xmlns:wsdl="http://www.w3.org/ns/wsdl"
> > > >       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > >       targetNamespace="http://example.org/getBalance/">
> > > >
> > > >       <wsdl:documentation>
> > > >               This test shows how to use elements from an included
> > > no-target
> > > >               namespace xsd (i.e. chameleon include)
> > > >       </wsdl:documentation>
> > > >
> > > >       <wsdl:types>
> > > >               <xsd:schema
> > > targetNamespace="http://example.org/getBalance/"
> > > >                       xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> > > >                       <xsd:include schemaLocation="getBalance.xsd" />
> > > >               </xsd:schema>
> > > >       </wsdl:types>
> > > >
> > > >       <wsdl:interface name="getBalanceInf">
> > > >               <wsdl:operation name="getBalance"
> > > >                       pattern="http://www.w3.org/ns/wsdl/in-out">
> > > >                       <wsdl:input element="tns:custInfo" />
> > > >                       <wsdl:output element="tns:accInfo" />
> > > >               </wsdl:operation>
> > > >       </wsdl:interface>
> > > ></wsdl:description>
> > > >
> > > >C:\axis2-1.2\bin>wsdl2java.bat -uri
> > > >C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl
> > > >Using AXIS2_HOME:   C:\axis2-1.2
> > > >Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
> > > >Exception in thread "main"
> > > >org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
> > > >WSDL
> > > >        at
> > > >org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneratio
> > > nEngine.java:140)
> > > >        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > > >        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > > >Caused by: javax.wsdl.WSDLException: WSDLException (at
> > > >/wsdl:description): faultCode=INVALID_WSDL: Expected element
> > > >'{http://schemas.xmlsoap.org/wsdl/
> > > >}definitions'.
> > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown
> > > Source)
> > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> > > Source)
> > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > > >        at
> > > >org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(Co
> > > deGenerationEngine.java:308
> > > >)
> > > >        at
> > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
> > > Engine.java:97)
> > > >        ... 2 more
> > > >
> > > >Why this tool doesn't understand this file?
> > > >
> > > >Thanks,
> > > >Denis
> > > >
> > > >---------------------------------------------------------------------
> > > >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > >For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: wsdl2java crushes

Posted by Davanum Srinivas <da...@gmail.com>.
This means that that this is an abstract wsdl and not a concrete wsdl.

-- dims

On 6/6/07, Denis Kishenko <dk...@gmail.com> wrote:
> I am sorry for confusion, my previous example was incorrect because of
> I skipped -wv, but this crushes too
>
> C:\axis2-1.2\bin>wsdl2java.bat -uri
> C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl -wv 2.0
> Using AXIS2_HOME:   C:\axis2-1.2
> Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
> WSDL
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:137)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.AxisFault: No wsdlService found in the WSDL
>         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:227)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:93)
>         ... 2 more
> Caused by: org.apache.axis2.AxisFault: No wsdlService found in the WSDL
>         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processService(WSDL20ToAxisServiceBuilder.java:276)
>         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:224)
>         ... 3 more
>
>
> 2007/6/6, Lukichev, Alexander S <al...@intel.com>:
> > Maybe because it expects WSDL v1, not v2?
> >
> > Alexander
> >
> > >-----Original Message-----
> > >From: Denis Kishenko [mailto:dkishenko@gmail.com]
> > >Sent: Wednesday, June 06, 2007 4:53 PM
> > >To: axis-user@ws.apache.org
> > >Subject: wsdl2java crushes
> > >
> > >Hi all
> > >
> > >I am really interested in wsdl2java tool but have some problems.
> > >
> > >On the following link you can find a lot of *good* wsdl files
> > >http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> > >unfortunately wsdl2java crushes on the most of them (about 70%) with
> > exceptions
> > >
> > >For example, see
> > >http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> > >
> > >getBalance.wsdl
> > ><?xml version="1.0" encoding="UTF-8"?>
> > ><wsdl:description xmlns:tns="http://example.org/getBalance/"
> > >       xmlns:wsdl="http://www.w3.org/ns/wsdl"
> > >       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >       targetNamespace="http://example.org/getBalance/">
> > >
> > >       <wsdl:documentation>
> > >               This test shows how to use elements from an included
> > no-target
> > >               namespace xsd (i.e. chameleon include)
> > >       </wsdl:documentation>
> > >
> > >       <wsdl:types>
> > >               <xsd:schema
> > targetNamespace="http://example.org/getBalance/"
> > >                       xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> > >                       <xsd:include schemaLocation="getBalance.xsd" />
> > >               </xsd:schema>
> > >       </wsdl:types>
> > >
> > >       <wsdl:interface name="getBalanceInf">
> > >               <wsdl:operation name="getBalance"
> > >                       pattern="http://www.w3.org/ns/wsdl/in-out">
> > >                       <wsdl:input element="tns:custInfo" />
> > >                       <wsdl:output element="tns:accInfo" />
> > >               </wsdl:operation>
> > >       </wsdl:interface>
> > ></wsdl:description>
> > >
> > >C:\axis2-1.2\bin>wsdl2java.bat -uri
> > >C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl
> > >Using AXIS2_HOME:   C:\axis2-1.2
> > >Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
> > >Exception in thread "main"
> > >org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
> > >WSDL
> > >        at
> > >org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneratio
> > nEngine.java:140)
> > >        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > >        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > >Caused by: javax.wsdl.WSDLException: WSDLException (at
> > >/wsdl:description): faultCode=INVALID_WSDL: Expected element
> > >'{http://schemas.xmlsoap.org/wsdl/
> > >}definitions'.
> > >        at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown
> > Source)
> > >        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> > Source)
> > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > >        at
> > >org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(Co
> > deGenerationEngine.java:308
> > >)
> > >        at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
> > Engine.java:97)
> > >        ... 2 more
> > >
> > >Why this tool doesn't understand this file?
> > >
> > >Thanks,
> > >Denis
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: wsdl2java crushes

Posted by Denis Kishenko <dk...@gmail.com>.
I am sorry for confusion, my previous example was incorrect because of
I skipped -wv, but this crushes too

C:\axis2-1.2\bin>wsdl2java.bat -uri
C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl -wv 2.0
Using AXIS2_HOME:   C:\axis2-1.2
Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:137)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.AxisFault: No wsdlService found in the WSDL
        at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:227)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:93)
        ... 2 more
Caused by: org.apache.axis2.AxisFault: No wsdlService found in the WSDL
        at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processService(WSDL20ToAxisServiceBuilder.java:276)
        at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:224)
        ... 3 more


2007/6/6, Lukichev, Alexander S <al...@intel.com>:
> Maybe because it expects WSDL v1, not v2?
>
> Alexander
>
> >-----Original Message-----
> >From: Denis Kishenko [mailto:dkishenko@gmail.com]
> >Sent: Wednesday, June 06, 2007 4:53 PM
> >To: axis-user@ws.apache.org
> >Subject: wsdl2java crushes
> >
> >Hi all
> >
> >I am really interested in wsdl2java tool but have some problems.
> >
> >On the following link you can find a lot of *good* wsdl files
> >http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> >unfortunately wsdl2java crushes on the most of them (about 70%) with
> exceptions
> >
> >For example, see
> >http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> >
> >getBalance.wsdl
> ><?xml version="1.0" encoding="UTF-8"?>
> ><wsdl:description xmlns:tns="http://example.org/getBalance/"
> >       xmlns:wsdl="http://www.w3.org/ns/wsdl"
> >       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >       targetNamespace="http://example.org/getBalance/">
> >
> >       <wsdl:documentation>
> >               This test shows how to use elements from an included
> no-target
> >               namespace xsd (i.e. chameleon include)
> >       </wsdl:documentation>
> >
> >       <wsdl:types>
> >               <xsd:schema
> targetNamespace="http://example.org/getBalance/"
> >                       xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> >                       <xsd:include schemaLocation="getBalance.xsd" />
> >               </xsd:schema>
> >       </wsdl:types>
> >
> >       <wsdl:interface name="getBalanceInf">
> >               <wsdl:operation name="getBalance"
> >                       pattern="http://www.w3.org/ns/wsdl/in-out">
> >                       <wsdl:input element="tns:custInfo" />
> >                       <wsdl:output element="tns:accInfo" />
> >               </wsdl:operation>
> >       </wsdl:interface>
> ></wsdl:description>
> >
> >C:\axis2-1.2\bin>wsdl2java.bat -uri
> >C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl
> >Using AXIS2_HOME:   C:\axis2-1.2
> >Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
> >Exception in thread "main"
> >org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
> >WSDL
> >        at
> >org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneratio
> nEngine.java:140)
> >        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> >        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> >Caused by: javax.wsdl.WSDLException: WSDLException (at
> >/wsdl:description): faultCode=INVALID_WSDL: Expected element
> >'{http://schemas.xmlsoap.org/wsdl/
> >}definitions'.
> >        at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown
> Source)
> >        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> Source)
> >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> >        at
> >org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(Co
> deGenerationEngine.java:308
> >)
> >        at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
> Engine.java:97)
> >        ... 2 more
> >
> >Why this tool doesn't understand this file?
> >
> >Thanks,
> >Denis
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: wsdl2java crushes

Posted by "Lukichev, Alexander S" <al...@intel.com>.
Maybe because it expects WSDL v1, not v2?

Alexander

>-----Original Message-----
>From: Denis Kishenko [mailto:dkishenko@gmail.com]
>Sent: Wednesday, June 06, 2007 4:53 PM
>To: axis-user@ws.apache.org
>Subject: wsdl2java crushes
>
>Hi all
>
>I am really interested in wsdl2java tool but have some problems.
>
>On the following link you can find a lot of *good* wsdl files
>http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
>unfortunately wsdl2java crushes on the most of them (about 70%) with
exceptions
>
>For example, see
>http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
>
>getBalance.wsdl
><?xml version="1.0" encoding="UTF-8"?>
><wsdl:description xmlns:tns="http://example.org/getBalance/"
>	xmlns:wsdl="http://www.w3.org/ns/wsdl"
>	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>	targetNamespace="http://example.org/getBalance/">
>
>	<wsdl:documentation>
>		This test shows how to use elements from an included
no-target
>		namespace xsd (i.e. chameleon include)
>	</wsdl:documentation>
>
>	<wsdl:types>
>		<xsd:schema
targetNamespace="http://example.org/getBalance/"
>			xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>			<xsd:include schemaLocation="getBalance.xsd" />
>		</xsd:schema>
>	</wsdl:types>
>
>	<wsdl:interface name="getBalanceInf">
>		<wsdl:operation name="getBalance"
>			pattern="http://www.w3.org/ns/wsdl/in-out">
>			<wsdl:input element="tns:custInfo" />
>			<wsdl:output element="tns:accInfo" />
>		</wsdl:operation>
>	</wsdl:interface>
></wsdl:description>
>
>C:\axis2-1.2\bin>wsdl2java.bat -uri
>C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl
>Using AXIS2_HOME:   C:\axis2-1.2
>Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
>Exception in thread "main"
>org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
>WSDL
>        at
>org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneratio
nEngine.java:140)
>        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
>Caused by: javax.wsdl.WSDLException: WSDLException (at
>/wsdl:description): faultCode=INVALID_WSDL: Expected element
>'{http://schemas.xmlsoap.org/wsdl/
>}definitions'.
>        at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown
Source)
>        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
Source)
>        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>        at
>org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(Co
deGenerationEngine.java:308
>)
>        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:97)
>        ... 2 more
>
>Why this tool doesn't understand this file?
>
>Thanks,
>Denis
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org