ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> soapbuilders
soapbuilders
pocketSOAP -> .NET array problems
by Simon Fell other posts by this author
Apr 3 2001 2:46AM messages near this date
An open letter to Eric Kidd | Re: [soapbuilders] pocketSOAP -> .NET array problems
I get the worlds longest exception !, calling the echo*array
functions.

Cheers
Simon

Here's the request
POST http://mSSOAPTestSite/stk/InteropTypedService.asp HTTP/1.0
Content-Type: text/xml; charset=3DUTF-8
User-Agent: pocketSOAP 0.9.2
Host: mSSOAPTestSite:80
Content-Length: 609
SOAPAction: "urn:soapinterop"

<S:Envelope xmlns:S=3D'http://schemas.xmlsoap.org/soap/envelope/'
xmlns:SOAP-ENC=3D'http://schemas.xmlsoap.org/soap/encoding/'
S:encodingStyle=3D'http://schemas.xmlsoap.org/soap/encoding/'
xmlns:xsd=3D'http://www.w3.org/1999/XMLSchema'
xmlns:xsi=3D'http://www.w3.org/1999/XMLSchema-instance'> 
<S:Body> 
<m:echoFloatArray xmlns:m=3D'http://soapinterop.org/'> <inputFloatArray
xsi:type=3D'SOAP-ENC:Array' SOAP-ENC:arrayType=3D'xsd:float[3]'> <Item
xsi:type=3D'xsd:float'> -12345.5</Item><Item
xsi:type=3D'xsd:float'> 42.2424</Item><Item
xsi:type=3D'xsd:float'> -0.01</Item></inputFloatArray></m:echoFloatArray>
</S:Body> </S:Envelope>


And this is the SOAP Fault i get back

EchoFloatArray failed soap:Client : Server was unable to read request.
-->  Error in XML document (6,54). --> The specified type was not
recognized: name=3D'float',
namespace=3D'http://www.w3.org/1999/XMLSchema', at <inputFloatArray
xmlns=3D''> 
   at System.Environment.GetStackTrace(Exception e)
   at System.Environment.GetStackTrace(Exception e)
   at System.Environment.get_StackTrace()
   at
System.Xml.Serialization.XmlSerializationReader.CreateUnknownTypeException(=
XmlQualifiedName
type)
   at
System.Xml.Serialization.XmlSerializationReader.GetPrimitiveType(XmlQualifi=
edName
typeName)
   at System.Xml.Serialization.XmlSerializationReader.ReadArray()
   at
System.Xml.Serialization.XmlSerializationReader.ReadReferencingElement(Stri=
ng
name, String ns, Object& fixupReference)
   at
System.Xml.Serialization.XmlSerializationReader.ReadReferencingElement(Obje=
ct&
fixupReference)
   at Temp.XmlSerializationReader1.Read15_echoFloatArray()
   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture, Boolean isBinderDefault)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture)
   at System.Xml.Serialization.TempAssembly.InvokeReader(Int32
methodIndex, XmlReader xmlReader, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader)
   at
System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()
   at System.Web.Services.Protocols.WebServiceHandler.Invoke()
   at
System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
   at
System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpCon=
text
context)
   at
System.Web.System.Web.HttpApplication+CallHandlerExecutionStep.Execute()
   at
System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication+IExecutio=
nStep
step, Boolean& completedSynchronously)
   at System.Web.HttpApplication.ResumeSteps(Exception error)
   at
System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest=
(HttpContext
context, AsyncCallback cb, Object extraData)
   at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest
wr)
   at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32
iWRType)
Thread:
Simon Fell
Fredrik Lundh

Simon Fell
Tony Hong


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved