|
Hi,
I am getting the following exception while running the
WSDL2Java tool. I have modified my WSDL file to MIME encode the
attachment.
java.lang.NullPointerException
at org.apache.axis.wsdl.symbolTable.SymbolTable.addMIMETypes(SymbolTable.java:2084) at org.apache.axis.wsdl.symbolTable.SymbolTable.fillInBindingInfo(SymbolTable.java:1860) at org.apache.axis.wsdl.symbolTable.SymbolTable.populateBindings(SymbolTable.java:1785) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:577) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:421) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:408) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:393) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245) at java.lang.Thread.run(Thread.java:536) My WSDL file is given below
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:webservices.oexgateway.bt.com" xmlns:impl="urn:webservices.oexgateway.bt.com" xmlns:intf="urn:webservices.oexgateway.bt.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns2="http://exception.oexgateway.bt.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:webservices.oexgateway.bt.com"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="OAGDocType"> <sequence> <element name="txnSubType" nillable="true" type="xsd:string"/> <element name="txnType" nillable="true" type="xsd:string"/> <element name="txnTypeString" nillable="true" type="xsd:string"/> </sequence> </complexType> <complexType name="OAGMessage"> <sequence> <element name="aqMessageID" nillable="true" type="xsd:string"/> <element name="docRefNum" nillable="true" type="xsd:string"/> <element name="documentID" nillable="true" type="xsd:string"/> <element name="messagePayload" nillable="true" type="xsd:string"/> <element name="messageStatus" type="xsd:int"/> <element name="oagDocType" nillable="true" type="impl:OAGDocType"/> <element name="partySiteID" nillable="true" type="xsd:string"/> <element name="recipientID" nillable="true" type="xsd:string"/> <element name="senderID" nillable="true" type="xsd:string"/> </sequence> </complexType> </schema> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://exception.oexgateway.bt.com"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="AppRecovException"> <sequence> <element name="errorCode" nillable="true" type="xsd:string"/> <element name="errorMessage" nillable="true" type="xsd:string"/> </sequence> </complexType> <complexType name="AppNonRecovException"> <sequence> <element name="errorCode" nillable="true" type="xsd:string"/> <element name="errorMessage" nillable="true" type="xsd:string"/> </sequence> </complexType> <complexType name="AppNonRecovMessageException"> <complexContent> <extension base="tns2:AppNonRecovException"> <sequence/> </extension> </complexContent> </complexType> <complexType name="AppNonRecovProfileException"> <complexContent> <extension base="tns2:AppNonRecovException"> <sequence/> </extension> </complexContent> </complexType> </schema> </wsdl:types> <wsdl:message name="AppRecovException">
<wsdl:part name="fault"
type="tns2:AppRecovException"/>
</wsdl:message>
<wsdl:message name="AppNonRecovMessageException">
<wsdl:part name="fault"
type="tns2:AppNonRecovMessageException"/>
</wsdl:message>
<wsdl:message name="AppNonRecovProfileException">
<wsdl:part name="fault"
type="tns2:AppNonRecovProfileException"/>
</wsdl:message>
<wsdl:message name="putMessageRequest">
<wsdl:part name="in0"
type="impl:OAGMessage"/>
<wsdl:part name="in1"
type="apachesoap:DataHandler"/>
</wsdl:message>
<wsdl:message name="putMessageResponse">
<wsdl:part name="putMessageReturn"
type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="TestOAGXMLServiceIF">
<wsdl:operation name="putMessage"
parameterOrder="in0 in1">
<wsdl:input
name="putMessageRequest" message="impl:putMessageRequest"/>
<wsdl:output
name="putMessageResponse" message="impl:putMessageResponse"/>
<wsdl:fault
name="AppNonRecovMessageException"
message="impl:AppNonRecovMessageException"/>
<wsdl:fault
name="AppRecovException" message="impl:AppRecovException"/>
<wsdl:fault
name="AppNonRecovProfileException"
message="impl:AppNonRecovProfileException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="TestOAGXMLServiceSoapBinding"
type="impl:TestOAGXMLServiceIF">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation
name="putMessage">
<wsdlsoap:operation
soapAction="urn:TestOAGXMLService/putMessage" style="rpc"/>
<wsdl:input
name="putMessageRequest">
<mime:multipartRelated> <mime:part name="in0"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:webservices.oexgateway.bt.com" use="encoded"/> </mime:part> <mime:part name="in1"> <mime:content part="input" type="text/plain"/> </mime:part> </mime:multipartRelated> </wsdl:input>
<wsdl:output
name="putMessageResponse">
<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:webservices.oexgateway.bt.com"/>
</wsdl:output>
<wsdl:fault
name="AppNonRecovMessageException">
<wsdlsoap:fault use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:webservices.oexgateway.bt.com"/>
</wsdl:fault>
<wsdl:fault
name="AppRecovException">
<wsdlsoap:fault use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
amespace="urn:webservices.oexgateway.bt.com"/>
</wsdl:fault>
<wsdl:fault
name="AppNonRecovProfileException">
<wsdlsoap:fault use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:webservices.oexgateway.bt.com"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TestOAGXMLServiceIFService">
<wsdl:port name="TestOAGXMLService"
binding="impl:TestOAGXMLServiceSoapBinding">
<wsdlsoap:address
location="http://172.24.86.114:8080/axis/services/TestOAGXMLService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Can any one help me in this. Thanks in Advance
Thanks & Regards
Dhanush
|
- Re: Null Pointer Exception while creating Java Skeletons ... Dhanush Gopinath
- Re: Null Pointer Exception while creating Java Skele... Davanum Srinivas
