Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue in the documentation #109

Merged
merged 3 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ The `Client` is used to connect to and interact with `SOAP` endpoints.
### SOAP 1.1 Client

```ballerina
import ballerina/soap:soap11;
import ballerina/soap.soap11;

soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
```

### SOAP 1.2 Client

```ballerina
import ballerina/soap:soap12;
import ballerina/soap.soap12;

soap12:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
```
Expand All @@ -43,7 +43,7 @@ The SOAP 1.1 specification requires the inclusion of the `action` parameter as a
### Example: Send & Receive

```ballerina
import ballerina/soap:soap11;
import ballerina/soap.soap11;

public function main() returns error? {
soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
Expand All @@ -63,7 +63,7 @@ public function main() returns error? {
### Example: Send Only

```ballerina
import ballerina/soap:soap11;
import ballerina/soap.soap11;

public function main() returns error? {
soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
Expand Down Expand Up @@ -149,10 +149,10 @@ These policies empower SOAP clients to enhance the security of their web service
import ballerina/crypto;
import ballerina/mime;
import ballerina/soap;
import ballerina/soap:soap11;
import ballerina/soap.soap11;

public function main() returns error? {
soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL",
soap11:Client soapClient = check new ("https://www.secured-soap-endpoint.com",
{
inboundSecurity: [
{
Expand Down Expand Up @@ -182,14 +182,14 @@ public function main() returns error? {
import ballerina/crypto;
import ballerina/mime;
import ballerina/soap;
import ballerina/soap:soap12;
import ballerina/soap.soap12;

public function main() returns error? {
configurable crypto:PrivateKey clientPrivateKey = ?;
configurable crypto:PublicKey clientPublicKey = ?;
configurable ​crypto:PublicKey serverPublicKey = ?;

soap12:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL",
soap12:Client soapClient = check new ("https://www.secured-soap-endpoint.com",
{
inboundSecurity: {
signatureAlgorithm: soap:RSA_SHA256,
Expand Down
16 changes: 8 additions & 8 deletions ballerina/Module.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ The `Client` is used to connect to and interact with `SOAP` endpoints.
### SOAP 1.1 Client

```ballerina
import ballerina/soap:soap11;
import ballerina/soap.soap11;

soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
```

### SOAP 1.2 Client

```ballerina
import ballerina/soap:soap12;
import ballerina/soap.soap12;

soap12:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
```
Expand All @@ -34,7 +34,7 @@ The SOAP 1.1 specification requires the inclusion of the `action` parameter as a
### Example: Send & Receive

```ballerina
import ballerina/soap:soap11;
import ballerina/soap.soap11;

public function main() returns error? {
soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
Expand All @@ -54,7 +54,7 @@ public function main() returns error? {
### Example: Send Only

```ballerina
import ballerina/soap:soap11;
import ballerina/soap.soap11;

public function main() returns error? {
soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
Expand Down Expand Up @@ -139,10 +139,10 @@ These policies empower SOAP clients to enhance the security of their web service
import ballerina/crypto;
import ballerina/mime;
import ballerina/soap;
import ballerina/soap:soap11;
import ballerina/soap.soap11;

public function main() returns error? {
soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL",
soap11:Client soapClient = check new ("https://www.secured-soap-endpoint.com",
{
inboundSecurity: [
{
Expand Down Expand Up @@ -172,14 +172,14 @@ public function main() returns error? {
import ballerina/crypto;
import ballerina/mime;
import ballerina/soap;
import ballerina/soap:soap12;
import ballerina/soap.soap12;

public function main() returns error? {
configurable crypto:PrivateKey clientPrivateKey = ?;
configurable crypto:PublicKey clientPublicKey = ?;
configurable ​crypto:PublicKey serverPublicKey = ?;

soap12:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL",
soap12:Client soapClient = check new ("https://www.secured-soap-endpoint.com",
{
inboundSecurity: {
signatureAlgorithm: soap:RSA_SHA256,
Expand Down
16 changes: 8 additions & 8 deletions ballerina/Package.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ The `Client` is used to connect to and interact with `SOAP` endpoints.
### SOAP 1.1 Client

```ballerina
import ballerina/soap:soap11;
import ballerina/soap.soap11;

soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
```

### SOAP 1.2 Client

```ballerina
import ballerina/soap:soap12;
import ballerina/soap.soap12;

soap12:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
```
Expand All @@ -34,7 +34,7 @@ The SOAP 1.1 specification requires the inclusion of the `action` parameter as a
### Example: Send & Receive

```ballerina
import ballerina/soap:soap11;
import ballerina/soap.soap11;

public function main() returns error? {
soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
Expand All @@ -54,7 +54,7 @@ public function main() returns error? {
### Example: Send Only

```ballerina
import ballerina/soap:soap11;
import ballerina/soap.soap11;

public function main() returns error? {
soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
Expand Down Expand Up @@ -139,10 +139,10 @@ These policies empower SOAP clients to enhance the security of their web service
import ballerina/crypto;
import ballerina/mime;
import ballerina/soap;
import ballerina/soap:soap11;
import ballerina/soap.soap11;

public function main() returns error? {
soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL",
soap11:Client soapClient = check new ("https://www.secured-soap-endpoint.com",
{
inboundSecurity: [
{
Expand Down Expand Up @@ -172,14 +172,14 @@ public function main() returns error? {
import ballerina/crypto;
import ballerina/mime;
import ballerina/soap;
import ballerina/soap:soap12;
import ballerina/soap.soap12;

public function main() returns error? {
configurable crypto:PrivateKey clientPrivateKey = ?;
configurable crypto:PublicKey clientPublicKey = ?;
configurable ​crypto:PublicKey serverPublicKey = ?;

soap12:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL",
soap12:Client soapClient = check new ("https://www.secured-soap-endpoint.com",
{
inboundSecurity: {
signatureAlgorithm: soap:RSA_SHA256,
Expand Down
10 changes: 5 additions & 5 deletions ballerina/modules/soap11/Module.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The `Client` is used to connect to and interact with `SOAP` 1.1 endpoints.
### SOAP 1.1 Client

```ballerina
import ballerina/soap:soap11;
import ballerina/soap.soap11;

soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
```
Expand All @@ -26,7 +26,7 @@ The SOAP 1.1 specification requires the inclusion of the `action` parameter as a
### Example: Send & Receive

```ballerina
import ballerina/soap:soap11;
import ballerina/soap.soap11;

public function main() returns error? {
soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
Expand All @@ -46,7 +46,7 @@ public function main() returns error? {
### Example: Send Only

```ballerina
import ballerina/soap:soap11;
import ballerina/soap.soap11;

public function main() returns error? {
soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
Expand Down Expand Up @@ -131,14 +131,14 @@ These policies empower SOAP clients to enhance the security of their web service
import ballerina/crypto;
import ballerina/mime;
import ballerina/soap;
import ballerina/soap:soap11;
import ballerina/soap.soap11;

public function main() returns error? {
crypto:PrivateKey clientPrivateKey = ...//
crypto:PublicKey clientPublicKey = ...//
​​crypto:PublicKey serverPublicKey = ...//

soap11:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL",
soap11:Client soapClient = check new ("http://www.secured-soap-endpoint.com",
{
inboundSecurity: {
signatureAlgorithm: soap:RSA_SHA256,
Expand Down
10 changes: 5 additions & 5 deletions ballerina/modules/soap12/Module.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The `Client` is used to connect to and interact with `SOAP` 1.2 endpoints.
### SOAP 1.2 Client

```ballerina
import ballerina/soap:soap12;
import ballerina/soap.soap12;

soap12:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
```
Expand All @@ -26,7 +26,7 @@ The SOAP 1.1 specification requires the inclusion of the `action` parameter as a
### Example: Send & Receive

```ballerina
import ballerina/soap:soap12;
import ballerina/soap.soap12;

public function main() returns error? {
soap12:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
Expand All @@ -46,7 +46,7 @@ public function main() returns error? {
### Example: Send Only

```ballerina
import ballerina/soap:soap12;
import ballerina/soap.soap12;

public function main() returns error? {
soap12:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL");
Expand Down Expand Up @@ -131,14 +131,14 @@ These policies empower SOAP clients to enhance the security of their web service
import ballerina/crypto;
import ballerina/mime;
import ballerina/soap;
import ballerina/soap:soap12;
import ballerina/soap.soap12;

public function main() returns error? {
crypto:PrivateKey clientPrivateKey = ...//
crypto:PublicKey clientPublicKey = ...//
​​crypto:PublicKey serverPublicKey = ...//

soap12:Client soapClient = check new ("http://www.dneonline.com/calculator.asmx?WSDL",
soap12:Client soapClient = check new ("http://www.secured-soap-endpoint.com",
{
inboundSecurity: {
signatureAlgorithm: soap:RSA_SHA256,
Expand Down