Issue Invoking WebService

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
anajitKS
Premium Member
Premium Member
Posts: 28
Joined: Thu Dec 18, 2014 7:57 pm
Location: Kansas City

Issue Invoking WebService

Post 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.
ABHIJIT DUTTA
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Just to double-check, this is truly a Server job leveraging the WebService Client stage?
-craig

"You can never have too many knives" -- Logan Nine Fingers
anajitKS
Premium Member
Premium Member
Posts: 28
Joined: Thu Dec 18, 2014 7:57 pm
Location: Kansas City

Post by anajitKS »

Yes. this is truly a Server job leveraging the WebService Client stage.
ABHIJIT DUTTA
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Thanks.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Did you have an attachment when testing with SoapUI?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
anajitKS
Premium Member
Premium Member
Posts: 28
Joined: Thu Dec 18, 2014 7:57 pm
Location: Kansas City

Post 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>
ABHIJIT DUTTA
anajitKS
Premium Member
Premium Member
Posts: 28
Joined: Thu Dec 18, 2014 7:57 pm
Location: Kansas City

Post by anajitKS »

No attachment was passed to the web service when invoked from the datastage.
ABHIJIT DUTTA
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post 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
Ernie Ostic

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