issue in web service call. see the code below
The service method GetCustomer return only null value,developer console show the bellow error
Wsdl xml
This will working correctly when using developer console. But it is not working in my application. please help me to find out the problem
Code:
function showGrid(data) { isc.ListGrid.create({ ID: "MasterList", top: 150, left: 50, width: "500", height: "200", alternateRecordStyles: true, showAllRecords: true, dataSource: data, autoFetchData: true, showFilterEditor: false, filterOnKeypress: false, canEdit: true, showHeaderContextMenu: false }) } function loadWSDLCallback(service) { service.callOperation("GetCustomer", this.getValues(), "Customer", "showGrid(data)"); } isc.XMLTools.loadWSDL("/Service1.svc?wsdl", "loadWSDLCallback(service)", {autoLoadImports :true});
Code:
20:30:13.711:XRP7:WARN:schemaLoader:WebService with targetNamespace 'http://tempuri.org/' could not find SchemaSet for namespace: 'http://tempuri.org/'. Pass autoLoadImports to loadWSDL()/loadXMLSchema() or separately load via loadWSDL/loadXMLSchema jsp tag or method 20:30:13.711:XRP7:WARN:schemaLoader:WebService with targetNamespace 'http://tempuri.org/' could not find SchemaSet for namespace: 'http://schemas.microsoft.com/2003/10/Serialization/'. Pass autoLoadImports to loadWSDL()/loadXMLSchema() or separately load via loadWSDL/loadXMLSchema jsp tag or method 20:30:13.711:XRP7:WARN:schemaLoader:WebService with targetNamespace 'http://tempuri.org/' could not find SchemaSet for namespace: 'http://schemas.datacontract.org/2004/07/SmartColientSample'. Pass autoLoadImports to loadWSDL()/loadXMLSchema() or separately load via loadWSDL/loadXMLSchema jsp tag or method 20:30:13.727:XRP7:WARN:schemaLoader:isc_SchemaSet_0:SchemaSet with targetNamespace 'http://tempuri.org/Imports' could not find SchemaSet for namespace: 'http://tempuri.org/'. Pass autoLoadImports to loadWSDL()/loadXMLSchema() or separately load via loadWSDL/loadXMLSchema jsp tag or method 20:30:13.727:XRP7:WARN:schemaLoader:isc_SchemaSet_0:SchemaSet with targetNamespace 'http://tempuri.org/Imports' could not find SchemaSet for namespace: 'http://schemas.microsoft.com/2003/10/Serialization/'. Pass autoLoadImports to loadWSDL()/loadXMLSchema() or separately load via loadWSDL/loadXMLSchema jsp tag or method 20:30:13.727:XRP7:WARN:schemaLoader:isc_SchemaSet_0:SchemaSet with targetNamespace 'http://tempuri.org/Imports' could not find SchemaSet for namespace: 'http://schemas.datacontract.org/2004/07/SmartColientSample'. Pass autoLoadImports to loadWSDL()/loadXMLSchema() or separately load via loadWSDL/loadXMLSchema jsp tag or method 20:30:13.727:XRP7:WARN:WebService:getFetchDS: resultType: 'Customers' not present in web service - missing XML files?
Wsdl xml
Code:
<?xml version="1.0" encoding="utf-8" ?> - <xs:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/"> <xs:import schemaLocation="http://localhost:4852/Service1.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/SmartColientSample" /> - <xs:element name="DoWork"> - <xs:complexType> <xs:sequence /> </xs:complexType> </xs:element> - <xs:element name="DoWorkResponse"> - <xs:complexType> <xs:sequence /> </xs:complexType> </xs:element> + <xs:element name="GetCustomer"> - <xs:complexType> <xs:sequence /> </xs:complexType> </xs:element> - <xs:element name="GetCustomerResponse"> - <xs:complexType> - <xs:sequence> <xs:element minOccurs="0" name="GetCustomerResult" nillable="true" type="q1:Customer" xmlns:q1="http://schemas.datacontract.org/2004/07/SmartColientSample" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
Code:
<?xml version="1.0" encoding="utf-8" ?> - <xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/SmartColientSample" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.datacontract.org/2004/07/SmartColientSample"> - <xs:complexType name="Customer"> - <xs:sequence> <xs:element minOccurs="0" name="Address" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:element name="Customer" nillable="true" type="tns:Customer" /> </xs:schema>
Comment