473,385 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problem with complex types when consuming Axis 1.4 web service withC# client

Hello.

We have here a Java web service that has been created using Apache Axis
1.4, using the document/literal wrapped style, and returns complex types
in its methods.

When consuming the web service with a C# client, all the fields in the
returned objects are null. The SOAP message, however, contains all the
expected data.

I've already searched on the net but only found people describing the
same problem but no solutions for this.

So, if anyone could point me to some documentation about that or have
some solution, I'd appreciate if he'd let me know.

Regards,
Philip
Mar 6 '07 #1
2 3934
"Philip Reimer" <pr*****@uni-muenster.dewrote in message
news:es**********@sagnix.uni-muenster.de...
Hello.

We have here a Java web service that has been created using Apache Axis
1.4, using the document/literal wrapped style, and returns complex types
in its methods.

When consuming the web service with a C# client, all the fields in the
returned objects are null. The SOAP message, however, contains all the
expected data.

I've already searched on the net but only found people describing the
same problem but no solutions for this.

So, if anyone could point me to some documentation about that or have
some solution, I'd appreciate if he'd let me know.
This often happens when there is a confusion of namespaces between the
client and the server. Make sure that your .NET code is expecting the exact
same namespaces as the Axis code is sending.

When I say "exact", I mean byte-for-byte exact. A recent poster had a
problem because there was a trailing space in the namespace declaration he
was using.

John
Mar 6 '07 #2
John Saunders schrieb:
"Philip Reimer" <pr*****@uni-muenster.dewrote in message
news:es**********@sagnix.uni-muenster.de...
>Hello.

We have here a Java web service that has been created using Apache Axis
1.4, using the document/literal wrapped style, and returns complex types
in its methods.

When consuming the web service with a C# client, all the fields in the
returned objects are null. The SOAP message, however, contains all the
expected data.

I've already searched on the net but only found people describing the
same problem but no solutions for this.

So, if anyone could point me to some documentation about that or have
some solution, I'd appreciate if he'd let me know.

This often happens when there is a confusion of namespaces between the
client and the server. Make sure that your .NET code is expecting the exact
same namespaces as the Axis code is sending.
Hi John.

Thanks a lot. That seems to have been the problem here.

Greetings,
Philip
Mar 7 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mjcsfo | last post by:
I can't seem to find a reference nor any helpful threads on this topic. I've gotten the following error in two circumstances: 1. A complex type has nested within it another complex type, in the...
0
by: umhlali | last post by:
I get the following exception when my VB.NET app calls a Java web service that returns an array of objects. The same call works for a single object though. So looks like there is no problem...
2
by: yqlu | last post by:
I hava developed a client in C# that is connected to a 3-party XML Web Services developed in Java based on the AXIS 1.1. Most methods call are successful except for one method named "findObjects"...
1
by: leslie_tighe | last post by:
Hello, I have webservice created with Axis 1.2.1 and that I am trying to consuming in .NET (VB) using the Microsoft provided tools. While I am able to consume methods on the service that return...
4
by: leslie_tighe | last post by:
Hello, I have a webservice running on a J2EE server created with Axis 1.2.. I have a client that I am building in .net that needs to consume this webserivce and am having a bit of trouble. I have...
0
by: helldiversafe-news | last post by:
Hi all, I will use a apache soap service with an .net c# client and have a problem with an complex array: <?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope...
2
by: David R | last post by:
I am writing a .NET web services client that is calling an Axis web service. I have two questions. 1. The following code should set the authentication; when I call a method on the web service,...
11
by: David R | last post by:
This is a repost, with additional information. I have a Net 2.0 client (C# Winform) calling an Axis web service. The .NET client can authenticate, create requested objects, serialize the objects...
3
by: andreas.baus | last post by:
Hello. I'm trying to exchange data between a webservice based on Apache Axis and a client written in C#, and so far it has been working with few problems (none that I couldn't solve myself with...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.