Showing posts with label WSDL. Show all posts
Showing posts with label WSDL. Show all posts

Jun 26, 2008

The lost (collaxa) BPEL-tutorials: 103.XMLDocuments

After you have everything in place (follow this posting), let's step to this tutorial: 103.XMLDocuments
In this sample a "complex" xml document is created within the bpel. Sometimes you have to answer the question: there is a xml document with many defaults and you want to update only a few parameters.
Here the solution:
Build a BPEL and use a xsd which corresponds to your complex xml document. In this BPEL add an assign with the following operation:


The option "XML Fragment" can be chosen in the pulldown menu within the create operation dialog.
Into this XML Fragment you have to add the following xml


if your XSD looks like this:

<schema targetNamespace ="http://samples.otn.com/finance"
xmlns = "http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"/>
<complexType name="StockReviewSheetType"/>
<sequence/>
<element name="symbol" type="string" />
<element name="targetPrice" type="float" />
<element name="currentPrice" type="float" />
<element name="action" type="string" />
<element name="quantity" type="int" />
<sequence/>
<complexType/>
<schema/>

Very important is to specfy the right namespace in the xml fragment. If you forget this, the assign is executed, but it is like you assign values to the variables of com.gip.myclass and you need them in com.xyna.myclass.... This will break your workflow not now, but later...

May 4, 2008

Review at amazon: Test and analysis of web services

Last week i read the book "Test and analysis of web services" to get some new tips and tricks how to deal with web services in projects or how to integrate webservices from other vendors into our product "Xyna Service Factory"

Here a short summary:

very academic
not up to date
some chapter refer to webpages (like www.bpelunit.org), which are not reachable
no references to real projects

If this was too short, take a look at my review at amazon.de (It is written in german, sorry...)

Feb 27, 2008

Security and SOA

In an service oriented architecture the deployments of webservices and bpels have become more and more complex. This creates additional challenges for securing applications or message exchange.
You can use an old, mature standard to address these challenges:
transport-level security. With SSL it is very easy to secure the data . But this solution gets a little bit difficult, if you want to implement message routers, which should look into the payload. You have to distribute certificates to all routers. This is not feasible for large installations involving many department or many contractors...

Is this all? No! There are some new options like the WS-* specifications...
Now you will say: "Ok, these WS-* things are very helpful. I like the WS-makeitfast and WS-generateitwithoutwork..."
You can find a diagram which shows all this WS-* specifications here (from www.innoq.com)
Yes there are many WS-* specifications and here the attempt to explain WS-Security. To achieve this goal we have to start with two other specifications:

1.) XML Encryption can encrypt the whole element (example from www.w3.org):
  <?xml version='1.0'?>
<PaymentInfo xmlns='http://example.org/paymentv2'>
<Name>John Smith</Name>
<CreditCard Limit='5,000' Currency='USD'>
<Number>4019 2445 0277 5567</Number>
<Issuer>Example Bank</Issuer>
<Expiration>04/02</Expiration>
</CreditCard>
</PaymentInfo>

or just the content:
  <?xml version='1.0'?>
<PaymentInfo xmlns='http://example.org/paymentv2'>
<Name>John Smith</Name>
<EncryptedData Type='http://www.w3.org/2001/04/xmlenc#Element'
xmlns='http://www.w3.org/2001/04/xmlenc#'>
<CipherData>
<CipherValue>A23B45C56</CipherValue>
</CipherData>
</EncryptedData>
</PaymentInfo>


2.) XML Signature can add a signing entity (example from www.w3.org):
<Signature Id="MyFirstSignature"  
xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
<SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>
<Reference
URI="http://www.w3.org/TR/2000/REC-xhtml1-20000126/">
<Transforms>
<Transform Algorithm="http://www.w3.org/TR/2001/
REC-xml-c14n-20010315"/>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>j6lwx3rvEPO0vKtMup4NbeVu8nk=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>MC0CFFrVLtRlk=...</SignatureValue>
<KeyInfo>
<KeyValue>
<DSAKeyValue>
<P>...</P><Q>...</Q><G>...</G><Y>...</Y>
</DSAKeyValue>
</KeyValue>
</KeyInfo>
</Signature>


WS-Security is using XML Encryption to provide confidentiality and XML Signature to provide data integrity. The SOAP headers of WS-Security can be enhanced for authentication purposes with X.509 certificates, kerberos tickets, SAML or some others....

Oracle support WS-Security and there was a very nice article at Oracle magazine where Mike Lehmann explained how to use WS-Security with JDeveloper.

So with Oracle AS 10g and JDeveloper you can easily secure your SOA and the webservices with SSL or WS-Security....

Feb 18, 2008

Review at amazon: Soa Approach to Integration

Last week i read the book "Soa Approach to Integration" (www.packtpub.com).


This book is really excellent. It covers in nearly 360 pages all things you should know about SOA and it will provide you with examples, guidelines and historical backgrounds.
If you are not familiar with XML, XSD, WSDL and BPEL you will get a tight introduction with many best practices. The authors came up with a very good balance of going in to details and coverage of different technical infrastructures like Java or .NET.
If you are interested (and if you understand german), read my review at amazon.de.
If you are not able to read german, you can read the reviews on www.amazon.com.
In my opinion, everyone who is talking about SOA should know the content of this book!

PS: The BPEL-chapter is based on Oracle BPEL PM and one of the reviewers of this book was Clemens Utschig, the SOA guru from Oracle!

Nov 28, 2007

Creating Webservice with JDeveloper 11g

I found a nice link with an online demo for creating a webservice top-down with jdeveloper 11g beta.
If you can spend some time, take a look here. (i think you will need an OTN account to view this demo.)

They have completely rewritten the WSDL editor. Here a screenshot of the new style:

Oracle says:
Improved WSDL editor
The WSDL editor has been improved to provide better layout handling, including collapsible columns and validation and error feedback in design and code views. Other features to improve the WSDL editor are:
* Fast track navigation to all files implementing a WSDL *
* Extensive drag and drop operations for typical use cases
* Extensive binding options including EJB and JMS
Full support for JAX-WS
The wizards and editing tools for services and client generation now support the new JAX-WS Java EE5 standard, providing a simpler programming model than JAX-RPC and using JAX-B 2.0 for its data binding. Both annotation driven and deployment descriptor options are available.

Very nice is the feature, that you can add message part via drag & drop from XSDs... I hope iAS 11g will be released soon...

Aug 13, 2007

Oracle DB 11g: Native Webservices

Hi,

i found a nice blog about the native webservice support of Oracle database 11g. It is quite amazing.
You just have to write the right PL/SQL package and after that you can access it via an URL (the example in the blog is: http://server:port/orawsv/SCOTT/EMPCOUNT?wsdl).
I think Oracle has added the Java standalone webservice stack from the Oracle Application Server into the database.
Very nice!

Jul 13, 2007

SOA

Hi,

just trying to put something in here. (Now in english;-)
Found on the Blog of Tom Kyte (Oracle) the following link to SOA
http://www.soafacts.com/
Very interesting facts ...