Hi,
I'm encountering following exception when adding a web reference to my
client program.

"C:\Documents and Settings\t19bgtx.NYL-CORP\My Documents\Visual Studio
Projects\DimeClient\Web References\WebServiceController\Reference.map(1):
Custom tool error: Unable to import WebService/Schema. Unable to import
binding 'WebServiceControllerSoapBinding' from namespace
'http://rnv-sandeep-2k:8080/axis/services/WebServiceController'. Unable to
import operation 'CreateUser'. Unable to import binding
'WebServiceControllerSoapBinding' from namespace
'http://rnv-sandeep-2k:8080/axis/services/WebServiceController'. Unable to
import operation 'ListUsers'. The datatype 'Array' is missing.
"

Following is my WSDL file generated by AXIS.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace
="http://rnv-sandeep-2k:8080/axis/services/WebServiceController"; xmlns:impl
="http://rnv-sandeep-2k:8080/axis/services/WebServiceController"; xmlns:intf
="http://rnv-sandeep-2k:8080/axis/services/WebServiceController";
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:tns1="WebServiceController"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns
="http://schemas.xmlsoap.org/wsdl/";><wsdl:types><schema xmlns
="http://www.w3.org/2001/XMLSchema"; targetNamespace
="WebServiceController"><import namespace
="http://schemas.xmlsoap.org/soap/encoding/"/><complexType name
="ProjectRole"><sequence><element name="id" nillable="true" type
="xsd:long"/><element name="projectId" nillable="true" type
="xsd:long"/><element name="roleId" nillable="true" type
="xsd:long"/><element name="userId" nillable="true" type
="xsd:long"/></sequence></complexType><complexType name
="Privilege"><sequence><element name="id" nillable="true" type
="xsd:long"/><element name="privilegeName" nillable="true" type
="xsd:string"/></sequence></complexType><complexType name
="Role"><sequence><element name="id" nillable="true" type
="xsd:long"/><element name="privilegeColl" nillable="true" type
="impl:ArrayOf_tns1_Privilege"/><element name="roleName" nillable="true"
type="xsd:string"/></sequence></complexType><complexType abstract="true"
name="Users"><sequence><element name="fName" nillable="true" type
="xsd:string"/><element name="id" nillable="true" type="xsd:long"/><element
name="lName" nillable="true" type="xsd:string"/><element name="loginName"
nillable="true" type="xsd:string"/><element name="password" nillable="true"
type="xsd:string"/><element name="projectRole" nillable="true" type
="tns1:ProjectRole"/><element name="role" nillable="true" type
="tns1:Role"/><element name="type" nillable="true" type
="xsd:string"/></sequence></complexType><complexType name
="Tester"><complexContent><extension base
="tns1:Users"><sequence/></extension></complexContent></complexType><complexType

name="Administrator"><complexContent><extension base
="tns1:Users"><sequence/></extension></complexContent></complexType><complexType

name="Project"><sequence><element name="id" nillable="true" type
="xsd:long"/><element name="projectName" nillable="true" type
="xsd:string"/></sequence></complexType></schema><schema xmlns
="http://www.w3.org/2001/XMLSchema"; targetNamespace
="http://rnv-sandeep-2k:8080/axis/services/WebServiceController";><import
namespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexType name
="ArrayOf_tns1_Privilege"><complexContent><restriction base
="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType
="tns1:Privilege
[]"/></restriction></complexContent></complexType></schema></wsdl:types>
  <wsdl:message name="DeleteUserResponse">
  </wsdl:message>
  <wsdl:message name="CreateUserResponse">
    <wsdl:part name="CreateUserReturn" type="tns1:Users"/>
  </wsdl:message>
  <wsdl:message name="ListUsersRequest">
    <wsdl:part name="usr" type="tns1:Users"/>
    <wsdl:part name="projectId" type="xsd:long"/>
  </wsdl:message>
  <wsdl:message name="LogOutRequest">
  </wsdl:message>
  <wsdl:message name="DeleteUserRequest">
    <wsdl:part name="usr" type="tns1:Users"/>
    <wsdl:part name="usrToBeDeleted" type="tns1:Users"/>
  </wsdl:message>
  <wsdl:message name="LogInRequest">
    <wsdl:part name="loginName" type="xsd:string"/>
    <wsdl:part name="loginID" type="xsd:string"/>
    <wsdl:part name="app" type="xsd:string"/>
  </wsdl:message>
  <wsdl:message name="LogOutResponse">
  </wsdl:message>
  <wsdl:message name="CreateUserRequest">
    <wsdl:part name="newUsr" type="tns1:Users"/>
  </wsdl:message>
  <wsdl:message name="ListUsersResponse">
    <wsdl:part name="ListUsersReturn" type="soapenc:Array"/>
  </wsdl:message>
  <wsdl:message name="LogInResponse">
    <wsdl:part name="LogInReturn" type="tns1:Users"/>
  </wsdl:message>
  <wsdl:portType name="WebServiceController">
    <wsdl:operation name="CreateUser" parameterOrder="newUsr">
      <wsdl:input name="CreateUserRequest" message
="impl:CreateUserRequest"/>
      <wsdl:output name="CreateUserResponse" message
="impl:CreateUserResponse"/>
    </wsdl:operation>
    <wsdl:operation name="ListUsers" parameterOrder="usr projectId">
      <wsdl:input name="ListUsersRequest" message="impl:ListUsersRequest"/>
      <wsdl:output name="ListUsersResponse" message
="impl:ListUsersResponse"/>
    </wsdl:operation>
    <wsdl:operation name="DeleteUser" parameterOrder="usr usrToBeDeleted">
      <wsdl:input name="DeleteUserRequest" message
="impl:DeleteUserRequest"/>
      <wsdl:output name="DeleteUserResponse" message
="impl:DeleteUserResponse"/>
    </wsdl:operation>
    <wsdl:operation name="LogIn" parameterOrder="loginName loginID app">
      <wsdl:input name="LogInRequest" message="impl:LogInRequest"/>
      <wsdl:output name="LogInResponse" message="impl:LogInResponse"/>
    </wsdl:operation>
    <wsdl:operation name="LogOut">
      <wsdl:input name="LogOutRequest" message="impl:LogOutRequest"/>
      <wsdl:output name="LogOutResponse" message="impl:LogOutResponse"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="WebServiceControllerSoapBinding" type
="impl:WebServiceController">
    <wsdlsoap:binding style="rpc" transport
="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="CreateUser">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="CreateUserRequest">
        <wsdlsoap:body use="encoded" encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://wfc.rwb.rnv.nyl.com"/>
      </wsdl:input>
      <wsdl:output name="CreateUserResponse">
        <wsdlsoap:body use="encoded" encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://rnv-sandeep-2k:8080/axis/services/WebServiceController"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="ListUsers">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="ListUsersRequest">
        <wsdlsoap:body use="encoded" encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://wfc.rwb.rnv.nyl.com"/>
      </wsdl:input>
      <wsdl:output name="ListUsersResponse">
        <wsdlsoap:body use="encoded" encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://rnv-sandeep-2k:8080/axis/services/WebServiceController"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="DeleteUser">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="DeleteUserRequest">
        <wsdlsoap:body use="encoded" encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://wfc.rwb.rnv.nyl.com"/>
      </wsdl:input>
      <wsdl:output name="DeleteUserResponse">
        <wsdlsoap:body use="encoded" encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://rnv-sandeep-2k:8080/axis/services/WebServiceController"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="LogIn">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="LogInRequest">
        <wsdlsoap:body use="encoded" encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://wfc.rwb.rnv.nyl.com"/>
      </wsdl:input>
      <wsdl:output name="LogInResponse">
        <wsdlsoap:body use="encoded" encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://rnv-sandeep-2k:8080/axis/services/WebServiceController"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="LogOut">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="LogOutRequest">
        <wsdlsoap:body use="encoded" encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://wfc.rwb.rnv.nyl.com"/>
      </wsdl:input>
      <wsdl:output name="LogOutResponse">
        <wsdlsoap:body use="encoded" encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"; namespace
="http://rnv-sandeep-2k:8080/axis/services/WebServiceController"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="WebServiceControllerService">
    <wsdl:port name="WebServiceController" binding
="impl:WebServiceControllerSoapBinding">
      <wsdlsoap:address location
="http://rnv-sandeep-2k:8080/axis/services/WebServiceController"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>


My Java service is defined as

public Collection ListUsers(Users usr, Long projectId) {
Collection retColl = null;
retColl = admin.ListUsers(projectId);
return retColl;
}

How should I define my service return type to avoid this exception? Thanks.


Harry Wen


Reply via email to