473,396 Members | 1,666 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,396 software developers and data experts.

Difficulties in Consuming Java Web Services in .NET

I am consuming Java Web Services in .NET. The Java Web Services have been
coded using Apache Axis.

The binding style in the WSDL is 'Document' and type is 'Literal'.

I have added these Java Web Services both as Web Reference and Reference (ie
dll generated using wsdl.exe) in the Project in order to access them. I am
able to get the output for web methods that return just a string. However
when it comes to complex data like an object / array , it returns me an
object with empty attribute values.

I have tried posting the XML Content to the Web Services using XML Spy and
it seems to work fine suggesting that there does not seem to be any problem
with the Web Service.

What could be the problem? Do we need to modify the .NET proxy that Visual
Studio.NET IDE generates when output is an object or whatever is generated by
default should work?

I have tried the same consuming a .NEt service and it works fine.

Hoping to hear from you soon.
Nov 23 '05 #1
1 4359
..NET interoperates with AXIS v1.x, if you design it properly.
How have you built the WSDL?
For best interop, build the WSDL first, then generate the AXIS (server-side)
artifacts with the WSDL2Java tool, specify --server-side to the command.
Then fill in your implementation.

Construct the .NET client in a similar manner, run wsdl.exe, or Add Web
Reference, specifying the WSDL file above. Do not specify the AXIS URL with
the ?wsdl to retrieve dynamically generated WSDL.

A working example of Arrays, with source code and makefile, is here:
http://dinoch.dyndns.org:7070/axis/AboutBasics.jsp

Complex types like structures, and arrays of structures, and structures with
arrays... they work the same as the simple array example.

-Dino
"BestofAbhi" <Be********@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
I am consuming Java Web Services in .NET. The Java Web Services have been
coded using Apache Axis.

The binding style in the WSDL is 'Document' and type is 'Literal'.

I have added these Java Web Services both as Web Reference and Reference
(ie
dll generated using wsdl.exe) in the Project in order to access them. I am
able to get the output for web methods that return just a string. However
when it comes to complex data like an object / array , it returns me an
object with empty attribute values.

I have tried posting the XML Content to the Web Services using XML Spy and
it seems to work fine suggesting that there does not seem to be any
problem
with the Web Service.

What could be the problem? Do we need to modify the .NET proxy that Visual
Studio.NET IDE generates when output is an object or whatever is generated
by
default should work?

I have tried the same consuming a .NEt service and it works fine.

Hoping to hear from you soon.

Nov 23 '05 #2

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

Similar topics

3
by: David Young | last post by:
Hi, I have been asked to write a client application for consuming a web service for a cms written in ASP 3.0. I have very little experience of developing on a microsoft platform, and very basic...
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...
4
by: bob garbados | last post by:
I'm new to web services and I'm trying to interface with a payment gateway for an online store. I'm trying to do this without Visual Studio and I'm stuck... I created my proxy class from the...
1
by: Samudrala | last post by:
Hi, I have developed a web service developed in C#. the WSDL I gave is working fine with .net client. But when java client consumes it always raising exception. I have basic knowledge of java too...
7
by: Jamie Phillips | last post by:
I'm sure this topic has been "around the block" a few times, but I have not been able to find ANY solutin that fits this particular problem. I have written a Java Axis web service that has a method...
0
by: Abhijit Salvi | last post by:
I am consuming Java Web Services in .NET. The Java Web Services have been coded using Apache Axis. The binding style in the WSDL is 'Document' and type is 'Literal'. I have added these Java...
1
by: leslie_tighe | last post by:
Hello, I have a project setup to create a dll as a VB.NET Class library project. This dll is supposed to wrap to calls to web services so that I can utilize this in VB and other .NET...
3
by: Jeremy Chapman | last post by:
I've writtin a very simple web service in axis which returns an array of classes. I consume it in a .net app. When receiving the response, my .net app generates an error "Cannot assign object...
4
by: Scott M. | last post by:
Believe it or not, I've searched quite a bit and can't find any relevant information on how to consume a J2EE web service from a .NET consumer WITHOUT the aid of any 3rd party tools. I have two...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.