can java consume .NET object returned by ASP.NET web service? -


I have an ASP.NET web service which is returning a custom unit object (s):

< Pre> <<> <> public staff GetStaffByLoginID (string log ID) {}

How will I use it in Java?

Thank you!

ASP.NET automatically creates a WSDL that contains the interface definitions for your web methods and types they consume / return.

Apache Axis provides a tool which will generate all the code you need to consume webservice. Just point it out:

If you browse directly to the SSSX file, you will be able to find a good test that you can use to find out various ways you can call.

Once Axis reads its WSDL, it will generate some proxy classes, one of them will be based on the interface of the employee.

However, I will wrap this class your real business object, and in turn, access to the web service through a service layer.

This will change your consumer code from any interface Saves what may be in the future with the web service, keeping the actual area of ​​code

Edit: Why is this downnow? This is the only correct answer.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -