Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    WCF web service call issue

    issue in web service call. see the code below

    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});
    The service method GetCustomer return only null value,developer console show the bellow error

    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>
    This will working correctly when using developer console. But it is not working in my application. please help me to find out the problem

    #2
    See docs for loadWSDL - autoLoadImports is just a simple boolean parameter (the 4th one), not a property set via requestProperties (3rd argument).

    Comment


      #3
      its working thanks for your reply.

      But in devConsole shows the following error

      Code:
      11:52:21.609:XRP1:WARN:DataSource:Validator:Validator.undefined: value: "-P10675199DT2H48M5.4775808S" failed on validator: {type: "isInteger",
      typeCastValidator: true,
      _generated: true,
      defaultErrorMessage: "Must be a whole number.",
      stopIfFalse: true}
      11:52:21.609:XRP1:WARN:DataSource:Validator:Validator.undefined: value: "P10675199DT2H48M5.4775807S" failed on validator: {type: "isInteger",
      typeCastValidator: true,
      _generated: true,
      defaultErrorMessage: "Must be a whole number.",
      stopIfFalse: true}

      Comment

      Working...
      X