Hello
I am receiving the following error when I try to save my Web Service Provider
Type {urn:DefaultNamespace}LimoRequestDetails is referenced but has neither a definition in the WSDL document nor a mapped type in the target implementation language.
The web service has two very simple class files:
CLASS TO HOLD ALL LIMO REQUESTS
public class LimoRequestDetails {
public String unid;
public String RequestedBy;
public String RequestedByTel;
public String RequestDate;
public String PickupDate;
public String PickupName;
public String PickupLocation;
public String PickupTel;
public LimoRequestDetails(String ID, String vRequestedBy,String vRequestedByTel,String vRequestDate,String vPickupDate,String
vPickupName,String vPickupLocation,String vPickupTel){
unid=ID;
RequestedBy=vRequestedBy;
RequestedByTel=vRequestedByTel;
RequestDate=vRequestDate;
PickupDate=vPickupDate;
PickupName=vPickupName;
PickupLocation=vPickupLocation;
PickupTel=vPickupTel;
}
}
CLASS THAT USES LIMO REQUEST DETAILS
import lotus.domino.*;
import java.net.*;
import java.util.*;
import lotus.domino.types.*;
public class CurrentLimoRequests {
private
Session s;
private AgentContext ac;
private Database db;
private DocumentCollection dc;
private Document doc;
private int docCount;
private View v;
private ViewEntryCollection vec;
private ViewEntry ve;
private lotus.domino.Name cb;
private DateTime cd;
//private
LimoRequestDetails info;
//Contructor
public CurrentLimoRequests() throws NotesException {
s = WebServiceBase.getCurrentSession();
ac = s.getAgentContext();
db = ac.getCurrentDatabase();
}
public String getSelectedDocDetails(String UNID){
try{
s =
WebServiceBase.getCurrentSession();
ac = s.getAgentContext();
db = ac.getCurrentDatabase();
doc=db.getDocumentByUNID
(UNID);
if(doc!=null){
Item it = doc.getFirstItem("Body");
RichTextItem rit = (RichTextItem) it;
java.util.Vector objs = rit.getEmbeddedObjects();
if ((objs != null) && (objs.size() > 0)){
return "NOTE : THIS ANNOUCEMENT CONTAINS ATTACHMENTS NOT PROVIDED BY THIS SERVICE " +
doc.getItemValueString(“Body”);
}else{
return doc.getItemValueString("Body");
}
}else{
return "Record Not Found";
}
}
catch(Exception e){
e.printStackTrace();}
return "Record Not Found";
}
public LimoRequestDetails getCurrentDocuments() {
try{
s = WebServiceBase.getCurrentSession();
ac = s.getAgentContext();
db = ac.getCurrentDatabase();
v=db.getView("BBView");
vec=v.getAllEntries();
docCount=vec.getCount();
}catch
(Exception e){
e.printStackTrace();}
LimoRequestDetails info[]=new LimoRequestDetails[docCount];
try {
int x=0;
ve=vec.getFirstEntry();
while (ve != null) {
doc = ve.getDocument();
cb=s.createName(doc.getItemValueString(“From”));
cd=doc.getCreated();
//cd.getDateOnly()
info[x]= new
LimoRequestDetails(doc.getUniversalID(),
doc.getItemValueString("RequestBy"),
doc.getItemValueString(“RequestTel”),
doc.getItemValueString("RequestDate"),
doc.getItemValueString(“PickupDate”),
doc.getItemValueString("PickUpName"),
doc.getItemValueString(“PickupLocation”),
doc.getItemValueString("PickupTel"));
ve = vec.getNextEntry();
x=x+1;
}
}catch(Exception e) {
e.printStackTrace(); }
return info;
}
}
WSDL File
<?xml version="1.0" encoding="utf-8"?><wsdl:definitions xmlns:soapenc=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:apachesoap=“http://xml.apache.org/xml-soap” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:impl=“urn:DefaultNamespace” xmlns:wsdlsoap=“http://schemas.xmlsoap.org/wsdl/soap/” xmlns=“http://schemas.xmlsoap.org/wsdl/” xmlns:intf=“urn:DefaultNamespace” targetNamespace=“urn:DefaultNamespace” xmlns:wsdl=“http://schemas.xmlsoap.org/wsdl/”>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:DefaultNamespace">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<xsd:complexType name="LimoRequestDetails">
<xsd:sequence>
<element name="UNID" nillable="true" type="xsd:string" />
<element name="RequestedBy" nillable="true" type="xsd:string" />
<element name="RequestedByTel" nillable="true" type="xsd:string" />
<element name="RequestDate" nillable="true" type="xsd:string" />
<element name="PickupDate" nillable="true" type="xsd:string" />
<element name="PickupName" nillable="true" type="xsd:string" />
<element name="PickupLocation" nillable="true" type="xsd:string" />
<element name="PickupTel" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ArrayOfLimoRequestDetails">
<xsd:complexContent mixed="false">
<xsd:restriction base="soapenc:Array">
<xsd:attribute wsdl:arrayType="intf:LimoRequestDetails[]" ref="soapenc:arrayType" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name=“getCurrentDocumentsResponse”>
<wsdl:part name="getCurrentDocumentsReturn" type="intf:ArrayOfLimoRequestDetails" />
</wsdl:message>
<wsdl:message name=“getSelectedDocDetailsRequest”>
<wsdl:part name="UNID" type="xsd:string" />
</wsdl:message>
<wsdl:message name=“getCurrentDocumentsRequest” />
<wsdl:message name=“getSelectedDocDetailsResponse”>
<wsdl:part name="getSelectedDocDetailsReturn" type="xsd:string" />
</wsdl:message>
<wsdl:portType name=“CurrentLimoRequests”>
<wsdl:operation name="getSelectedDocDetails" parameterOrder="UNID">
<wsdl:input name="getSelectedDocDetailsRequest" message="intf:getSelectedDocDetailsRequest" />
<wsdl:output name="getSelectedDocDetailsResponse" message="intf:getSelectedDocDetailsResponse" />
</wsdl:operation>
<wsdl:operation name="getCurrentDocuments">
<wsdl:input name="getCurrentDocumentsRequest" message="intf:getCurrentDocumentsRequest" />
<wsdl:output name="getCurrentDocumentsResponse" message="intf:getCurrentDocumentsResponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name=“DominoSoapBinding” type=“intf:CurrentLimoRequests”>
<wsdlsoap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
<wsdl:operation name="getSelectedDocDetails">
<wsdlsoap:operation soapAction="getSelectedDocDetails" />
<wsdl:input name="getSelectedDocDetailsRequest">
<wsdlsoap:body use="encoded" namespace="urn:DefaultNamespace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="getSelectedDocDetailsResponse">
<wsdlsoap:body use="encoded" namespace="urn:DefaultNamespace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getCurrentDocuments">
<wsdlsoap:operation soapAction="getCurrentDocuments" />
<wsdl:input name="getCurrentDocumentsRequest">
<wsdlsoap:body use="encoded" namespace="urn:DefaultNamespace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdl:output name="getCurrentDocumentsResponse">
<wsdlsoap:body use="encoded" namespace="urn:DefaultNamespace" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name=“CurrentLimoRequestsService”>
<wsdl:port name="Domino" binding="intf:DominoSoapBinding">
<wsdlsoap:address location="http://servername/nsfname.nsf/currentLimoRequests?OpenWebService" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>