Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wstools unable to parse WSDL from Axis1.4

 
Sandeep saahil
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/urnummyWebService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://10.210.7.85:8080/jahia/services/urnummyWebService" xmlns:intf="http://10.210.7.85:8080/jahia/services/urnummyWebService" xmlns:tns1="urnummyWebService" 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="urnummyWebService" 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="urnummyWebService"/>
<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="urnummyWebService"/>
<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">
<wsdlperation name="getBasicContentPageInfo" parameterOrder="in0 in1">
<wsdl:input message="impl:getBasicContentPageInfoRequest" name="getBasicContentPageInfoRequest"/>
<wsdlutput 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"/>
</wsdlperation>
<wsdlperation name="getDetailContentPageInfo" parameterOrder="in0 in1">
<wsdl:input message="impl:getDetailContentPageInfoRequest" name="getDetailContentPageInfoRequest"/>
<wsdlutput 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"/>
</wsdlperation>

<wsdlperation name="getProductFeatures" parameterOrder="in0 in1">
<wsdl:input message="impl:getProductFeaturesRequest" name="getProductFeaturesRequest"/>
<wsdlutput 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"/>
</wsdlperation>

</wsdl:portType>
<wsdl:binding name="urnummyWebServiceSoapBinding" type="impl:JahiaCMSService">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdlperation name="getBasicContentPageInfo">
<wsdlsoapperation soapAction=""/>
<wsdl:input name="getBasicContentPageInfoRequest">
<wsdlsoap:body namespace="urnummyWebService" use="literal"/>
</wsdl:input>
<wsdlutput name="getBasicContentPageInfoResponse">
<wsdlsoap:body namespace="http://10.210.7.85:8080/jahia/services/urnummyWebService" use="literal"/>
</wsdlutput>
<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>
</wsdlperation>
<wsdlperation name="getDetailContentPageInfo">
<wsdlsoapperation soapAction=""/>
<wsdl:input name="getDetailContentPageInfoRequest">
<wsdlsoap:body namespace="urnummyWebService" use="literal"/>
</wsdl:input>
<wsdlutput name="getDetailContentPageInfoResponse">
<wsdlsoap:body namespace="http://10.210.7.85:8080/jahia/services/urnummyWebService" use="literal"/>
</wsdlutput>
<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>
</wsdlperation>
<wsdlperation name="getProductFeatures">
<wsdlsoapperation soapAction=""/>
<wsdl:input name="getProductFeaturesRequest">
<wsdlsoap:body namespace="urnummyWebService" use="literal"/>
</wsdl:input>
<wsdlutput name="getProductFeaturesResponse">
<wsdlsoap:body namespace="http://10.210.7.85:8080/jahia/services/urnummyWebService" use="literal"/>
</wsdlutput>
<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>
</wsdlperation>
</wsdl:binding>
<wsdl:service name="JahiaCMSServiceService">
<wsdl:port binding="impl:urnummyWebServiceSoapBinding" name="urnummyWebService">
<wsdlsoap:address location="http://10.210.7.85:8080/jahia/services/urnummyWebService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic