Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Consuming SOA Suite WSDL SOAP

Nenad Bulatovic
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.)

What I want now is to connect - consume - that service from palin JAVA application.
Following this tutorial (
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://

parsing WSDL...

[WARNING] R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "execute"
line 31 of

generating code...
compiling code...


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

In eclipse I created SOAClient class such as:

auto generated class ExecutePtt looks like:

ReceivePO class is:

ObjectFactory class is:

package-info is


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.
Nenad Bulatovic
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once when I found it, solution was quite easy, here is the resulting class which does the job:

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic