Knowledge Base |
|
|
| TID | 298 ( s298 ) |
| QuickLink | http://www.stone-ware.com/swql.jsp?kb=s298 |
| Category | Soap |
| Summary | Specified type was not recognized |
| Details | Customer has a custom .net app that talks to webNetwork. After upgrading from 5.0 to 5.1 customer gets the following error:
The specified type was not recognized: name='string', namespace='http://schemas.xmlsoap.org/soap/encoding/', at The code they are using: Dim session As String Dim y As String() session = x.authenticateUserNoContext("usr", "pwd") y = x.getCaseIgnoreStringValue(session, "SSN") |
| Resolution | Turns out that the issue is with .net 1.1 Things work using .net 2.0 VS 2005
works with .net 2.0 Customer has option of moving to that and re linking their apps with the updated libraries in webNetwork or changing the code to work arround .net 1.1. The old .net client doesn't like methods that return string[] like getCaseIgnoreStringValues does. Customer is retrieving a field called SSN which is a single valued attribute. Have customer try calling substituteVariables and pass in the sessionID and "@@attr:SSN@@" as the second arg. That returns a string.. that way an array kes their code easier anyway as they don't have to parse a return array. |