Hi,

     I generated the WSDL for My class file using Apache axis. When I try
to validate it through XMLSpy I get "Message part 'result' (in Message
getUserApplicationResponse) - parameter UserApplicationProfile not
defined".

If I try to use the WSDL in webServiceStudio(for testing), I am getting
the following error
"System.InvalidOperationException: Unable to import binding
'AISRMIServiceSoapBinding' from namespace
'http://192.168.1.42:7001/MyAxis/services/AISRMIService'. --->
System.InvalidOperationException: Unable to import operation
'getUserApplicationProfile'. ---> System.NullReferenceException: Object
reference not set to an instance of an object."

Can anybody tell me what is the problem in WSDL? My WSDL file is as below.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace
="http://localhost:7001/MyAxis/services/AISRMIService"; xmlns
="http://schemas.xmlsoap.org/wsdl/"; xmlns:apachesoap
="http://xml.apache.org/xml-soap"; xmlns:impl
="http://localhost:7001/MyAxis/services/AISRMIService"; xmlns:intf
="http://localhost:7001/MyAxis/services/AISRMIService"; xmlns:soapenc
="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns1
="http://util.security.framework.fits.com"; xmlns:tns3
="http://exceptions.applicationinteractionservice.service.fits.com";
xmlns:tns4="http://util.fits.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:types><schema targetNamespace
="http://xml.apache.org/xml-soap"; xmlns
="http://www.w3.org/2001/XMLSchema";><import namespace
="http://schemas.xmlsoap.org/soap/encoding/"/><complexType name
="Map"><sequence><element maxOccurs="unbounded" minOccurs="0" name
="item"><complexType><all><element name="key" type="xsd:anyType"/><element
name="value" ty
pe
="xsd:anyType"/></all></complexType></element></sequence></complexType></schema><schema
 targetNamespace="http://util.security.framework.fits.com"; xmlns
="http://www.w3.org/2001/XMLSchema";><import namespace
="http://schemas.xmlsoap.org/soap/encoding/"/><complexType abstract="true"
name="CommunicationSecurityProtocolElement"><sequence><element name
="protocolName" nillable="true" type="xsd:string"/><element name="url"
nillable="true" type="xsd:string"/><element name="certificateRequired" type
="xsd:boolean"/></sequence></complexType><complexType name
="SecurityToken"><sequence><element name="serviceList" nillable="true" type
="apachesoap:Map"/><element name="applicationUserName" nillable="true" type
="xsd:string"/><element name="preferences" nillable="true" type
="apachesoap:Map"/><element name="URL" nillable="true" type
="xsd:string"/><element name="pageElementList" nillable="true" type
="apachesoap:Map"/><element name="EJBPreferenceList" nillable="true" type
="apachesoap:Map"/><element name="communicationSecurityProto
colElement" nillable="true" type
="tns1:CommunicationSecurityProtocolElement"/><element name="password"
nillable="true" type="xsd:string"/><element name="groupDisplayName"
nillable="true" type="xsd:string"/><element name="groupName" nillable
="true" type="xsd:string"/></sequence></complexType><complexType name
="UserApplicationProfile"><sequence><element name="securityToken" nillable
="true" type="tns1:SecurityToken"/><element name="properties" nillable
="true" type="tns1:Properties"/><element name="applicationName" nillable
="true" type="xsd:string"/></sequence></complexType></schema><schema
targetNamespace="http://util.fits.com"; xmlns
="http://www.w3.org/2001/XMLSchema";><import namespace
="http://schemas.xmlsoap.org/soap/encoding/"/><complexType name
="TraceableException"><sequence/></complexType><complexType name
="SystemException"><complexContent><extension base
="tns4:TraceableException"><sequence><element name="localizedMessage"
nillable="true" type="xsd:string"/><element name="message" nillable="true"
type="xsd:s
tring"/></sequence></extension></complexContent></complexType><complexType
abstract="true" name="BusinessException"><complexContent><extension base
="tns4:TraceableException"><sequence><element name="localizedMessage"
nillable="true" type="xsd:string"/><element name="message" nillable="true"
type
="xsd:string"/></sequence></extension></complexContent></complexType></schema><schema
 targetNamespace
="http://exceptions.applicationinteractionservice.service.fits.com"; xmlns
="http://www.w3.org/2001/XMLSchema";><import namespace
="http://schemas.xmlsoap.org/soap/encoding/"/><complexType name
="AISSystemException"><complexContent><extension base
="tns4:SystemException"><sequence/></extension></complexContent></complexType><complexType
 name="AISBusinessException"><complexContent><extension base
="tns4:BusinessException"><sequence/></extension></complexContent></complexType><complexType
 name="AuthenticationException"><complexContent><extension base
="tns3:AISBusinessException"><sequence/></extension></complexContent></complexTy
pe><complexType name="ProfileNotFoundException"><complexContent><extension
base
="tns3:AISBusinessException"><sequence/></extension></complexContent></complexType></schema></wsdl:types>
  <wsdl:message name="AuthenticationException">
    <wsdl:part name="fault" type="tns3:AuthenticationException"/>
  </wsdl:message>
  <wsdl:message name="getUserApplicationProfileRequest">
    <wsdl:part name="username" type="xsd:string"/>
    <wsdl:part name="password" type="xsd:string"/>
    <wsdl:part name="applicationName" type="xsd:string"/>
  </wsdl:message>
  <wsdl:message name="ProfileNotFoundException">
    <wsdl:part name="fault" type="tns3:ProfileNotFoundException"/>
  </wsdl:message>
  <wsdl:message name="AISSystemException">
    <wsdl:part name="fault" type="tns3:AISSystemException"/>
  </wsdl:message>
  <wsdl:message name="getUserApplicationProfileResponse">
    <wsdl:part name="getUserApplicationProfileReturn" type
="tns1:UserApplicationProfile"/>
  </wsdl:message>
  <wsdl:portType name="AISRMI">
    <wsdl:operation name="getUserApplicationProfile" parameterOrder
="username password applicationName">
      <wsdl:input message="impl:getUserApplicationProfileRequest" name
="getUserApplicationProfileRequest"/>
      <wsdl:output message="impl:getUserApplicationProfileResponse" name
="getUserApplicationProfileResponse"/>
      <wsdl:fault message="impl:AISSystemException" name
="AISSystemException"/>
      <wsdl:fault message="impl:ProfileNotFoundException" name
="ProfileNotFoundException"/>
      <wsdl:fault message="impl:AuthenticationException" name
="AuthenticationException"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="AISRMIServiceSoapBinding" type="impl:AISRMI">
    <wsdlsoap:binding style="rpc" transport
="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getUserApplicationProfile">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="getUserApplicationProfileRequest">
        <wsdlsoap:body encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://localhost:7001/MyAxis/services/AISRMIService"; use="encoded"/>
      </wsdl:input>
      <wsdl:output name="getUserApplicationProfileResponse">
        <wsdlsoap:body encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://localhost:7001/MyAxis/services/AISRMIService"; use="encoded"/>
      </wsdl:output>
      <wsdl:fault name="AISSystemException">
        <wsdlsoap:fault encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://localhost:7001/MyAxis/services/AISRMIService"; use="encoded"/>
      </wsdl:fault>
      <wsdl:fault name="ProfileNotFoundException">
        <wsdlsoap:fault encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://localhost:7001/MyAxis/services/AISRMIService"; use="encoded"/>
      </wsdl:fault>
      <wsdl:fault name="AuthenticationException">
        <wsdlsoap:fault encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://localhost:7001/MyAxis/services/AISRMIService"; use="encoded"/>
      </wsdl:fault>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="AISRMIService">
    <wsdl:port binding="impl:AISRMIServiceSoapBinding" name
="AISRMIService">
      <wsdlsoap:address location
="http://localhost:7001/MyAxis/services/AISRMIService"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

Thanks,


Gomathi Ghat


Reply via email to