Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2004

Tip: Looking for answers? Try searching our database.

Serialization problem with arrays when consuming java webservice i

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Henk Hooiveld - 01 Oct 2004 09:59 GMT
My college and I are writing a class library (in C#) that consumes a java
webservice. This webservice contains several objects which holds request and
response properties and an object that has the method to invoke the
webservice. This method has a parameter which holds the request object and,
when it's done, returns the response object.

Both the request and response objects have a property that contains an array
of objects. When calling the invoke method, whe get the error "No
Deserializer found to deserialize a ':CA' using encoding stye
'http://schemas/xmlsoap.org/soap/encoding/"

When we get rid of the arrays in the request and response objects, the call
returns perfect data.

Can anyone help us?

Below is a part of the request schema which contains the array:

<complexType name ="RequestObject">
  <all>
     <element name="CA" type="xsd1:ArrayOfMotor.CACover"/>
  </all>
</complexType>

<complexType name="Motor.CACover">
  <all>
     <element name="CA_CODE" type="string"/>
     <element name="CA_ERA" type="string"/>
     <element name="CA_Z_PERCLOA" type="double"/>
     <element name="CA_Z_PERCCOL" type="double"/>
  </all>
</complexType>

<complexType name="ArrayOfMotor.CADekking">
  <complexContent>
     <restriction base="soapenc:Array">
        <sequence/>
           <attribute ref="soapenc:arrayType"    
wsdl:arrayType="xsd1:Motor.CADekking[]"/>
     </restriction>
  </complexContent>
</complexType
Girish Bharadwaj - 01 Oct 2004 15:39 GMT
You might want to post this in microsoft.public.dotnet.framework.webservices
area. There might be someone who can help you there.

Can you get Java webservice to send the data as doc/literal (or at least
rpc/literal) instead of rpc/encoding.. It might be hard to do interop with
encoding enables.
Look into WS-I BasicProfile 1.0 which talks about some of the basic rules
for interop.

Signature

Girish Bharadwaj
http://msmvps.com/gbvb

> My college and I are writing a class library (in C#) that consumes a java
> webservice. This webservice contains several objects which holds request and
[quoted text clipped - 38 lines]
>    </complexContent>
> </complexType

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.