The fastest way to access a web service using WSDL in Java

I need to access a web service with Java. The WSDL service has . Now, what can I call his operation?

  • I have already used wsimport, but only generates XML objects for operations / responses, but not really to name them.
  • I looked at Spring-WS , but that doesn't seem like what I want (although this may be part of the solution). The word "wsdl" does not appear on this page at all.
+3
source share
3 answers

wsimport , , . MSaleService getMSaleServiceSoap(). .

. wsimport

[] SOAP "MSaleServiceSoap12": SOAP 1.2.
530 http://vas.mikro-odeme.com/services/msaleservice.asmx?wsdl

, .

+2

If you use Eclipse, there is this wizard that allows you to create what is called the new “web service client” by simply pointing to your wsdl file.

therefore, if you have wsdl in your project, just click "new" and select the wizard.

it will ask you for the wsdl file and some other information (you can choose your working environment - Axis, Axis2, CXF ...).

I think this wizard is part of WTP (www.eclipse.org/webtools).

take a look:

http://tinyurl.com/5v56s5u

http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/WebServiceClient/WebServiceClient.html

0
source

All Articles