Exception when using EJB and SOAP binding

"Sudhir Ganti" <Sudhir.Ganti-L+TN4DsvONfm/[email protected]>
Newsgroups gmane.comp.apache.webservices.wsif.user
Message-ID <B3A1940670779944A5A8E39D3183B1739BFDE7@DHOST001-19.DEX001.intermedia.net>
Hi All,

 

I am using WSIF with WebSphere in WSAD 5.1.2 and get these errors .
Could someone please help me out here.

 

When using EJB Binding I get the following error

 

org.apache.wsif.WSIFException: Could not create instance for home
'IOR:0000000000000038524d493a636f6d2e74657374332e736572766963652e52616e6
46f6d4e756d47656e486f6d653a303030303030303030303030303030300000000001000
0000000000130000102000000000a6c6f63616c686f737400062c000000a54a4d4249000
000124773e3aa37643062633737336533616166633334000000240000008149454a50010
007736572766572311544656661756c7420454a4220436f6e7461696e657200000059aca
c0002000100290000005f5f686f6d654f66486f6d6573235f5f686f6d654f66486f6d657
3235f5f686f6d654f66486f6d65730844656661756c74454152235465737433454a422e6
a61722352616e646f6d4e756d47656e00000000000007000000010000001400000000050
1000100000000000101000000000049424d0a00000008000000001410000300000026000
000020002000049424d040000000500050101020000000000001f0000000400000003000
000200000000400000001000000250000000400000003'; nested exception is: 

      java.lang.ClassCastException: com.test3.service._RandomNumGen_Stub

      at
org.apache.wsif.providers.ejb.WSIFPort_EJB.getEjbObject(WSIFPort_EJB.jav
a:225)

      at
org.apache.wsif.providers.ejb.WSIFOperation_EJB.<init>(WSIFOperation_EJB
.java:185)

      at
org.apache.wsif.providers.ejb.WSIFPort_EJB.getDynamicWSIFOperation(WSIFP
ort_EJB.java:137)

      at
org.apache.wsif.providers.ejb.WSIFPort_EJB.createOperation(WSIFPort_EJB.
java:296)

      at
org.apache.wsif.base.WSIFClientProxy.invoke(WSIFClientProxy.java:256)

      at $Proxy0.getRandomNumber(Unknown Source)

      at com.client.test3.TestWSIF.main(TestWSIF.java:68)

 

 

When using SOAP Binding I get the following error

 

org.xml.sax.SAXException: Deserializing parameter
'getRandomNumberResponse':  could not find deserializer for type
{http://service.test3.com}getRandomNumberResponse

      at
org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:276)

      at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deseria
lizationContextImpl.java:893)

      at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
200)

      at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:684)

      at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)

      at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)

      at org.apache.axis.client.Call.invoke(Call.java:1871)

      at org.apache.axis.client.Call.invoke(Call.java:1777)

      at org.apache.axis.client.Call.invoke(Call.java:1315)

      at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invok
eAXISDocStyle(WSIFOperation_ApacheAxis.java:1717)

      at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invok
eRequestResponseOperation(WSIFOperation_ApacheAxis.java:1435)

      at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.execu
teRequestResponseOperation(WSIFOperation_ApacheAxis.java:1037)

      at
org.apache.wsif.base.WSIFClientProxy.invoke(WSIFClientProxy.java:314)

      at $Proxy0.getRandomNumber(Unknown Source)

      at com.client.test3.TestWSIF.main(TestWSIF.java:67)

 

Thank you

sudhir
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.