Is there a way to call C # webservice from java? I have a web service that was written in C # and I want to use this web service in java. If there is a way, let me know.
Relations Altaico
Web service is just a small program that generates some text, which is then sent by HTTP. The text can be using Html or Xml (or plain text). The language in which the small program is written is completely irrelevant, since all your Java client will see in the text provided by Http.
, -, Java .
- - . - # , - Java. WSDL, .
- # (.NET) WSDL URL-:
http://[web_service_virtual_path].asmx?WSDL
. - java 1.6, jar.
URL- WSDL. URL- HTTP wsdl . @Germán , :
- wsimport. wsimport Java 1.6, .
Java wsdl:
wsimport -s src -keep -Xnocompile http://[web_service_virtual_path].asmx?WSDL
java- src .java .
( , , - , , -. wsimport , )
- ( #), , . -, .
The language in which the web service is written should be out of date - this is part of the use of web services. In general, yes, you can call webservices with Java. One library that can help you is Apache Axis .
Source: https://habr.com/ru/post/1762291/More articles:Print long lines of text LaTeX / Sweave - rNSDateFormatter EEE working day problem - objective-cRecognizing notes in recorded sound - Python - pythonDisabling Quoatation - rsync from bash - bashmysql - is it possible to set the default value of VARCHAR to NULL? - mysqlTracing in NUnit only works when debugging from Visual Studio - visual-studioMS Access 2010: "sorting sequence not supported by the specified file format" - vbaCan I redirect a javascript request to another javascript action? - javascriptMySQL Custom Order - mysqlHow to extract results from Linq query? - c #All Articles