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 / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

Difficulties in Consuming Java Web Services in .NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BestofAbhi - 01 Mar 2005 18:03 GMT
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.
Dino Chiesa [Microsoft] - 01 Mar 2005 18:17 GMT
.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

>I am consuming Java Web Services in .NET. The Java Web Services have been
> coded using Apache Axis.
[quoted text clipped - 21 lines]
>
> Hoping to hear from you soon.

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.