To Alek and Ant and any other contributors: Can anyone please tell me why all the setters were deprecated in the WSIFPort_ApacheAxis class in wsif-2.0.1? I use setEndPoint() to redirect the SOAP traffic to my tcpmon listening port and was suprised to find out that it's deprecated in 2.0.1. Is there a better/recommended way to hookup tcpmon? The issue is that after WSDL is obtained, all the traffic goes to the service's port and not tcpmon's port and WSIFPort_ApacheAxis.setEndPoint(0 did it for me, otherwise I see in tcpmon only the first GET to grab the WSDL file.
Thansk a lot, Greg -----Original Message----- From: Gregory Prokter [mailto:[EMAIL PROTECTED] Sent: Saturday, January 01, 2005 8:45 PM To: [email protected] Subject: RE: Exception in WSIFOperation_ApacheAxis.setResponseContext() Thanks Alek. I think I found the problem. I'm running the lib-s from wsif 2.0.1, but my DynamicInvoker is from wsif 2.0. So, when I tried the 2.0.1's samples/clients/DynamicInvoker on my wsdl, everything worked just fine. Turns out that 2.0 DynamicInvoker had some deprecated methods, like: WSIFUtils.getWrappedDocLiteralPart(parts, operationName) and WSIFUtils.unWrapPart(p, def). So, it looks to me that not only the .jar files have to be in sync, but also the samples, like DynamicInvoker have to be in sync with the .jar file version. Thanks, for the willingness to help. I'm still playing around with the wsif technology, as I've just discovered it. Best wishes for the New 2005! Greg -----Original Message----- From: Aleksander Slominski [mailto:[EMAIL PROTECTED] Sent: Saturday, January 01, 2005 4:21 AM To: [email protected] Subject: Re: Exception in WSIFOperation_ApacheAxis.setResponseContext() Gregory Prokter wrote: >I've rerun CVS-checkout to get the lattest wsif-2.0.1_IB3 which in its /lib >dir has both: axis-1_2RC2.jar and saaj.jar. I assume these are compatible >since they both came from the same wsif version in apache cvs. So far no >luck. The same Exception is thrown. > > interesting - how can I reproduce it? what is exactly your CLASSPATH? what is WSDL file and what are command line parameters you pass to DynamicInvoker? thanks, alek > >-----Original Message----- >From: Aleksander Slominski [mailto:[EMAIL PROTECTED] >Sent: Friday, December 31, 2004 5:36 PM >To: [email protected] >Subject: Re: Exception in WSIFOperation_ApacheAxis.setResponseContext() > > >i would check that you have right version of saaj.jar that works with >axis.jar. > >HTH, > >alek > >Gregory Prokter wrote: > > > >>Greetings to all, >> >>I need help. I've got the Exception below while doing >>executeRequestResponseOperation with Provider=ApacheAxis. I'm running a >>Requestor very similar to the samples/DynamicInvoker. The Requestor >>successfully received the WSDL (GET) and successfully sent in the operation >>request (POST). Then, the operation was successfully executed and the SOAP >>message with the right return value sent back to the Requestor - yes, I've >>been watching TCPMON. However, because of the exception below, the >>Requestor code couldn't pass the executeRequestResponseOperation(). Then, >> >> >I > > >>rebuilt the wsif.jar with the lattest sources of wsif-2.0, thinking that >> >> >the > > >>java.lang.NoSuchMethodError Exception indicates I must've gotten something >>out of synch, rebuilt my example with the new wsif.jar and ran the >> >> >Requestor > > >>again, but the same Exception was trown again. I wonder why. Anyone has a >>clue? >> >>Thanks in advance for your help. >> >>Greg >> >>Exception: >>========== >> [java] java.lang.NoSuchMethodError: >>org.apache.axis.Message.getSOAPEnvelope()Lorg/apache/axis/message/SOAPEnve l >> >> >o > > >>pe; >> [java] at >>org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.setResp o >> >> >n > > >>seContext(Unknown Source) >> [java] at >>org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeR e >> >> >q > > >>uestResponseOperation(Unknown Source) >> [java] at >>org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.execute R >> >> >e > > >>questResponseOperation(Unknown Source) >> [java] at >>com.edrient.manager.samples.wsif.DynamicInvoker.invokeMethod(DynamicInvoke r >> >> >. > > >>java:295) >> [java] at >>com.edrient.manager.samples.wsif.DynamicInvoker.main(DynamicInvoker.java:1 0 >> >> >7 > > >>) >> [java] Exception in thread "main" >> >> >> >> >> > > >-- >The best way to predict the future is to invent it - Alan Kay > > > -- The best way to predict the future is to invent it - Alan Kay
