'프로그래밍 > XML 관련' 카테고리의 다른 글
XML 변환 성능 (0) | 2009.04.17 |
---|---|
Soap Handler (0) | 2009.04.17 |
WebLogic Workshop을 이용한 웹서비스 프로그래밍 (0) | 2009.04.17 |
XMLBean (3) | 2008.12.22 |
JAX-WS를 이용한 쉬운 웹서비스 개발 방법 (0) | 2008.12.12 |
XML에서 Namespace 제거하는 XSLT (0) | 2008.12.10 |
XML 변환 성능 (0) | 2009.04.17 |
---|---|
Soap Handler (0) | 2009.04.17 |
WebLogic Workshop을 이용한 웹서비스 프로그래밍 (0) | 2009.04.17 |
XMLBean (3) | 2008.12.22 |
JAX-WS를 이용한 쉬운 웹서비스 개발 방법 (0) | 2008.12.12 |
XML에서 Namespace 제거하는 XSLT (0) | 2008.12.10 |
XML 변환 성능 (0) | 2009.04.17 |
---|---|
Soap Handler (0) | 2009.04.17 |
WebLogic Workshop을 이용한 웹서비스 프로그래밍 (0) | 2009.04.17 |
XMLBean (3) | 2008.12.22 |
JAX-WS를 이용한 쉬운 웹서비스 개발 방법 (0) | 2008.12.12 |
XML에서 Namespace 제거하는 XSLT (0) | 2008.12.10 |
XML 변환 성능 (0) | 2009.04.17 |
---|---|
Soap Handler (0) | 2009.04.17 |
WebLogic Workshop을 이용한 웹서비스 프로그래밍 (0) | 2009.04.17 |
XMLBean (3) | 2008.12.22 |
JAX-WS를 이용한 쉬운 웹서비스 개발 방법 (0) | 2008.12.12 |
XML에서 Namespace 제거하는 XSLT (0) | 2008.12.10 |
Soap Handler (0) | 2009.04.17 |
---|---|
WebLogic Workshop을 이용한 웹서비스 프로그래밍 (0) | 2009.04.17 |
XMLBean (3) | 2008.12.22 |
JAX-WS를 이용한 쉬운 웹서비스 개발 방법 (0) | 2008.12.12 |
XML에서 Namespace 제거하는 XSLT (0) | 2008.12.10 |
XML2JSON Transform XSLT (0) | 2008.12.10 |
This is a programming guide for component developer to make a webservice easily.
This is webservice creation guide for component team.
We will use webservice development standard like this.
Standard IDE is WebLogic workshop 10.3. You can use any IDE that you want. JAX-WS is standard.WebLogic provides eaisest development environment. If you want to find any alternatives, i want to recommend CXF in Apache. It is easily integrated with Spring framework
Here is webservice development restriction for more easy development
Java Data Types | XML Scheme Data Type |
---|---|
boolean | boolean |
byte | byte |
double | double |
float | float |
long | long |
int | int |
String | string |
java.math.BigInteger | integer |
java.util.Calendar | dateTime |
java.util.Data | dateTime |
In addtion you properbly need a use a some of array type. Here is a guide. You have to remember that you cannot use Map or Hashtable data type. You have to covert the types into ArrayList etc.
Java Data Types | XML Scheme Data Type |
---|---|
java.util.Collection | Literal Array |
java.util.List | Literal Array |
java.util.ArrayList | Literal Array |
java.util.LinkedList | Literal Array |
java.util.Vector | Literal Array |
java.util.Stack | Literal Array |
java.util.Set | Literal Array |
java.util.TreeSet | Literal Array |
java.utils.SortedSet | Literal Array |
java.utils.HashSet | Literal Array |
1. Make a ValueObject
Make a ValueObject.You can easily make a ValueObject with datatype decribed above.
You have to use some notation to provide more clarified WSDL generation.
package osp.sample.valueObject;
import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD) @XmlType (propOrder={ "name", "price", "quantity"} )
public class Item { @XmlElement(required=true) String name;
@XmlElement(required=true) int price;
@XmlElement(required=true) int quantity;
public String getName() { return name; }
public void setName(String name) { this.name = name; }
public int getPrice() { return price; }
public void setPrice(int price) { this.price = price; }
public int getQuantity() { return quantity; }
public void setQuantity(int quantity) { this.quantity = quantity; }
}
2. Create WebService
Create WebService in WebLogic Workshop IDE and implement a Webservice.
package bcho.sample.webservice;
import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService;
import bcho.sample.valueObject.PurchaseOrder;
@WebService public class OrderWebService {
@WebMethod public @WebResult(name="purchaseOrder")PurchaseOrder addOrder( @WebParam(name="purchaseOrder")PurchaseOrder po)
{ return po; }
}
3. Run a Test
You can test a webservice in WebLogic Workshop IDE.
4. Package and deploy
Here is a short tutorial movie of WebService development.
[pilot:JAX-WS based Web Service Programming Guide^WebLogic 10.3 JAX-WS Creation guide.mpeg]
JAXB Development http://edocs.bea.com/wls/docs103/webserv/data_types.html#wp223908
JAX-WS WebService Development http://edocs.bea.com/wls/docs103/webserv/jws.html#program_jws_file
WebLogic Workshop을 이용한 웹서비스 프로그래밍 (0) | 2009.04.17 |
---|---|
XMLBean (3) | 2008.12.22 |
JAX-WS를 이용한 쉬운 웹서비스 개발 방법 (0) | 2008.12.12 |
XML에서 Namespace 제거하는 XSLT (0) | 2008.12.10 |
XML2JSON Transform XSLT (0) | 2008.12.10 |
WebLogic 10.3에서 JAX-WS + JAXB 기반 웹서비스 생성 하는 동영상 (1) | 2008.11.24 |
XMLBean (3) | 2008.12.22 |
---|---|
JAX-WS를 이용한 쉬운 웹서비스 개발 방법 (0) | 2008.12.12 |
XML에서 Namespace 제거하는 XSLT (0) | 2008.12.10 |
XML2JSON Transform XSLT (0) | 2008.12.10 |
WebLogic 10.3에서 JAX-WS + JAXB 기반 웹서비스 생성 하는 동영상 (1) | 2008.11.24 |
재미있는 XML 라이브러리 하나 (0) | 2008.09.09 |
XMLBean (3) | 2008.12.22 |
---|---|
JAX-WS를 이용한 쉬운 웹서비스 개발 방법 (0) | 2008.12.12 |
XML에서 Namespace 제거하는 XSLT (0) | 2008.12.10 |
XML2JSON Transform XSLT (0) | 2008.12.10 |
WebLogic 10.3에서 JAX-WS + JAXB 기반 웹서비스 생성 하는 동영상 (1) | 2008.11.24 |
재미있는 XML 라이브러리 하나 (0) | 2008.09.09 |
XMLBean (3) | 2008.12.22 |
---|---|
JAX-WS를 이용한 쉬운 웹서비스 개발 방법 (0) | 2008.12.12 |
XML에서 Namespace 제거하는 XSLT (0) | 2008.12.10 |
XML2JSON Transform XSLT (0) | 2008.12.10 |
WebLogic 10.3에서 JAX-WS + JAXB 기반 웹서비스 생성 하는 동영상 (1) | 2008.11.24 |
재미있는 XML 라이브러리 하나 (0) | 2008.09.09 |
XMLBean (3) | 2008.12.22 |
---|---|
JAX-WS를 이용한 쉬운 웹서비스 개발 방법 (0) | 2008.12.12 |
XML에서 Namespace 제거하는 XSLT (0) | 2008.12.10 |
XML2JSON Transform XSLT (0) | 2008.12.10 |
WebLogic 10.3에서 JAX-WS + JAXB 기반 웹서비스 생성 하는 동영상 (1) | 2008.11.24 |
재미있는 XML 라이브러리 하나 (0) | 2008.09.09 |
댓글을 달아 주세요