Sameer.
.....................................................
"If a server crashes in a server farm and no one pings it, does it still cost four figures to fix?"
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Subject: InterOP between .NET and Axis
Date: Thu, 21 Aug 2003 18:47:34 -0700
MIME-Version: 1.0
Received: from apache.org ([208.185.179.12]) by mc3-f18.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 21 Aug 2003 19:05:47 -0700
Received: (qmail 54164 invoked by uid 500); 22 Aug 2003 02:04:57 -0000
Received: (qmail 53959 invoked from network); 22 Aug 2003 02:04:52 -0000
X-Message-Info: JGTYoYF78jGvv5tKq3znk+I2Xy7qs7fl
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
X-Priority: 0
X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001
Message-ID: <[EMAIL PROTECTED]>
X-MIMETrack: Serialize by Router on NYLHUB1/NYLIC(Release 5.0.10 |March 22, 2002) at 08/21/2003 09:47:39 PM
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 22 Aug 2003 02:05:47.0628 (UTC) FILETIME=[E727A2C0:01C36851]
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
_________________________________________________________________
Get MSN 8 and help protect your children with advanced parental controls. http://join.msn.com/?page=features/parental
