Hello,
here is what I got: installed and configured SOA Suite 11g, (weblogic server 10.3, repository creation utility, soa suite, jdeveloper studio, Oracle XE database 10g).
SOA infrastructure
Service engines (BPEL, Mediator, Business rules, Himan workflow
Metadastore (MDS)
Enterprise manager, web service manager, B2B, Adapterframework (JCA)
Oracle Business Activity monitoring (BAM)
All set up and running. tutorial project Purchase Order Processing set up and running as well (its' from book "Getting started with Oracle SOA suite 11g R1 A hands on tutorial").
Tests are executing fine, all passed (several types of credit
cards, small, medium and large orders, automatic and manual approval, several types on shipping automatically chosen on size of order etc.)
https://plus.google.com/107165483218733145600/posts/ZThR91KF2NY?fd=1&pid=6053000126234480210&oid=107165483218733145600
What I want now is to connect - consume - that service from palin
JAVA application.
Following this tutorial (
http://theopentutorials.com/examples/java-ee/jax-ws/create-and-consume-web-service-using-jax-ws/)
I managed use JAX-WS tool called ‘wsimport’ for generating the artifacts required for creating and consuming a web service.
‘wsimport’ takes a wsdl file as input.
It compiled well besides one warning for what I think is not critical (or maybe it is?)
C:\Users\Nenad\eclipseJunoSESR2\GettingStartedWithEclipseJuno\SOAConsume02>wsimport -s src -d bin ht
tp://i3770k.mshome.net:8001/soa-infra/services/default/POProcessing/receivePO?WSDL
parsing WSDL...
[WARNING] R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "execute"
line 31 of
http://i3770k.mshome.net:8001/soa-infra/services/default/POProcessing/receivePO?WSDL
generating code...
compiling code...
C:\Users\Nenad\eclipseJunoSESR2\GettingStartedWithEclipseJuno\SOAConsume02>
So the classes are there:
And now I am stuck, because I have no idea how to send "order" i.e. how to populate input arguments:
request PurchaseOrderType
* CustID string Value
* ID string Value
productName string
itemType string
price decimal
quantity decimal
status string
ccType string
ccNumber
In eclipse I created SOAClient class such as:
auto generated class ExecutePtt looks like:
ReceivePO class is:
ObjectFactory class is:
package-info is
and
PurchaseOrderType class is
Therfore my questions are:
1. What should I add in my class SOAClient to make this work (set the parameters and execute
test - place order)
2. Should I use JAX-WS at all? I ask because i saw some tutorials without it but i haven't still studied them.
Thank you very much for any idea, suggestion or giving me right direction.