Hi Friends,
I have a requirement where I have to generate artifacts from a WSDL file which was generated through Axis1.4. I have to use
Jboss wstools. I dont have control over tools choice. I m getting NullPointerException while using wstools. I have used wstools successfully in past. I m using Jboss4.0.X. Please guide me.
Exception trace:
Exception in thread "main" java.lang.NullPointerException
at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:319)
at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:588)
at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:618)
at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:186)
at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:303)
at org.jboss.ws.tools.WSTools.process(WSTools.java:137)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:69)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
at org.jboss.ws.tools.WSTools.main(WSTools.java:58)
Config File:
<?xml version="1.0" encoding="UTF-8"?>
<jbos:configuration xmlns:jbos="http://www.jboss.org/jbossws-tools">
<jbos:wsdl-java location="file:///D:/R2KaKaam/BupaWebService.wsdl" parameter-style="literal">
<jbos:mapping file="BupaWebService-test.xml"/>
</jbos:wsdl-java>
</jbos:configuration>
WSDL: I have changed the actual name of Endpoint to Dummy
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://10.210.7.85:8080/jahia/services/urn:DummyWebService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://10.210.7.85:8080/jahia/services/urn:DummyWebService" xmlns:intf="http://10.210.7.85:8080/jahia/services/urn:DummyWebService" xmlns:tns1="urn:DummyWebService" xmlns:tns2="http://to.service.infra.Dummy.com" xmlns:tns3="http://fault.service.infra.Dummy.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:types>
<schema targetNamespace="urn:DummyWebService" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://to.service.infra.Dummy.com"/>
<import namespace="http://fault.service.infra.Dummy.com"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOf_xsd_string">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="ArrayOf_tns1_DetailContentPageInfoTO">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:ContentPageInfoTO"/>
</sequence>
</complexType>
<complexType name="ArrayOf_tns1_">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:ContentPageInfoTO"/>
</sequence>
</complexType>
<complexType name="ArrayOf_tns1_ProductFeatureTO">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:ProductFeatureTO"/>
</sequence>
</complexType>
</schema>
<schema targetNamespace="http://to.service.infra.Dummy.com" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="urn:DummyWebService"/>
<import namespace="http://fault.service.infra.Dummy.com"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="BasicContentPageInfoTO">
<sequence>
<element name="fqPageKey" nillable="true" type="xsd:string"/>
<element name="title" nillable="true" type="xsd:string"/>
<element name="url" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="ContentPageInfoTO">
<complexContent>
<extension base="tns2:BasicContentPageInfoTO">
<sequence>
<element name="description" nillable="true" type="xsd:string"/>
<element name="imageHeight" nillable="true" type="xsd:string"/>
<element name="imageWidth" nillable="true" type="xsd:string"/>
<element name="mainImageUrl" nillable="true" type="xsd:string"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="ProductFeatureTO">
<sequence>
<element name="categoryName" nillable="true" type="xsd:string"/>
<element name="featureDetailText" nillable="true" type="xsd:string"/>
<element name="featureGlossary" nillable="true" type="xsd:string"/>
<element name="featureTitle" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</schema>
<schema targetNamespace="http://fault.service.infra.Dummy.com" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://to.service.infra.Dummy.com"/>
<import namespace="urn:DummyWebService"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="InvalidPageUrlKeyFault">
<sequence/>
</complexType>
<complexType name="PageInfoWebserviceFault">
<sequence/>
</complexType>
<complexType name="InvalidSiteIdFault">
<sequence/>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="getDetailContentPageInfoRequest">
<wsdl:part name="in0" type="tns1:ArrayOf_xsd_string"/>
<wsdl:part name="in1" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="getDetailContentPageInfoResponse">
<wsdl:part name="getDetailContentPageInfoReturn" type="tns1:ArrayOf_tns1_"/>
</wsdl:message>
<wsdl:message name="InvalidPageUrlKeyFault">
<wsdl:part name="fault" type="tns3:InvalidPageUrlKeyFault"/>
</wsdl:message>
<wsdl:message name="getBasicContentPageInfoResponse">
<wsdl:part name="getBasicContentPageInfoReturn" type="tns1:ArrayOf_tns1_DetailContentPageInfoTO"/>
</wsdl:message>
<wsdl:message name="getProductFeaturesRequest">
<wsdl:part name="in0" type="xsd:string"/>
<wsdl:part name="in1" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="getBasicContentPageInfoRequest">
<wsdl:part name="in0" type="tns1:ArrayOf_xsd_string"/>
<wsdl:part name="in1" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="InvalidSiteIdFault">
<wsdl:part name="fault" type="tns3:InvalidSiteIdFault"/>
</wsdl:message>
<wsdl:message name="PageInfoWebserviceFault">
<wsdl:part name="fault" type="tns3:PageInfoWebserviceFault"/>
</wsdl:message>
<wsdl:message name="getProductFeaturesResponse">
<wsdl:part name="getProductFeaturesReturn" type="tns1:ArrayOf_tns1_ProductFeatureTO"/>
</wsdl:message>
<wsdl:portType name="JahiaCMSService">
<wsdl:operation name="getBasicContentPageInfo" parameterOrder="in0 in1">
<wsdl:input message="impl:getBasicContentPageInfoRequest" name="getBasicContentPageInfoRequest"/>
<wsdl:output message="impl:getBasicContentPageInfoResponse" name="getBasicContentPageInfoResponse"/>
<wsdl:fault message="impl:InvalidPageUrlKeyFault" name="InvalidPageUrlKeyFault"/>
<wsdl:fault message="impl:PageInfoWebserviceFault" name="PageInfoWebserviceFault"/>
<wsdl:fault message="impl:InvalidSiteIdFault" name="InvalidSiteIdFault"/>
</wsdl:operation>
<wsdl:operation name="getDetailContentPageInfo" parameterOrder="in0 in1">
<wsdl:input message="impl:getDetailContentPageInfoRequest" name="getDetailContentPageInfoRequest"/>
<wsdl:output message="impl:getDetailContentPageInfoResponse" name="getDetailContentPageInfoResponse"/>
<wsdl:fault message="impl:InvalidPageUrlKeyFault" name="InvalidPageUrlKeyFault"/>
<wsdl:fault message="impl:PageInfoWebserviceFault" name="PageInfoWebserviceFault"/>
<wsdl:fault message="impl:InvalidSiteIdFault" name="InvalidSiteIdFault"/>
</wsdl:operation>
<wsdl:operation name="getProductFeatures" parameterOrder="in0 in1">
<wsdl:input message="impl:getProductFeaturesRequest" name="getProductFeaturesRequest"/>
<wsdl:output message="impl:getProductFeaturesResponse" name="getProductFeaturesResponse"/>
<wsdl:fault message="impl:InvalidPageUrlKeyFault" name="InvalidPageUrlKeyFault"/>
<wsdl:fault message="impl:PageInfoWebserviceFault" name="PageInfoWebserviceFault"/>
<wsdl:fault message="impl:InvalidSiteIdFault" name="InvalidSiteIdFault"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="urn:DummyWebServiceSoapBinding" type="impl:JahiaCMSService">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getBasicContentPageInfo">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getBasicContentPageInfoRequest">
<wsdlsoap:body namespace="urn:DummyWebService" use="literal"/>
</wsdl:input>
<wsdl:output name="getBasicContentPageInfoResponse">
<wsdlsoap:body namespace="http://10.210.7.85:8080/jahia/services/urn:DummyWebService" use="literal"/>
</wsdl:output>
<wsdl:fault name="InvalidPageUrlKeyFault">
<wsdlsoap:fault name="InvalidPageUrlKeyFault" use="literal"/>
</wsdl:fault>
<wsdl:fault name="PageInfoWebserviceFault">
<wsdlsoap:fault name="PageInfoWebserviceFault" use="literal"/>
</wsdl:fault>
<wsdl:fault name="InvalidSiteIdFault">
<wsdlsoap:fault name="InvalidSiteIdFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="getDetailContentPageInfo">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getDetailContentPageInfoRequest">
<wsdlsoap:body namespace="urn:DummyWebService" use="literal"/>
</wsdl:input>
<wsdl:output name="getDetailContentPageInfoResponse">
<wsdlsoap:body namespace="http://10.210.7.85:8080/jahia/services/urn:DummyWebService" use="literal"/>
</wsdl:output>
<wsdl:fault name="InvalidPageUrlKeyFault">
<wsdlsoap:fault name="InvalidPageUrlKeyFault" use="literal"/>
</wsdl:fault>
<wsdl:fault name="PageInfoWebserviceFault">
<wsdlsoap:fault name="PageInfoWebserviceFault" use="literal"/>
</wsdl:fault>
<wsdl:fault name="InvalidSiteIdFault">
<wsdlsoap:fault name="InvalidSiteIdFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="getProductFeatures">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getProductFeaturesRequest">
<wsdlsoap:body namespace="urn:DummyWebService" use="literal"/>
</wsdl:input>
<wsdl:output name="getProductFeaturesResponse">
<wsdlsoap:body namespace="http://10.210.7.85:8080/jahia/services/urn:DummyWebService" use="literal"/>
</wsdl:output>
<wsdl:fault name="InvalidPageUrlKeyFault">
<wsdlsoap:fault name="InvalidPageUrlKeyFault" use="literal"/>
</wsdl:fault>
<wsdl:fault name="PageInfoWebserviceFault">
<wsdlsoap:fault name="PageInfoWebserviceFault" use="literal"/>
</wsdl:fault>
<wsdl:fault name="InvalidSiteIdFault">
<wsdlsoap:fault name="InvalidSiteIdFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="JahiaCMSServiceService">
<wsdl:port binding="impl:urn:DummyWebServiceSoapBinding" name="urn:DummyWebService">
<wsdlsoap:address location="http://10.210.7.85:8080/jahia/services/urn:DummyWebService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>