1)first crate one small java web service
First write one class in java which accepts only your first
name and in response it will give your full name
public class ReturnFullName {
String
shrikant = "Shrikant
Dilip Dhage";
String
sandip = "Sandip Sopan
Dhage";
public String
getStrig(String getString){
if(getString.equals("shrikant"))
{
getString
= shrikant;
}
else if (getString.equals("sandip")) {
getString
= sandip;
}
else {
return "Invalid
text";
}
return getString;
}
}
Testing web service for this class by using axis and
weblogic 10.3.6
By using wsdl file you can check your Web Service
Now response is coming
Then create one project in ODI and crate one package and
drag the tool OdiInvokeWebService
Click on the OdiInvokeWebService tool (rename it CallReturnFullNameClass)
Add the following parameters
Note – you can get the above value from wsdl
2) Port Type – ReturnFullName
3)Operation –getStrig
You can give the either xml request file or xml
request(by using soapUi)
Only one is mandatory
1)xml req
Or
2)xml req file
4)Xml request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:def="http://DefaultNamespace">
<soapenv:Header/>
<soapenv:Body>
<def:getStrig>
<def:getString>shrikant</def:getString>
</def:getStrig>
</soapenv:Body>
</soapenv:Envelope
5) XML Request File
6)Storage
mode for request file
You
can use it like (for this example we used file append)
7)Response
file – first it should be blanked… but after execution it will be filled with
response… As we mentioned above storage mode is file append then it will append
every response with same file.
Please Download all files from this Location
https://drive.google.com/file/d/0B55nRwPH0TMlajFDRmp5Rl8wREU/edit?usp=sharing
https://drive.google.com/file/d/0B55nRwPH0TMlajFDRmp5Rl8wREU/edit?usp=sharing
No comments:
Post a Comment