Re: Difficulties in Consuming Java Web Services in .NET

From: Dino Chiesa [Microsoft] (dinoch_at_online.microsoft.com)
Date: 03/01/05


Date: Tue, 1 Mar 2005 13:17:51 -0500


.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" <BestofAbhi@discussions.microsoft.com> wrote in message
news:58F463D7-9CEB-45F1-B5C7-095DC9362D51@microsoft.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.



Relevant Pages

  • Re: Difficulties Consuiming Java Web Services in .NET
    ... request/response from the non-working pair (AXIS server and .NET client). ... are you generating the WSDL from Java classes (eg, ... I am consuming Java Web Services in .NET. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: tclsoap array-based queries
    ... If this is a Server that has a WSDL, you may want to try the Web Services ... for Tcl package that I wrote -- it handles arrays. ...
    (comp.lang.tcl)
  • Re: .net client + Axis 1.1 server + wrapped param: null result
    ... You are right that from axis server side, I need to hand craft the skeleton ... codes/settings before I can use the session handler, ... Here is the modified WSDL: ... ema.XmlSchemaForm.Unqualified)] string username, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Some questions on what technology to use
    ... > look at Web Services using remoting and also WSE 2. ... > of attaching messages to methods and automatically generating WSDL etc.. ... So there is really no need to get into the XML ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Some questions on what technology to use
    ... > look at Web Services using remoting and also WSE 2. ... > of attaching messages to methods and automatically generating WSDL etc.. ... So there is really no need to get into the XML ...
    (microsoft.public.dotnet.framework)

Quantcast