dcsimg
java.lang.NoSuchFieldError: WRAPPED
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, February 9, 2007 02:10 AM

I wrote a client java program to invoke a webservice. the steps i followed were : 1. generated stubs and testcase class out of the wsdl using WSDL2java. 2. edited the testcase class to pass the parameters and to display the output in java console. 3. build these classes to a jar file using ant build and set it in the class path. 4. wrote a main class to invoke the testcase object. 5. compiled teh main class successfully.. but when i tried to run that it shows an error : Exception in thread "main" java.lang.NosuchFieldError: WRAPPED at com.M2.WE.www.WEBHTTPSoapbindingStub. (WEBHTTPSoapbindingStub.java:43) at com.M2.WE.www.WEBServiceLocator.setWEBPort(WEBServiceLocator.java:43)    More>>

I wrote a client java program to invoke a webservice. the steps i followed were :
1. generated stubs and testcase class out of the wsdl using WSDL2java.
2. edited the testcase class to pass the parameters and to display the output in java console.
3. build these classes to a jar file using ant build and set it in the class path.
4. wrote a main class to invoke the testcase object.
5. compiled teh main class successfully..

but when i tried to run that it shows an error :
Exception in thread "main" java.lang.NosuchFieldError: WRAPPED at com.M2.WE.www.WEBHTTPSoapbindingStub. (WEBHTTPSoapbindingStub.java:43)
at com.M2.WE.www.WEBServiceLocator.setWEBPort(WEBServiceLocator.java:43)
at com.M2.WE.www.WEBServiceLocator.setWEBPort(WEBServiceLocator.java:38)
at com.M2.WE.www.WEBServiceTestCase.test1WEBPortWEBOperation(WEBServiceTestCase.java:17)
at TestWebService.main(TestWebService.java:9)

Could Anyone find a solution for me??
Tanks in advance.

   <<Less
About | Sitemap | Contact