Java WS and C # Call

Source: Internet
Author: User
The WS service in this article enables this service to be called in the DotNet environment.
File list:
SEI interface class IImage. java, class IIMageImpl that implements the SEI interface. java, the value type class FileInfo that describes file information. java, Web application deployment description file web. xml, WS release configuration file jaxrpc-ri.xml, WS compile configuration file config-interface.xml, build client pile config-wsdl.xml, build file builder. xml
Client Test class: Form1.cs.
This example starts with WSDL, so we need to have a WSDL file. The first step is to get this file.
(1) obtain the WSDL file.
To meet the interoperability requirements, the description of this file must be the document style binding and text format encoding. To get this file, first introduce the build file builder. xml:
<? Xml version = "1.0" encoding = "GBK"?>
<Project name = "webservice" default = "build" basedir = ".">
<Property name = "jaxrpc. lib. dir" value = "I: jwsdp-1.6jaxrpclib">
</Property>
<Property name = "jaxrpc. lib. dir1" value = "D: SunAppServerlib">
</Property>
<Property name = "classes. dir" value = ". uildclasses">
</Property>
<Property name = "src. dir" value = ". uildsrc">
</Property>
<Property name = "raw. war. file" value = "netservice-raw.war">
</Property>
<Property name = "cook. war. file" value = "netservice. war">
</Property>
<Property name = "nonclass. dir" value = ". uildonclass">
</Property>
<Property name = "build" value = "$ {nonclass. dir}">
</Property>
<Property name = "assemble" value = ". assemble">
</Property>
<Property name = "assemble. war" value = ". assemblewar">
</Property>
<Property name = "assemble. ear" value = ". assembleear">
</Property>
<Property name = "wsi. dir" value = ". wsi">
</Property>
<Property name = "wsi. server. dir" value = ". wsiserver">
</Property>
<Property name = "wsi. client. dir" value = ". wsiclient">
</Property>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.