Skip to main content

webservices

Informatica PowerConnect for Webservices

I started working with Informatica powerconnect for webservices with Informatica version 8. I was mighty disappointed to see that the infromatica manual said very little about how to use the transformations. The web wasn’t of much help either. Lots of trial and error, figuring around and hours of calls with Informatica support finally got our mappings working the way it had to. More because the webservice we were calling were rather complex, but even
with a far simpler webservice it still is a herculian task getting the thing to work without help.

This article is written with the assumption that the reader has gone through the Informatica manual related to power connect for web services.

We can use powerconnect as a source, target or consumer transformation. The chance that you use as a consumer transformation being the highest I will talk mostly about that.

You start with using a WSDL file that the webservice provider has given you. Most probably this would have been provided this on their website. The wsdl file is like a dictionary that has all the information of the operations that the webservice provides the URL to the soap requests and so on.

In Informatica if you select consumer transformation it takes you to a import WSDL pane. Browse to the point where you have the WSDL.

There is on tricky option here that turned to be of great importance in my experience. The webservice that I was calling was returning images inbinary format. The werbservice was failing with base64binary conversion error. Eventually it turned out this was because I had to set the field lengths of ports very high since the data stream was
very long.

Click on advanced options to override field lengths if you are expecting long strings of data.

Select the operation you need to use in the next window.

After you have done this step you are presented with a window which gives you an option to use entity relationship or hierarchy relationship for your xml view of the webservice transformation.

This is another area I found tricky. Heirarchy relationship gives issues unless you are using every group of input ports. I found using entity relationships better when you don’t plan to use all input groups.

You are now presented with the consumer transformation in its xml view in the mapping. You can see there are different groups of input ports. Each group has its own primary key. Make sure you provide a sequence
generator to the primary keys in each of the group you are using.

Each group is related to another with foreign keys. So make sure you connect the sequence generator output of the groups primary-key to the other groups foreign-key.

Eg:

If you have two groups, envelope and body.

Envelope has primary_key Pk_envolope

Body has a primary-key pk_body and a foreign-key fk_body_envolope.

Connect a sequence generator output to pk_envolope of group envelope. Connect
the same sequence generator to fk_body_envolope in group body.

Connect a different sequence generator output to pk_body in group body.

Once you have connected all input and out fields as required you are all
set as far as mapping development goes.

When you configure session for webservice, create a “Application
connection” with username and password as the webservice
provider expects.

Its likely the webservice fails (mine got me working on it for 3 days
before it started giving me outputs the way I wanted) the first time
you run it. The easy way to analyze errors is to set the override
tracing in session to verbose data. This way the soap request and
soap response is visible in xml format. There would be a fault
message embedded in the SOAP response that tells you what the issue
is.

Above all this Informatica Support turned out to be quite helpful in
resolving our issue.

Comments

Popular posts from this blog

Making of a genius

They say there is a genius in all of us. All humans are supposed to be born with similar abilities. Its the environment and experiences that his life goes through that defines where he/she reaches in life. At least so goes philosophy.I had the fortune of doing my bachelors in the most sought after department in the most sort after Engineering college in my state. So for my part I have seen quite a few geniuses in the making. One thing I could pride myself with is my sense of observation of people around me and their habits, and I have come to the conclusion that there is a lot in common among these individuals.That being said, going by the converse theory if all geniuses had similar habits, would developing the very same habits make one a genius? Probably not, but it would definitely give you the same edge these genius have besides the blessed brainpower they possess.So what are these traits that I am talking about?ConfidenceEach one of them knew themselves that they were exception...

Why should I build a datawarehouse? Why do I need to invest on BI?

Well, lets start with basics. Every time you had to recruit a new resource to share the increasing load on your staff, what is the picture you have in mind? An exact clone of the perfect efficient guy X you have with you, who understood the way the company works and feels the direction in which the business went. We know that its not possible as of today to clone people, but what if there was a way the same X you have had a way to do the work he did today in half the time he did today so that in effect he had the time to do twice the work he did today. What if all the associates in your company could do their work in half the time they took today. With rising HR cost today and the huge crisis in getting and retaining brilliant employees this would sound like directly from heaven for CEOs around the world, and has over the past few years which led companies to invest hugely in better and more efficient tools for their employees. Now who among your staff is highest paid most critical of ...

Informatica PowerConnect for Webservices

I started working with Informatica powerconnect for webservices with Informatica version 8. I was mighty disappointed to see that the infromatica manual said very little about how to use the transformations. The web wasn’t of much help either. Lots of trial and error, figuring around and hours of calls with Informatica support finally got our mappings working the way it had to. More because the webservice we were calling were rather complex, but even with a far simpler webservice it still is a herculian task getting the thing to work without help.This article is written with the assumption that the reader has gone through the Informatica manual related to power connect for web services.We can use powerconnect as a source, target or consumer transformation. The chance that you use as a consumer transformation being the highest I will talk mostly about that.You start with using a WSDL file that the webservice provider has given you. Most probably this would have been provided this on the...