2 Replies Latest reply on Mar 22, 2012 3:59 AM by muralidharan a

    wise soapclient access problem

    muralidharan a Newbie

      Hi,

       

         I am using wise SOAPClient to call the external wsdl service. When I access the SOAPClient I got the following error message

       

      parsing WSDL...

      19:03:52,578 INFO  [STDOUT] Failed to invoke WsImport

      19:03:52,578 INFO  [STDOUT] java.lang.IllegalArgumentException: trying to create the same field twice: touSchedule

      19:03:52,578 INFO  [STDOUT]           at com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:419)

      19:03:52,578 INFO  [STDOUT]           at com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:390)

      19:03:52,578 INFO  [STDOUT]           at com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar.createField(AbstractFieldWithVar.java:72)

      19:03:52,578 INFO  [STDOUT]           at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:89)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:76)

      19:03:52,593 INFO  [STDOUT]           at sun.reflect.GeneratedConstructorAccessor487.newInstance(Unknown Source)

      19:03:52,593 INFO  [STDOUT]           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

      19:03:52,593 INFO  [STDOUT]           at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.xjc.generator.bean.field.GenericFieldRenderer.generate(GenericFieldRenderer.java:64)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.xjc.generator.bean.field.DefaultFieldRenderer.generate(DefaultFieldRenderer.java:79)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.xjc.generator.bean.BeanGenerator.generateFieldDecl(BeanGenerator.java:747)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGenerator.java:535)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:235)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:175)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.xjc.model.Model.generateCode(Model.java:286)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:252)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:134)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2245)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:187)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:133)

      19:03:52,593 INFO  [STDOUT]           at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:183)

      19:03:52,593 INFO  [STDOUT]           at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:230)

      19:03:52,593 INFO  [STDOUT]           at org.jboss.wsf.spi.tools.WSContractConsumer.consume(WSContractConsumer.java:202)

      19:03:52,593 INFO  [STDOUT]           at it.javalinux.wise.core.client.WSDynamicClient.importObjectFromWsdl(WSDynamicClient.java:165)

      19:03:52,593 INFO  [STDOUT]           at it.javalinux.wise.core.client.WSDynamicClient.init(WSDynamicClient.java:125)

      19:03:52,593 INFO  [STDOUT]           at it.javalinux.wise.core.client.WSDynamicClient.init(WSDynamicClient.java:94)

      19:03:52,593 INFO  [STDOUT]           at org.jboss.soa.esb.actions.soap.wise.WSDynamicClientFactory.create(WSDynamicClientFactory.java:72)

      19:03:52,593 INFO  [STDOUT]           at org.jboss.soa.esb.actions.soap.wise.SOAPClient.createClient(SOAPClient.java:314)

      19:03:52,593 INFO  [STDOUT]           at org.jboss.soa.esb.actions.soap.wise.SOAPClient.process(SOAPClient.java:250)

      19:03:52,593 INFO  [STDOUT]           at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:649)

      19:03:52,593 INFO  [STDOUT]           at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:603)

      19:03:52,593 INFO  [STDOUT]           at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:433)

      19:03:52,593 INFO  [STDOUT]           at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:550)

      19:03:52,593 INFO  [STDOUT]           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      19:03:52,593 INFO  [STDOUT]           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      19:03:52,593 INFO  [STDOUT]           at java.lang.Thread.run(Thread.java:662)

       

      my wise soapclient configuration is

       

      <action class="org.jboss.soa.esb.actions.soap.wise.SOAPClient"

                                                        name="soapui-client-action">

                                                        <property name="wsdl"

                                                                  value="http://xx.xxx.xxx.xxx/axis2/services/example?wsdl" />

                                                        <property name="SOAPAction" value="GetRequestResult" />

                                                        <property name="EndPointName" value="examplesoap" />

                                                        <property name="LoggingMessages" value="true"/>

                                                        <property name="custom-handlers" value="org.custom.wsaction.CustomAction"/>

                                              </action>