• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Consuming SOA Suite WSDL SOAP

Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 (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...


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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Once when I found it, solution was quite easy, here is the resulting class which does the job:

Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic