Page 1 of 1

Issue Invoking WebService

Posted: Mon Jun 20, 2016 10:14 am
by anajitKS
I am invoking an external WebService by using WebService Client Stage.
While running the webservice. It is coming back with an error stating 'No Support For attachment'.I checked the WS via soapUI and it works fine.

I am getting the following error.

TestOracle_UCM4A..Transformer_16: com.ascentialsoftware.wsclient.ServiceInvocationException: Service invocation exception: <Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode xmlns="">Server.userException</faultcode>
<faultstring xmlns="">java.lang.RuntimeException: No support for attachments</faultstring>
<detail xmlns="">
<stackTrace xmlns="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)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:1753)
at com.ascentialsoftware.wsclient.OperationCall.invoke(OperationCall.java:285)
at com.ascentialsoftware.wsclient.WebService.callServiceInternal(WebService.java:1685)
at com.ascentialsoftware.wsclient.WebService.callService(WebService.java:1591)
at com.ascentialsoftware.wsclient.WebService.callService(WebService.java:1544)
at com.ascentialsoftware.wspack.Transformer.process(Transformer.java:105)
at com.ascentialsoftware.jds.StageFactory.runStage(StageFactory.java:544)
at com.ascentialsoftware.jds.StageFactory.runTarget(StageFactory.java:348)
</stackTrace>
</detail>
</Fault>
at com.ascentialsoftware.wsclient.OperationCall.handleRemoteException(OperationCall.java:388)
at com.ascentialsoftware.wsclient.OperationCall.invoke(OperationCall.java:293)
at com.ascentialsoftware.wsclient.WebService.callServiceInternal(WebService.java:1685)
at com.ascentialsoftware.wsclient.WebService.callService(WebService.java:1591)
at com.ascentialsoftware.wsclient.WebService.callService(WebService.java:1544)
at com.ascentialsoftware.wspack.Transformer.process(Transformer.java:105)
at com.ascentialsoftware.jds.StageFactory.runStage(StageFactory.java:544)
at com.ascentialsoftware.jds.StageFactory.runTarget(StageFactory.java:348)




What am I missing here ?
Any help on this will be appreciated.

Posted: Mon Jun 20, 2016 10:18 am
by chulett
Just to double-check, this is truly a Server job leveraging the WebService Client stage?

Posted: Mon Jun 20, 2016 10:27 am
by anajitKS
Yes. this is truly a Server job leveraging the WebService Client stage.

Posted: Mon Jun 20, 2016 10:48 am
by chulett
Thanks.

Posted: Mon Jun 20, 2016 4:03 pm
by ray.wurlod
Did you have an attachment when testing with SoapUI?

Posted: Mon Jun 20, 2016 7:00 pm
by anajitKS
There is no attachment when the SOAPUI request was made. Here is the request.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/financials ... ice/types/" xmlns:erp="http://xmlns.oracle.com/apps/financials ... onService/">
<soapenv:Header/>
<soapenv:Body>
<typ:uploadFileToUcm>
<typ:document>
<erp:Content>SGkgUm9iLCBJIGhvcGUgdGhpcyB3b3Jrcy4gTWlrZS4=</erp:Content>
<erp:FileName>MikesGLTest_0617</erp:FileName>
<!--Optional:-->
<erp:ContentType>zip</erp:ContentType>
<!--Optional:-->
<erp:DocumentTitle>Mikes Journal Import 20160617</erp:DocumentTitle>
<!--Optional:-->
<erp:DocumentAuthor>webservices</erp:DocumentAuthor>
<!--Optional:-->
<erp:DocumentSecurityGroup>FAFusionImportExport</erp:DocumentSecurityGroup>
<!--Optional:-->
<erp:DocumentAccount>fin$/generalLedger$/import$</erp:DocumentAccount>
<!--Optional:-->
<erp:DocumentName>Test</erp:DocumentName>
<!--Optional:-->
<erp:DocumentId></erp:DocumentId>
</typ:document>
</typ:uploadFileToUcm>
</soapenv:Body>
</soapenv:Envelope>

Posted: Mon Jun 20, 2016 7:48 pm
by anajitKS
No attachment was passed to the web service when invoked from the datastage.

Posted: Mon Jun 20, 2016 8:04 pm
by eostic
...are you expecting it to be? I don't think that the WS Stages were ever updated to fully support SOAP 1.2, which is when I think SOAP w/Attachments functionality was added. Is the receiving service "expecting" an attachment? .....also, it is "possible" that the error is being detected sooner, even before the service leaves DataStage....meaning that it may be detecting that attachments are part of the payload and telling you they aren't supported. Hard to say, but find a service that has nothing to do with file uploading and see if that works, so that you have a comparison. Also, it may prove useful to use a Server Job (or if it is one, great) and choose the tracing facility at the run dialog (look thru the tabs).....then check your Stage on the left and all four boxes on the right.......look at the volume of log messages ...at the middle of them you will see the xml payload OUT and the one that is returned..........if you never get the OUT, then the message is never getting out of the box to reach its destination. That can sometimes be helpful in deciphering such things.

You may need to write your own Java Class and use the Java Integration Stage or Java Client, depending on your release.

Ernie