??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲综合小说另类图片动图,图图资源网亚洲综合网站,亚洲男人的天堂久久精品http://www.tkk7.com/wansong/category/46636.htmlwansongzh-cnMon, 19 Dec 2011 15:06:42 GMTMon, 19 Dec 2011 15:06:42 GMT60web service 双通道 http://www.tkk7.com/wansong/articles/366085.htmlw@ns0ngw@ns0ngSun, 11 Dec 2011 02:44:00 GMThttp://www.tkk7.com/wansong/articles/366085.htmlhttp://www.tkk7.com/wansong/comments/366085.htmlhttp://www.tkk7.com/wansong/articles/366085.html#Feedback0http://www.tkk7.com/wansong/comments/commentRss/366085.htmlhttp://www.tkk7.com/wansong/services/trackbacks/366085.htmlhttp://lixinye0123.iteye.com/blog/318272                axis2的example

http://www.orientware.org/viewArticles.do?action=browse&columnId=27&id=75&flag=home     分层l构的web服务


w@ns0ng 2011-12-11 10:44 发表评论
]]>
jdk 6 jax-ws 例子http://www.tkk7.com/wansong/articles/364521.htmlw@ns0ngw@ns0ngTue, 22 Nov 2011 05:37:00 GMThttp://www.tkk7.com/wansong/articles/364521.htmlhttp://www.tkk7.com/wansong/comments/364521.htmlhttp://www.tkk7.com/wansong/articles/364521.html#Feedback0http://www.tkk7.com/wansong/comments/commentRss/364521.htmlhttp://www.tkk7.com/wansong/services/trackbacks/364521.htmlhttp://alvinqq.iteye.com/blog/647649

w@ns0ng 2011-11-22 13:37 发表评论
]]>
jaxb xsdhttp://www.tkk7.com/wansong/articles/355144.htmlw@ns0ngw@ns0ngWed, 27 Jul 2011 07:21:00 GMThttp://www.tkk7.com/wansong/articles/355144.htmlhttp://www.tkk7.com/wansong/comments/355144.htmlhttp://www.tkk7.com/wansong/articles/355144.html#Feedback0http://www.tkk7.com/wansong/comments/commentRss/355144.htmlhttp://www.tkk7.com/wansong/services/trackbacks/355144.htmlhttp://webservices.ctocio.com.cn/tips/363/6163863.shtml

w@ns0ng 2011-07-27 15:21 发表评论
]]>
分布式系l? REST, WebService, Corbahttp://www.tkk7.com/wansong/articles/346936.htmlw@ns0ngw@ns0ngThu, 24 Mar 2011 04:29:00 GMThttp://www.tkk7.com/wansong/articles/346936.htmlhttp://www.tkk7.com/wansong/comments/346936.htmlhttp://www.tkk7.com/wansong/articles/346936.html#Feedback0http://www.tkk7.com/wansong/comments/commentRss/346936.htmlhttp://www.tkk7.com/wansong/services/trackbacks/346936.html

w@ns0ng 2011-03-24 12:29 发表评论
]]>
Restful: Jersey And Linux:Curlhttp://www.tkk7.com/wansong/articles/346107.htmlw@ns0ngw@ns0ngSat, 12 Mar 2011 02:42:00 GMThttp://www.tkk7.com/wansong/articles/346107.htmlhttp://www.tkk7.com/wansong/comments/346107.htmlhttp://www.tkk7.com/wansong/articles/346107.html#Feedback0http://www.tkk7.com/wansong/comments/commentRss/346107.htmlhttp://www.tkk7.com/wansong/services/trackbacks/346107.htmlhttp://www.ibm.com/developerworks/web/library/wa-aj-tomcat/index.html

Curl is a popular command-line tool that can send requests to a server using protocols like HTTP and HTTPS. It is a good tool to communicate with RESTful Web services because it can send content by any HTTP method. Curl is already distributed with Linux® and Mac, and there is a utility that you can install for the Windows® platform (see Resources).

http://www.infoq.com/cn/articles/springmvc_jsx-rs
(@RequestParam
(@RequestBody
(@PathParam("username")
(@QueryParam("username")

w@ns0ng 2011-03-12 10:42 发表评论
]]>
通过 CXF 使用 WS-Security http://www.tkk7.com/wansong/articles/343006.htmlw@ns0ngw@ns0ngFri, 14 Jan 2011 14:08:00 GMThttp://www.tkk7.com/wansong/articles/343006.htmlhttp://www.tkk7.com/wansong/comments/343006.htmlhttp://www.tkk7.com/wansong/articles/343006.html#Feedback0http://www.tkk7.com/wansong/comments/commentRss/343006.htmlhttp://www.tkk7.com/wansong/services/trackbacks/343006.html

w@ns0ng 2011-01-14 22:08 发表评论
]]>
Webservice - XML-RPChttp://www.tkk7.com/wansong/articles/342337.htmlw@ns0ngw@ns0ngWed, 05 Jan 2011 03:23:00 GMThttp://www.tkk7.com/wansong/articles/342337.htmlhttp://www.tkk7.com/wansong/comments/342337.htmlhttp://www.tkk7.com/wansong/articles/342337.html#Feedback0http://www.tkk7.com/wansong/comments/commentRss/342337.htmlhttp://www.tkk7.com/wansong/services/trackbacks/342337.html

XML-RPC的全U是XML Remote Procedure CallQ即XMLq程Ҏ调用?
  它是一套允许运行在不同操作pȝ、不同环境的E序实现ZInternetq程调用的规范和一pd的实现?
  q种q程q程调用使用http作ؓ传输协议QXML作ؓ传送信息的~码格式。Xml-Rpc的定义尽可能的保持了单,但同时能够传送、处理、返回复杂的数据l构?
  XML-RPC是工作在Internet上的q程q程调用协议。一个XML-RPC消息是一个请求体为xml的http-posthQ被调用的方法在服务器端执行q将执行l果以xml格式~码后返回?
  Request example
  Here's an example of an XML-RPC request:
  POST /RPC2 HTTP/1.0User-Agent: Frontier/5.1.2 (WinNT)Host: betty.userland.comContent-Type: text/xmlContent-length: 181
  <?xml version="1.0"?>
  <methodCall>
  <methodName>examples.getStateName</methodName>
  <params>
  <param>
  <value><i4>41</i4></value>
  </param>
  </params>
  </methodCall>
  Response example
  Here's an example of a response to an XML-RPC request:
  HTTP/1.1 200 OKConnection: closeContent-Length: 158Content-Type: text/xmlDate: Fri, 17 Jul 1998 19:55:08 GMTServer: UserLand Frontier/5.1.2-WinNT
  <?xml version="1.0"?>
  <methodResponse>
  <params>
  <param>
  <value><string>South Dakota</string></value>
  </param>
  </params>
  </methodResponse>
  ?XML-RPC入门E序
  以下的入门程序包括一个管理器QHelloHandlerQ、一个服务器QHelloServerQ、一个客L序(HelloClientQ?
  首先要做的是创徏用于q程q程调用的类和方法,Z常常UC为管理器。Xml-rpc理器是一个方法和Ҏ集,它接受xml-rpchQƈ对请求的内容q行解码Q再向一个类和方法发求?
  //理器类
  package xmlRpc;
  /**
  * @author trier
  *
  * <b><code>HelloHandler</code></b> is a simple handler than can
  * be registered with an XML-RPC server
  */
  public class HelloHandler {
  public String sayHello(String name){
  return "Hello " + name;
  }
  }
  服务器程序将创徏的管理器注册到服务器上,qؓ服务器指明应用程序其他特定的参数?
  //服务器类
  package xmlRpc;
  /**
  *
  * <b><code>HelloServer</code></b> is a simple XML-RPC server
  * that will take the <code>HelloHandler</code> class available
  * for XML-PRC calls.
  * <o:p
  */
  import org.apache.xmlrpc.WebServer;
  import org.apache.xmlrpc.XmlRpc;
  import java.io.IOException;
  public class HelloServer {
  public static void main(String[] args){
  if(args.length<1){
  System.out.println("Usage: java HelloServer [port]");
  System.exit(-1);
  }
  try{
  XmlRpc.setDriver("org.apache.xerces.parsers.SAXParser");
  //start the server
  System.out.println("Starting XML-RPC Server......");
  WebServer server = new WebServer(Integer.parseInt(args[0]));
  //register our handler class
  server.addHandler("hello",new HelloHandler());
  System.out.println("Now accepting requests......");
  }catch(ClassNotFoundException e){
  System.out.println("Could not locate SAX Driver");
  }catch(IOException e){
  System.out.println("Could not start server: "+e.getMessage());
  }
  }
  }
  //客户E序
  package xmlRpc;
  /**
  *
  * <b><code>HelloClient</code></b> is a simple XML-RPC client
  * that makes an XML-RPC request to <code>HelloServer</code>
  */
  import java.io.IOException;
  import java.util.Vector;
  import org.apache.xmlrpc.XmlRpc;
  import org.apache.xmlrpc.XmlRpcClient;
  import java.net.MalformedURLException;
  import org.apache.xmlrpc.XmlRpcException;
  public class HelloClient {
  public static void main(String[] args){
  if(args.length<1){
  System.out.println("Usage: java HelloClient [your name]");
  System.exit(-1);
  }
  try{
  //Use the Apache Xereces SAX Driver
  XmlRpc.setDriver("org.apache.xerces.parsers.SAXParser");
  //Specify the server
  XmlRpcClient client = new XmlRpcClient("http://localhost:8585");
  //create request
  Vector params = new Vector();
  params.addElement(args[0]);
  //make a request and print the result
  String result = (String)client.execute("hello.sayHello",params);
  System.out.println("Response from server: "+ result);
  }catch(ClassNotFoundException e){
  System.out.println("Could not locate SAX Driver");
  }catch(MalformedURLException e){
  System.out.println("Incorrect URL fro xml-rpc server foramt:"+e.getMessage());
  }catch(XmlRpcException e){
  System.out.println("XmlRpcException :"+e.getMessage());
  }catch(IOException e){
  System.out.println("IOException:"+e.getMessage());
  }
  }
  }
  ?RPC和RMI的简单比?
  在RMI和RPC之间最主要的区别在于方法是如何别调用的。在RMI中,q程接口使每个远E方法都hҎ{֐。如果一个方法在服务器上执行Q但是没有相匚w的签名被d到这个远E接口上Q那么这个新Ҏ׃能被RMI客户Ҏ调用。在RPC中,当一个请求到达RPC服务器时Q这个请求就包含了一个参数集和一个文本|通常形成“classname.methodname”的Ş式。这向RPC服务器表明,被请求的Ҏ在ؓ“classname”的类中,名叫“methodname”。然后RPC服务器就L索与之相匚w的类和方法,q把它作为U方法参数类型的输入。这里的参数cd是与RPCh中的cd是匹配的。一旦匹配成功,q个Ҏp调用了,其结果被~码后返回客h?

w@ns0ng 2011-01-05 11:23 发表评论
]]>
Axis2Ҏwsdl文g生成本地Java代码http://www.tkk7.com/wansong/articles/341755.htmlw@ns0ngw@ns0ngTue, 28 Dec 2010 04:18:00 GMThttp://www.tkk7.com/wansong/articles/341755.htmlhttp://www.tkk7.com/wansong/comments/341755.htmlhttp://www.tkk7.com/wansong/articles/341755.html#Feedback0http://www.tkk7.com/wansong/comments/commentRss/341755.htmlhttp://www.tkk7.com/wansong/services/trackbacks/341755.html
http://axis.apache.org/axis2/java/core/docs/userguide.html#underhood

w@ns0ng 2010-12-28 12:18 发表评论
]]>
java 调用webservice--使用axis2 RPCServiceClienthttp://www.tkk7.com/wansong/articles/341205.htmlw@ns0ngw@ns0ngTue, 21 Dec 2010 00:23:00 GMThttp://www.tkk7.com/wansong/articles/341205.htmlhttp://www.tkk7.com/wansong/comments/341205.htmlhttp://www.tkk7.com/wansong/articles/341205.html#Feedback0http://www.tkk7.com/wansong/comments/commentRss/341205.htmlhttp://www.tkk7.com/wansong/services/trackbacks/341205.htmlhttp://www.ymquba.com/article.asp?id=352


private void test_findAllUsers(){
  System.out.println("------------------test_findAllUsers-------------------------------------");
  RPCServiceClient serviceClient = null;
  try {
    serviceClient = new RPCServiceClient();
          Options options = serviceClient.getOptions();
          EndpointReference targetEPR = new EndpointReference(
                        "http://localhost:8080/Axis2141Demo/services/UserService");
          options.setTo(targetEPR);         
          QName qname = new QName("http://axis2141demo.sample/xsd", "findAllUsers");

          Object[] parameters = new Object[]{};
          Class[] returnTypes = new Class[]{User.class};
          Object[] objects = serviceClient.invokeBlocking(qname, parameters, returnTypes);
          System.out.println(" objects size-->:" + objects.length);
          for(int i = 0; i < objects.length; i++) {
           if ((objects[i] != null) && (objects[i] instanceof User)) {
            User user = (User)objects[i];
            System.out.println("User Object Not null : " + user.getUserName());
           }
    }
  } catch (AxisFault e) {
   e.printStackTrace();
  }
 }
 
 
 /**
  * "List<User> findAllUsers()"
  *
  */
 private void test_findAllUsersCascadeOrder(){
  System.out.println("------------------test_findAllUsersCascadeOrder-------------------------------------");
  RPCServiceClient serviceClient = null;
  try {
    serviceClient = new RPCServiceClient();
          Options options = serviceClient.getOptions();
          EndpointReference targetEPR = new EndpointReference(
                        "http://localhost:8080/Axis2141Demo/services/UserService");
          options.setTo(targetEPR);         
          QName qname = new QName("http://axis2141demo.sample/xsd", "findAllUsersCascadeOrder");
          Object[] parameters = new Object[]{};
          Class[] returnTypes = new Class[]{User.class};
          Object[] objects = serviceClient.invokeBlocking(qname, parameters, returnTypes);
          System.out.println(" objects size-->:" + objects.length);
          for(int i = 0; i < objects.length; i++) {
           if ((objects[i] != null) && (objects[i] instanceof User)) {
            User user = (User)objects[i];
            System.out.println(" UserName : " + user.getUserName());
            List<Order> orders = user.getOrders();
            System.out.println("OrdersSize : " + orders.size());
            for (Order order : orders) {
             System.out.println(" OrderID : " + order.getOrderId() + " --> : " + order.getOrderNo());
     }
           }
    }
  } catch (AxisFault e) {
   e.printStackTrace();
  }
 }
 
 
 
 
 
 /**
  * "User findUserByUserId(Integer userId)"
  *
  */
 private void test_findUserByUserId(){
  
  System.out.println("-------------test_findUserByUserId-----------------------------------------");
  RPCServiceClient serviceClient = null;
  try {
    serviceClient = new RPCServiceClient();
          Options options = serviceClient.getOptions();
          EndpointReference targetEPR = new EndpointReference(
                        "http://localhost:8080/Axis2141Demo/services/UserService");
          options.setTo(targetEPR);
          QName qname = new QName("http://axis2141demo.sample/xsd", "findUserByUserId");
          Object[] parameters = new Object[] {new Integer(10)};
          Class[] returnTypes = new Class[]{User.class};
          Object[] objects = serviceClient.invokeBlocking(qname, parameters, returnTypes);
          System.out.println("objects size-->:" + objects.length);
          for(int i = 0; i < objects.length; i++) {
           if ((objects[i] != null) && (objects[i] instanceof User)) {
            User user = (User)objects[i];
            System.out.println(" User Object Not null : " + user.getUserName());
           }
    }
  } catch (AxisFault e) {
   e.printStackTrace();
  }

 }



w@ns0ng 2010-12-21 08:23 发表评论
]]>
Java调用.NET webserviceҎ的几U方?/title><link>http://www.tkk7.com/wansong/articles/340972.html</link><dc:creator>w@ns0ng</dc:creator><author>w@ns0ng</author><pubDate>Fri, 17 Dec 2010 05:05:00 GMT</pubDate><guid>http://www.tkk7.com/wansong/articles/340972.html</guid><wfw:comment>http://www.tkk7.com/wansong/comments/340972.html</wfw:comment><comments>http://www.tkk7.com/wansong/articles/340972.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/wansong/comments/commentRss/340972.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/wansong/services/trackbacks/340972.html</trackback:ping><description><![CDATA[http://liyuandong.javaeye.com/blog/567836<br /> <br /> JAVA用这U方式调用webservice,需要注意的地方Q?<br /> 1. 服务器未能识?HTTP 标头 SOAPAction 的| <br /> 症状一Q?<br /> Web Service + ASP.NET 应用E序部v到服务器默认目录中,在IE中用http://<服务器地址>/<E序目录?gt;/<默认启动面?gt;发生“服务器未能识?HTTP 标头 SOAPAction 的?#8221;错误?<br /> 症状二: <br /> 在Javaq_上调?NET Web Service的服务时Q出?服务器未能识?HTTP 标头 SOAPAction 的??<br /> 症状三: <br /> 在Javaq_下调?NET WEB ServiceQ出现数据时有时无?<br /> <br /> 解决对策Q?<br /> <br /> l?NET的WebServicec(?asmx文g下的c)d属性[SoapDocumentService(RoutingStyle=SoapServiceRoutingStyle.RequestElement)] <br /> 知识: <br /> 什么是SoapActionQ它在WSDL中有何作用? <br /> SOAPAction HTTP request header被用来标识SOAP HTTPh的目的地Q其值是个URI地址。SOAP发送ƈ不限制格式、URI特征或其必须可解析,那么在这U情况下Q发送一个HTTP SOAPhӞ其HTTP客户端必M?指明SOAPAction HTTP request header?<br /> <br /> SOAPAction header的内容可以被用在服务端,诸如Q防火墙适当的过滤基于HTTP的SOAPh消息{场景。SOAPAction header的gؓIZ("")表示SOAP消息的目的地由HTTPh的URI标识Q无值则表示没有指定q条消息的目的地?<br /> <br /> 本h补充Q?<br /> ?NET环境调用.NET WebService出现 “SOAPAction 值在 XML Web services 的所有方法中不唯一的错?#8221;Q也可以通过此法解决?<br /> <br /> <span style="color: red">2. ZJava能够调用WebService的方法,所以。NETP写的WebServiced的每个方法都要声明ؓRpcҎQ即d"[SoapRpcMethod.....]".</span> <br /> 例如Q[WebMethod] <br />         [SoapRpcMethod(Use=SoapBindingUse.Literal,Action= http://tempuri.org/HelloWorld", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/")] <br /> <br /> 3. 对返回倹{参数的处理上: <br /> 应尽量将webserviceҎ的返回倹{参数都写成字符ԌStringQ不要用复杂对象类?q样便于在网l上传输。避免了复杂对象cd的不易{换问题。。。对于返回类型是字符串数l型的,可以讄q回cd为org.apache.axis.encoding.XMLType.SOAP_VECTOR或java.lang.String[].class. <br /> <br /> <img src ="http://www.tkk7.com/wansong/aggbug/340972.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/wansong/" target="_blank">w@ns0ng</a> 2010-12-17 13:05 <a href="http://www.tkk7.com/wansong/articles/340972.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用Mule ESB与Groovy~排RESTful服务http://www.tkk7.com/wansong/articles/337597.htmlw@ns0ngw@ns0ngTue, 09 Nov 2010 02:21:00 GMThttp://www.tkk7.com/wansong/articles/337597.htmlhttp://www.tkk7.com/wansong/comments/337597.htmlhttp://www.tkk7.com/wansong/articles/337597.html#Feedback0http://www.tkk7.com/wansong/comments/commentRss/337597.htmlhttp://www.tkk7.com/wansong/services/trackbacks/337597.html

w@ns0ng 2010-11-09 10:21 发表评论
]]>
JSON Webservice http://www.tkk7.com/wansong/articles/335147.htmlw@ns0ngw@ns0ngThu, 14 Oct 2010 06:59:00 GMThttp://www.tkk7.com/wansong/articles/335147.htmlhttp://www.tkk7.com/wansong/comments/335147.htmlhttp://www.tkk7.com/wansong/articles/335147.html#Feedback0http://www.tkk7.com/wansong/comments/commentRss/335147.htmlhttp://www.tkk7.com/wansong/services/trackbacks/335147.html

w@ns0ng 2010-10-14 14:59 发表评论
]]>
վ֩ģ壺 ˳Ƶ| þùŮѹۿƷ| ޹ҹƷƬ| ˳ɵӰ| vaþþþúݺ| Ůֻˬ߹ۿ| ˳wwwӰҳ | ͵Ƶѹۿ| պƵ| ѵȫһ¼| 999þþѾƷ| ëƬȫ| ŷƵ| èԴ߹ۿ| ӰԺһҳСƵ߹ۿ | ۺһۺͼ| ˳߹ۿa| ƷСƵapp| Ʒþþþþ| þþƷ| 0588ӰֻѿƬ| ѹۿƵվ| ŮaƵ| ҹ㽶Ƭ| ޹Ʒþþϼ2| ޾Ʒһþ| ޹Ƶ߹ۿ| avѲۿ| Ƶ| ѹԺ߹ۿ| һպĻ| ɫóվ߹ۿ | ڵĤѿ| ޾ƷƷþ99| AVۺɫһAV| ѿ߾Ʒһ| δav| ߹ۿ˳Ƶڵ| ҳƵվ| Ů糱ëƬѲ| ˾þۺ|