Skip to content
forked from aliyun/csb-sdk

The CSB-SDK is a client-side invocation SDK for HTTP or Web Service API opened by the CSB (Cloud Service Bus) product. It is responsible for invoking the open API and signing the request information.

License

Notifications You must be signed in to change notification settings

zengzhihua/csb-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSB-SDK README

Introduction

The CSB-SDK is a client-side invocation SDK for HTTP or Web Service API opened by the CSB (Cloud Service Bus) product. It is responsible for invoking the open API and signing the request information.

Content in the CSB-SDK

  • common Base classes used by both HTTP-SDK and WS-SDK
  • HTTP-SDK The client SDK for invoking HTTP API details
  • WS-SDK The client SDK for binding security params into WebService client dispatch or port details
  • Samples Unit Tests for using above SDKs details
  • others HTTP-SDK for other Languages implementation, e.g. PHP, Go and Node.js

RELEASE

  • Build as standalone client jar:
# Build http SDK
cd http-client
bash gen-standaloneJar.sh

# Build WS SDK
cd ws-client
bash gen-standaloneJar.sh

Use the SDK as dependency in your pom.xml

  1. Directly use the maven dependency from maven central repository. Use release dependency in your pom.xml
  <!--To use HTTP-SDK-->
  <dependency>
     <groupId>com.alibaba.csb.sdk</groupId>
     <artifactId>http-client</artifactId>
     <version>${http.sdk.version}</version>
  </dependency>

  <!--To use WS-SDK-->
  <dependency>
     <groupId>com.alibaba.csb.sdk</groupId>
     <artifactId>ws-client</artifactId>
     <version>${ws.sdk.version}</version>
  </dependency>

Note: Please check latest release version from here

  1. Use snapshot dependency in your pom.xml
  <!--To use HTTP-SDK-->
  <dependency>
     <groupId>com.alibaba.csb.sdk</groupId>
     <artifactId>http-client</artifactId>
     <version>1.1.0-SNAPSHOT</version>
  </dependency>

  <!--To use WS-SDK-->
  <dependency>
     <groupId>com.alibaba.csb.sdk</groupId>
     <artifactId>ws-client</artifactId>
     <version>1.1.0-SNAPSHOT</version>
  </dependency>
     
     
  <repositories>
    ...
      
    <!--define snapshot repository for SDK releases-->   
    <repository>
      <id>csb-sdk-snapshots</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

Other-Languages support (beta version!!!)

  1. PHP based HTTP-SDK A http-sdk implementation by PHP script details

  2. Go based HTTP-SDK A http-sdk implementation by Go script details

  3. node.js based HTTP-SDK A http-sdk implementation by Node.js details

  4. .net based HTTP-SDK A http-sdk implementation by .net details

Future Work

  • Support more Aliyun base service
  • Support more friendly code migration.

License

Licensed under the Apache License 2.0

About

The CSB-SDK is a client-side invocation SDK for HTTP or Web Service API opened by the CSB (Cloud Service Bus) product. It is responsible for invoking the open API and signing the request information.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 76.7%
  • Go 9.8%
  • PHP 6.9%
  • JavaScript 6.2%
  • Shell 0.4%