steps to implement soap

9
Steps in System-1: Connet Soap: In Service Tab: Here we have given the message type as RPC(Remote Procedure Call), which is used to connect external device Here the method name is “add” which is mentioned or used at the Service end point

Upload: avinashkamtam

Post on 24-Apr-2017

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Steps to Implement SOAP

Steps in System-1:

Connet Soap:

In Service Tab:

Here we have given the message type as RPC(Remote Procedure Call), which is used to connect external device

Here the method name is “add” which is mentioned or used at the Service end point

Service end Point URL: http://192.168.1.16:8080/axis/Calculator.jws (Location of the service end point)

Page 2: Steps to Implement SOAP

Note: Service end point Uses AXIS which is deployed in TOMCAT.

In Service Tab:

In Status value property : we have given a property named .pyStatusValue to know the values.

Page 3: Steps to Implement SOAP

Status Message Property: .pystatusmessage is used to know the error status.

In Request Tab:

Here we mention the request parameters i.e: .add_i1 and .add_i2 of type integer

And we map it from clipboard

Page 4: Steps to Implement SOAP

Response Tab:

Here in response parameter we mention the resulting value to be stored in this property .add_addReturns

Page 5: Steps to Implement SOAP

Activity:

Steps in activity to call connect rule and display results:

1) Page New: we will create a new page named StepPage which is a primary page.2) Property set : initiating values at run time3) Connect Soap : Used to connect to soap4) Show Page: Show the output results

Page 6: Steps to Implement SOAP

Steps in System-2:

Here we have deployed Axis which acts as an webservice in TOMCAT.

Here we have written a jws code in axis to add and subtract two numbers:

Location of jws file: C:\Documents and Settings\Desktop\tomcat\tomcat\webapps\axis\calculator.jws

public class Calculator {

public int add(int i1, int i2) {

System.out.println("hi in the add method");

return i1 + i2;

}

public int subtract(int i1, int i2) {

System.out.println("hi in the subtract method");

return i1 - i2;

}

}

In System -1 : when the activity is called it will show the below results page:

Page 7: Steps to Implement SOAP

Have entered value for add_i1 as 12

Page 8: Steps to Implement SOAP

Have entered value for add_i2 as 13

OUTPUT Result:

It will Display an output as 25 as shown below in xml file: