Found the problem... It is a server side problem with the way we setup the CSRGroupOrder object... the getter/setter for the csrList was overloaded (getCsrList() and setCSRList() ).  There was one for getting and setting the list and another to get elements of the list given an index as input.  To fix the problem we renamed the getter/setter for accessing individual elements so it did not confuse the WSDL generator in AXIS. 

 

It is very strange how AXIS interpreted the overloaded getter.

 

Jim Stickley

Birch Telecom

(816) 300-6743

[EMAIL PROTECTED]

 

-----Original Message-----
From: Stickley, Jim [mailto:[EMAIL PROTECTED]]
Sent:
Thursday, May 30, 2002 12:21 PM
To: '[EMAIL PROTECTED]'
Cc: [EMAIL PROTECTED]; Robertson, Angela
Subject: WebService Studio error...

 

I received the following error from a web service call using the WebService Studio on Windows XP (latest .Net patches)... The particular object it is complaining about is an array of CSR objects.  For some reason the .NET client can not move the elements of the array from the SOAP message into the stub class. 

Can somone explain if this is an error is due to a problem with the server not constructing the message correctly, or is it a problem with the .NET client not interpreting the message correctly?

I have attached the WSDL file and the XML response that generated this error.  To provide a point to focus on, the CSR[] element is a member of the CSRGroupOrder class and is named csrList (see CSRSessionHomeSOAP.wsdl file, line 85).  This array has two elements in it (see Response.txt file, line 28 and 29).  The SOAP server is running Apache Axis Beta 2 (05/13/02 code drop date) with Tomcat 4.x.  Thanks for any help you can provide.

 

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: There is an error in XML document (546, 4). ---> System.InvalidCastException: Cannot assign object of type CSR to an object of type CSR[].

   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.fixup_Read39_CSRGroupOrder(Object objFixup)

   at System.Xml.Serialization.XmlSerializationReader.DoFixups()

   at System.Xml.Serialization.XmlSerializationReader.ReadReferencedElements()

   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read61_retrieveNaturalCSRResponse()

   --- End of inner exception stack trace ---

   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

   at CSRSessionHomeSOAPService.retrieveNaturalCSR(Int64 sessionId, Int64 csrGroupOrderId)

   --- End of inner exception stack trace ---

   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess)

   at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at WebServiceStudio.MainForm.InvokeWebMethod()

   at WebServiceStudio.MainForm.buttonInvoke_Click(Object sender, EventArgs e)

   at System.Windows.Forms.Control.OnClick(EventArgs e)

   at System.Windows.Forms.Button.OnClick(EventArgs e)

   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.ButtonBase.WndProc(Message& m)

   at System.Windows.Forms.Button.WndProc(Message& m)

   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

 

************** Loaded Assemblies **************

mscorlib

    Assembly Version: 1.0.3300.0

    Win32 Version: 1.0.3705.209

    CodeBase: file:///c:/windows/microsoft.net/framework/v1.0.3705/mscorlib.dll

----------------------------------------

WebServiceStudio

    Assembly Version: 1.1.3102.0

    Win32 Version: 1.1.3102.0

    CodeBase: file:///C:/Program%20Files/WebServiceStudio/WebServiceStudio.exe

----------------------------------------

System.Windows.Forms

    Assembly Version: 1.0.3300.0

    Win32 Version: 1.0.3705.0

    CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c561934e089/system.windows.forms.dll

----------------------------------------

System

    Assembly Version: 1.0.3300.0

    Win32 Version: 1.0.3705.0

    CodeBase: file:///c:/windows/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll

----------------------------------------

System.Web.Services

    Assembly Version: 1.0.3300.0

    Win32 Version: 1.0.3705.0

    CodeBase: file:///c:/windows/assembly/gac/system.web.services/1.0.3300.0__b03f5f7f11d50a3a/system.web.services.dll

----------------------------------------

System.Xml

    Assembly Version: 1.0.3300.0

    Win32 Version: 1.0.3705.0

    CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.3300.0__b77a5c561934e089/system.xml.dll

----------------------------------------

System.Web

    Assembly Version: 1.0.3300.0

    Win32 Version: 1.0.3705.0

    CodeBase: file:///c:/windows/assembly/gac/system.web/1.0.3300.0__b03f5f7f11d50a3a/system.web.dll

----------------------------------------

System.Drawing

    Assembly Version: 1.0.3300.0

    Win32 Version: 1.0.3705.0

    CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/system.drawing.dll

----------------------------------------

1u6akmya

    Assembly Version: 0.0.0.0

    Win32 Version: 1.0.3705.0

    CodeBase: file:///c:/windows/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll

----------------------------------------

System.Data

    Assembly Version: 1.0.3300.0

    Win32 Version: 1.0.3705.0

    CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.3300.0__b77a5c561934e089/system.data.dll

----------------------------------------

qzyvr9g2

    Assembly Version: 0.0.0.0

    Win32 Version: 0.0.0.0

    CodeBase: file:///C:/DOCUME~1/STICKL~1/LOCALS~1/Temp/qzyvr9g2.dll

----------------------------------------

e5w10czw

    Assembly Version: 0.0.0.0

    Win32 Version: 1.0.3705.0

    CodeBase: file:///c:/windows/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll

----------------------------------------

System.Design

    Assembly Version: 1.0.3300.0

    Win32 Version: 1.0.3705.0

    CodeBase: file:///c:/windows/assembly/gac/system.design/1.0.3300.0__b03f5f7f11d50a3a/system.design.dll

----------------------------------------

Accessibility

    Assembly Version: 1.0.3300.0

    Win32 Version: 1.0.3705.0

    CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.3300.0__b03f5f7f11d50a3a/accessibility.dll

----------------------------------------

 

************** JIT Debugging **************

To enable just in time (JIT) debugging, the config file for this

application or machine (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

 

For example:

 

<configuration>

    <system.windows.forms jitDebugging="true" />

</configuration>

 

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the machine

rather than being handled by this dialog.

 

 

 

Jim Stickley

Birch Telecom

(816) 300-6743

[EMAIL PROTECTED]

 

Reply via email to