Some details of the Note on the webservice

2010-10-15  来源:本站原创  分类:Java  人气:819 

Recently in the webservice to do java development, mainly to do interface development. Found some details of the problem:

1, using a custom object, although it can, this way, limited to the client when the call

It must generate client code can call, if invoked by the dynamic wsdl is pass, and

So that needs attention, minimize the use of custom objects returned, try using the standard type. Otherwise,

Debugging it is very troublesome, the problem I also discovered through the investigation.

2, webservice xml development of the form can be returned

3, webservice json development can also be returned in the form of

4, webservice development can also be transmitted through the xml to pass parameters.

Here that the dynamic calls under the cxf ways:

String xmlStr = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>"
                                + "<user><uid>user01</uid><password>111111</password></user>";
                 JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
                   org.apache.cxf.endpoint.Client client = dcf.createClient("");

                Object[] objects=client.invoke("createUser",xmlStr);

Required to download jar package as Annex

  • Some details of the Note on the webservice 2010-10-15

    Recently in the webservice to do java development, mainly to do interface development. Found some details of the problem: 1, using a custom object, although it can, this way, limited to the client when the call It must generate client code can call,

  • Call webservice using javascript examples 2010-09-16

    Soap and then call the webservice using javascript sample code IE6 and FF code then tested for the webservice written in c # and java (xfire) written in the tested, no problem This code is a prototype from the javascript soapcli

  • How to call WEBSERVICE in PB 2010-08-28

    From: Creating web service proxy point: File-> News-> Project-> Web service Proxy Wizrd wsdl webservice server-side will provide interface documentation, pb with web service proxy wizard inside the wsdl ge

  • Development of norms 2010-02-05

    HugeBoss development of norms Directory Outline Project dependencies Development model A query pattern 2 submitted to the second business model _ 3 _ to maintain submission mode Coding details and case note 1 naming 2 Design Database specification Sq

  • Apparel direct printing solution for common faults 2010-02-18

    Keywords: clothing, direct printing, common faults, the solution for direct digital garment printing quality deterioration during the most common factors that put forward at all times maintain the highest quality professional solution. [Img] http://i

  • Apparel direct printing process common problems and their solutions 2010-02-18

    Keywords: clothing direct printing Digital direct printing for apparel produced in the process of deterioration of the quality of the most common factors, the authors put forward here to uphold the highest quality professional solutions:: Clothing di

  • Java6.0 new features of StAX - a comprehensive analysis of Java XML parsing technologies 2010-04-21

    Mustang (Mustang, Java 6.0 code) compared to Tiger (Tiger, Java 5.0, code-named) who, from the performance improvements, scripting languages (Javascript, JRuby, Groovy) the support of the extension of to the desktop applications enhance

  • DBA_Oracle manually create the database 2010-05-14

    1. To create an instance: oradim-NEW-SID book 2. Ready to initialization parameter file: INIT <SID>. ORA copy replace instance name 3. Check the appropriate directory structure exists: there is no attention undo_tablespace =''create their own conten

  • JSTOCKCHART in [Duplicates are not permitted. Try using the addOrUpdate () method.] 2010-06-24

    ] [JSTOCKCHART on the use of plug-in development process [You are attempting to add an observation for the time period Thu Jun 24 10:34:26 CST 2010 but the series already contains an observation for that time period. Duplicates are not permitted. Try

  • MS-SQL local / global variables 2010-08-06

    Local variables are user defined variables, and its role within the scope of the program only. In the program usually used to store the table in the query from the data, or as a temporary variable during program execution to use. Local variables must

  • Database Tools MyDbHelper android 2010-08-06

    package com.tdd.db.util; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteO

  • JAVA in this usage summary 2010-09-24

    I know many friends like me: in the JAVA program, it seems often to see the "this", use it myself occasionally, but in the end "this" how to use, but loss what to do! Many people think about it, saying the "current object", w

  • Implementation of SSAS 2005 in a pre-cache 2010-11-11

    In order to optimize the cube (cube) of the query performance, we have chosen MOLAP storage. Since we already have many of the cube, and now we will focus on maintaining multi-dimensional data set is the latest, this is because the data in the data w

  • SSL Web Server Configuration Example 2010-12-08

    SSL service Tomcat configuration example <Connector port="7443" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout=&

  • How effective exchange links 2010-12-10

    These days the group where talk about links in the exchange, many novice friends also made a lot of questions about today's gave you details of the Note on the Link exchange some of the issues and techniques that can make your link exchange to achiev

  • linux configure apche2.2.6 & & tomcat5.5 cluster 2011-05-11

    To the Apache website to download the required files: httpd-2.2.6.tar.gz apache-tomcat-5.5.23.tar.gz First, install apache # Tar xzvf httpd-2.2.6.tar.gz # Cd httpd-2.2.6 #. / Configure - prefix = / usr/local/apache2 - ena

  • JDK6 webservice applications (note the different between SOAPBinding.Style) 2010-04-20

    Starting from JDK6.0, Java introduces Web Service support. We just need a simple to use Java, Annotation tag standard Java methods can be released into the Web Service. Note that under this article about the practical application because I SOAPBindin

  • Use the index to note the details of the 2011-01-26

    Index creation and data tables to create equally important, are the cornerstone of system performance, the performance index is not created, not only not improve, it will result in a serious waste of system resources, maintain an index for the DB, th

  • android development - note the small details 2010-03-25

    To the status bar in full screen Window window = getWindow(); window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); / Set no title bar requestWindowFeature(Window.FEATURE_NO_TITL

  • pb12 development webservice Note 2010-12-24

    System Environment: winxp sp2 + oracle10g + iis5.1 1. Check whether the machine iis normal, if the iis default page can not run or browse Times permission type of error, check the "Local Users and Groups" in the three built-related account is en