Handling xml characters in Webservices Stage

Dedicated to DataStage and DataStage TX editions featuring IBM<sup>®</sup> Service-Oriented Architectures.

Moderators: chulett, rschirm

Post Reply
jagadam
Premium Member
Premium Member
Posts: 107
Joined: Wed Jul 01, 2009 4:55 pm
Location: Phili

Handling xml characters in Webservices Stage

Post by jagadam »

Hi,

Iam trying to send the data to webservices using webservices stage.
Can any one let me know how to handle the xml special characters in webservices stage.

I tried to declare DataElement for the field that has xml characters(like &),but that didn't work. I dont have root level field.

When I called the WSDL the wsdl didn't import any root level element.

Is this something that we need to handle it in the WSDL or can we do that in the Webservices Stage.

Thanks
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

Usually, if the Web Services "truly" expects XML in the payload, then you need to do nothing....

In such cases, the WSDL will usually define only a single large varchar or char column..... in it you are supposed to deliver an xml document. Put that document into that column (presumably from somewhere upstream) and the WS Transformer will do the rest...it will take care of any escaping that needs to be done as a matter of normal processing when it packages the string into a SOAP envelope [ultimately, on the wire, you will be sending xml inside of xml].

Be sure to test the service using SOAPui or Actional SOAP Tester or any of many free soap testing tools you can find on the web. Then you can validate easily exactly what this service is expecting you to send to it.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply