java WebService
In recent years, web services have emerged as a popular technology for remote method calls. Technically, a web service has two components:
A service that can be accessed with the SOAP transport protocol
A description of the service in the WSDL format
SOAP is an XML protocol for invoking remote methods, similar to the protocol that RMI uses for the communication between clients and servers. Just as you can program RMI applications without knowing anything about the details of the RMI protocol, you don't really need to know any details about SOAP to call a web service.
WSDL is an interface description language. It too is based on XML. A WSDL document describes the interface of a web service: the methods that can be called, and their parameter and return types. In this section, we generate a WSDL document from a service implemented in Java. This document contains all the information that a client program needs to invoke the service, whether it is written in Java or another programming language.
Ïà¹ØÎĵµ£º
Ô´´úÂ룺
public class Parent
{
protected void test() {}
public Parent()
{
this.test();
}
public static void main(String[] args)
&nb ......
ÔÌùÄÚÈÝÇë¼û: http://topic.csdn.net/u/20100116/17/6a204504-9e70-435f-be55-f0630ed12fdf.html?seed=942806558&r=62778073#r_62778073
Çë´óÅ£Ö¸Õý.
²úÆ·Àà:
package selfimpr.producerCustomer;
/**
* ²úÆ·
* @author selfimpr
* @blog http://blog.csdn.net/lgg201
* @email lgg860911@yahoo.com.cn
......
¼ÓÃܺóÊÇÒ»¸ö32λ´óд×Öĸ×éºÏÐÎʽ£¬²¢ÇÒ±¾¼ÓÃÜ·½·¨²»¿ÉÄæ£¡
public String kljm(String dm,String kl)
{
String mw, cmm;
int k, i, tmp, a, hf, lf, bytes = 16;
int mm[], l,rand_seed;
rand_seed = 12345;
int len=kl.length();
if(len>=12) len=12;
mw =kl.substring(0,len) + dm.trim();
l = ......
import java.net.InetAddress;
import java.io.InputStream;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.text.ParseException;
import java.util.StringTokenizer;
public final class NetworkInfo {
private final static String getMacAddress() throws IOException {
String ......
ÓÐʱºò£¬ÎÒÃÇ¿ÉÄÜÏëÒª¹¹ÔìÒ»¸öºÜ³éÏóµÄ¸¸Àà¶ÔÏó£¬Ëü¿ÉÄܽö½ö´ú±íÒ»¸ö·ÖÀà»ò³éÏó¸ÅÄËüµÄʵÀýûÓÐÈκÎÒâÒ壬Òò´Ë²»Ï£ÍûËüÄܱ»ÊµÀý»¯¡£ÀýÈ磺ÓÐÒ»¸ö¸¸Àà“ Ë®¹û£¨Fruit£©”£¬ËüÓм¸¸ö×ÓÀà“Æ»¹û£¨Apple£©”¡¢“éÙ×Ó£¨Orange£©”¡¢“Ïã½¶£¨Banana£©”µÈ¡£Ë®¹ûÔÚÕâÀï½ö½öÖ»ÊÇ×÷Ϊһ¸ ......