Page 1 of 1

Web Service invocation fails

Posted: Mon Oct 29, 2012 8:02 am
by asaf_arbely
In DataStage 8.5 I'm using Web_Services_Transformer to invoke a Web Server. I've loaded the WSDL file and the port address starts with "https".
I checked the WS via soapUI and it does not requires token (user/password) or certification.
But if in Web_Services_Transformer in the Secutiry tab nothing is checked, the job fails with "Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory" error message.

If in the Secutiry tab "SSL Encryption Required" and "Trust all servers" are checked the job fails with "No support for attachments" error message.

Is Secutiry mandatory for "https..." URL?
Should I use a Keystore File?

Please advice.

Posted: Mon Oct 29, 2012 9:24 am
by eostic
To be certain the environment "works" and that it isn't simply something else, find out if the provider of the service has an http edition of it (without any security).

Also try some other services, so that you know it is "this" one that is giving you a problem.

Ernie

Posted: Mon Oct 29, 2012 10:35 am
by ray.wurlod
The "s" in "https" means "secure" and does require some kind of authentication. As Ernie suggests, find out if the web service can be invoked using http as the protocol.

Posted: Tue Oct 30, 2012 1:22 am
by asaf_arbely
Thanks for your reply.
Unfortunately there is no http edition.
I've tried http service I found in internet: http://www.restfulwebservices.net/wcf/W ... ervice.svc and it works fine.

According to sysadmin who's responsible for the requred https - there is no need in user/password or certification from my side.

It seems like I need to check
"SSL Encryption Required" and "Trust all servers" in Security tab, but as I mentioned I get the following error:

Job_GetDataWS_Test..Web_Services_Transformer_10: com.ascentialsoftware.wsclient.ServiceInvocationException: Service invocation exception: <ns1:Fault xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.lang.RuntimeException: No support for attachments</faultstring>
<detail>
<ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">java.lang.RuntimeException: No support for attachments
at org.apache.axis.Message.setup(Message.java:336)
at org.apache.axis.Message.<init>(Message.java:234)
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:664)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)

...