레이블이 웹서비스인 게시물을 표시합니다. 모든 게시물 표시
레이블이 웹서비스인 게시물을 표시합니다. 모든 게시물 표시

2007년 6월 18일 월요일

perl을 위한 wsdl파일 자동 생성기

내용인 즉슨
perl은 환상적인 언어라 자동으로 타입을 결정할 수 있기 때문에 SOAP Client를 작성함에 있어서도 환상적이다. 하지만 java, c++, vb등의 언어는 서버와 커뮤니케이션 하기 위해서는 WSDL파일이 있어야만 한다. WSDL파일은 서버와 상호 호환이 가능한 모든 데이터 구조가 정의 되어 있다.

그러므로 PERL로 생성한 웹 서비스도 다른 서비스를 지원하기 위해선 WSDL을 서비스 해야 한다.

http://dag.wieers.com/rpm/packages/perl-WSDL-Generator/

Generate wsdl file automagically.
You know folks out there who use another language than Perl (huh?) and you want to release a SOAP server for them

1/ that's very kind of you 2/ you need to generate a wsdl file 3/ this module can help Because Perl is dynamically typed, it is a fantastic language to write SOAP clients, but that makes perl not-so-easy to use as SOAP server queried by statically typed languages such as Delphi, Java, C++, VB... These languages need a WSDL file to communicate with your server. The WSDL file contains all the data structure definition necessary to interact with the server. It contains also the namespace and URL as well.

Latest release: 0.02-1.2

Website: http://search.cpan.org/dist/WSDL-Generator/
License: Artistic
Group: Applications/CPAN
Upstream Contact: Pierre Denis <pdenis at fotango dot com>
RPM Authority: dries :: Dries Verachtert <dries at ulyssis dot org>

perl에서 web service읭 wsdl사용

use SOAP::Lite;

$a = 45;
$b = 55;
print "Adding values ", $a, " and ", $b, "\n";
print SOAP::Lite
    -> service('file://c:/voices/perl/service1.wsdl')
    -> Add($a, $b);

#===============================================

파일일 경우엔 위와 같이 사용
http일 경우엔 http://host/voices/perl/service1.wsdl
로 사용한다.

2007년 6월 15일 금요일

Web Service Track

1. XML Web Service의 소개

  -분산 어플리케이션의 진화

  -웹 서비스관련 기술 스택

  -웹 서비스 시나리오


2. XML Web Service 아키텍쳐

  -웹 서비스 아키텍쳐 / 서비스 지향 아키텍쳐

  -웹 서비스 아키텍쳐 구성의 역할

  -웹 서비스 프로그래밍 모델


3. 웹 서비스를 이루는 기술소개

  -HTTP 기본

  -XML 기본

  -SOAP

  -.NET Framework에서 SOAP 사용하기


4. Consuming XML Web Services

  -WSDL Document

  -Web Service Discovery

  -Web Service Proxies

  -웹 서비스 Consumer 제작하기


5. 간단한 XML Web Service 구현하기

  -Web Service Project 생성

  -Web Service Method 구현

  -상태관리

  -디버깅


6. XML Web Service의 출판 및 배포

  -웹 서비스 배포

  -UDDI의 소개

  -웹 서비스 출판

  -UDDI 사용하기


7. XML Web Service 보안

  -보안의 소개

  -SOAP 해더를 이용한 인증

  -Role-Based Security

  -Code Access Security

  -Encryption


8. XML Web Service 디자인

  -Performance

  -Reliability

  -Versioning


9. Global XML Web Services 아키텍쳐

  -GXA

  -Security & Licensing


2007년 6월 14일 목요일

XML-RPC와 SOAP Web Service

XML-RPC is a protocol that allows programs of different languages on different machines to easily talk to each other. By sending a well-defined XML document over unadorned HTTP, a client program can make a remote procedure call to a server. The server processes the request and wraps its response in another well-defined XML document that is sent back to the client over that same HTTP connection.

XML-RPC는 이종 머신상의 이종 언어들이 각자 쉽게 데이터를 주고 받을 수 있게 도와주는 일종의 프로토콜이다. 잘 정의된 XML문서를 HTTP를 통해 보내고 클라이언트는 서버의 프로시져를 호출 할 수 있다. 서버는 클라이언트의 요청에 대해 마찬가지로 잘 정의된 XML문서로 답변한다.

 

Because procedure requests and responses are all in XML, each end of the RPC connection need not be written in the same language or even for the same platforms

프로시져의 호출과 답변이 XML 이루어 지기 때문에 같은 환경과 언어가 필요하지 않다.

 

Clients code to an agreed-upon API that a Web service listener implements. Either side of the API fence can change without affecting the other side. In this way, Web services in general, and XML-RPC in particular, can help break down the Berlin Wall of incompatible OS platforms and make language-agnostic software network components.

클라이언트의 서비스Api 지원한다. Xml-RPC Web Service 일반적인 방법은 Web Service이고 XML-RPC 특별한 방법이다.

 

Although less famous than its younger sibling SOAP, XML-RPC is a simple and easy tool that can help you integrate even the most uncommunicative of systems

서비스보다 유명하진 않지만 XML-RPC 통신할 없는 시스템조차도 관리할 있는 쉬운 방법이다.

 

Where SOAP is a generalized, object-oriented, messaging protocol that is designed to carry arbitrary XML payloads across any network protocol, XML-RPC is a simple procedural protocol designed only to make remote function calls

SOAP 서비스는 XML 전송하기 위한 객체 지향의 네트워크 프로토콜인데 반해 XML-RPC 단순 리모트 펑션을 부르기 위한 방법 하나이다.

 

CPAN의 RPC::XML 모듈을 사용한다.

 

결론: SOAP Web Service와 XML-RPC는 다름 ㅋㅋㅋㅋ

데이터를 전송하는 복잡한 행동 보다는 서버의 프로시져를 단순히 CALL해서 사용할 때 사용한다.

두 개의 프로토콜을 적절히 조합해서 사용하면 최상의 결과를 얻을 수 있음

주제들

주제를 정해서 공부 하려 한다.
같은 관심사를 가진 사람들을 모아서 같이 했으면 하는데.
혼자서 넘기 힘든 높은 산은 여럿이서 넘는다.
오르라인 모임이라도 하고 싶은데..ㅋㅋ 관심 있으신분은 댓글 ㅋㅋ

1. Perl Web Service VS java Web Service

2. XML-RPC
무엇이고, 어떻게 구현이 가능한가

3. XML-RPC / Soap으로 구현한 Web Service의 차이?

4. Perl SOAP Web Service도 binary 처리가 가능한가?