Good evening,
We are developing with VB.Net 2005 WebServices, working with your datasets. We started developing in the eval version of 5.6 and this was working fine. The data returned and populated many items on the form with no problem. When our eval expired, we purchased the latest copy and since then we have been getting the following error:
Line: 61
Char: 1235
Unexpected token “[”
//–>[<–XSElement ID:DepartmentListResponse]
Code:0
URL:http://localhost/ItemHQ/Default.aspx
We still have a version running on one server that works, but when we rebuilt it breaks again. Here is an example of the data calls that cause the error:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” >
<head id=“Head1” runat=“server”>
<title>NASGW: Main</title>
<script type=“text/javascript”>var isomorphicDir = “isomorphic/”;</script>
<script type=“text/javascript” src=“/isomorphic/system/modules/ISC_Core.js”></script>
<script type=“text/javascript” src=“/isomorphic/system/modules/ISC_Foundation.js”></script>
<script type=“text/javascript” src=“/isomorphic/system/modules/ISC_Containers.js”></script>
<script type=“text/javascript” src=“/isomorphic/system/modules/ISC_Grids.js”></script>
<script type=“text/javascript” src=“/isomorphic/system/modules/ISC_Forms.js”></script>
<script type=“text/javascript” src=“/isomorphic/system/modules/ISC_Databinding.js”></script>
<script type=“text/javascript” src=“/isomorphic/skins/SmartClient/load_skin.js”></script>
<script type=“text/javascript” src=“/DataSources/NASGW2.js”></script>
</head>
<body>
<form id=“Form1” runat=“server”></form>
<script type=“text/javascript”>
var nasgwService= isc.WebService.get(“http://localhost/WebServices/”);
var depDS = nasgwService.getFetchDS(“DepartmentList”, null, { recordXPath: “//Departments” });
isc.TreeGrid.create({
ID:“categoryTree”,
showHeader:false,
leaveScrollbarGap:false,
animateFolders:true,
canReparentNodes:false,
selectionType:“single”,
animateRowsMaxTime:750
});
depDS.fetchData(
{LoginType: “<%=Session(“LoginType”) %>”},
function (response, data, request) {
var dataTree = isc.Tree.create({
ID: “depTree”,
modelType: “parent”,
rootValue: “root”,
nameProperty: “name”,
idField: “id”,
parentIdField: “parentid”
});
dataTree.linkNodes(data);
categoryTree.setData(dataTree);
}
);
Here is a sample of the XML returned from the dataservice when opened and tested directly in IE:
<?xml version=“1.0” encoding=“utf-8” ?>
- <wsdl:definitions xmlns:soap=“http://schemas.xmlsoap.org/wsdl/soap/” xmlns:tm=“http://microsoft.com/wsdl/mime/textMatching/” xmlns:soapenc=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:mime=“http://schemas.xmlsoap.org/wsdl/mime/” xmlns:tns=“http://localhost/WebServices/” xmlns:s=“http://www.w3.org/2001/XMLSchema” xmlns:soap12=“http://schemas.xmlsoap.org/wsdl/soap12/” xmlns:http=“http://schemas.xmlsoap.org/wsdl/http/” targetNamespace=“http://localhost/WebServices/” xmlns:wsdl=“http://schemas.xmlsoap.org/wsdl/”>
- <wsdl:types>
- <s:schema elementFormDefault=“qualified” targetNamespace=“http://localhost/WebServices/”>
- <s:element name=“DepartmentList”>
- <s:complexType>
- <s:sequence>
<s:element minOccurs=“0” maxOccurs=“1” name=“LoginType” type=“s:string” />
</s:sequence>
</s:complexType>
</s:element> - <s:element name=“DepartmentListResponse”>
- <s:complexType>
- <s:sequence>
- <s:element minOccurs=“0” maxOccurs=“1” name=“DepartmentListResult”>
- <s:complexType>
- <s:sequence>
<s:element ref=“s:schema” />
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types> - <wsdl:message name=“DepartmentListSoapIn”>
<wsdl:part name=“parameters” element=“tns:DepartmentList” />
</wsdl:message> - <wsdl:message name=“DepartmentListSoapOut”>
<wsdl:part name=“parameters” element=“tns:DepartmentListResponse” />
</wsdl:message> - <wsdl:portType name=“NASGW2Soap”>
- <wsdl:operation name=“DepartmentList”>
<wsdl:input message=“tns:DepartmentListSoapIn” />
<wsdl:output message=“tns:DepartmentListSoapOut” />
</wsdl:operation>
</wsdl:portType> - <wsdl:binding name=“NASGW2Soap” type=“tns:NASGW2Soap”>
<soap:binding transport=“http://schemas.xmlsoap.org/soap/http” /> - <wsdl:operation name=“DepartmentList”>
<soap:operation soapAction=“http://localhost/WebServices/DepartmentList” style=“document” /> - <wsdl:input>
<soap:body use=“literal” />
</wsdl:input> - <wsdl:output>
<soap:body use=“literal” />
</wsdl:output>
</wsdl:operation>
</wsdl:binding> - <wsdl:binding name=“NASGW2Soap12” type=“tns:NASGW2Soap”>
<soap12:binding transport=“http://schemas.xmlsoap.org/soap/http” /> - <wsdl:operation name=“DepartmentList”>
<soap12:operation soapAction=“http://localhost/WebServices/DepartmentList” style=“document” /> - <wsdl:input>
<soap12:body use=“literal” />
</wsdl:input> - <wsdl:output>
<soap12:body use=“literal” />
</wsdl:output>
</wsdl:operation>
</wsdl:binding> - <wsdl:service name=“NASGW2”>
- <wsdl:port name=“NASGW2Soap” binding=“tns:NASGW2Soap”>
<soap:address location=“http://localhost/webservices/nasgw2.asmx” />
</wsdl:port> - <wsdl:port name=“NASGW2Soap12” binding=“tns:NASGW2Soap12”>
<soap12:address location=“http://localhost/webservices/nasgw2.asmx” />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
The webservice seems fine when opening in WSDL tab of your control panel, and returns the proper XML in the output box, so there does not seem to be anything wrong with the webservice (especially since it still works with the one build.) Please help! Thanks, J