2 Replies Latest reply on May 27, 2009 5:28 AM by Daniel Bevenius

    Is this correct behavior?

    Doug Lundin Newbie

      Hi,

      I'm constructing a new message and using the SOAPClient to route it to a SOAP-aware endpoint (exposed by the Intalio workflow product).

      It is correctly reading the WSDL but then the client appears to be reading an XSD that was apparently constructed? Anyway, the constructed XSD is not valid.

      Any suggestions are appreciated.

      Thanks
      Doug

      Here is jboss-esb.xml snippet:























      I'm using Firefox Poster for the POST into the ESB:
      URL: http://158.188.166.22:7777/target/ApprovalAlert
      Content Type: text/xml
      Request:
      <?xml version="1.0"?>
      <soap:Envelope>
      <soap:Body>


      </soap:Body>
      </soap:Envelope>

      This is the Poster Resposne log:
      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Header/> <env:Body> <env:Fault> env:Client org.jboss.soa.esb.couriers.FaultMessageException: org.jboss.soa.esb.actions.ActionProcessingException: soapUI Client Service invocation failed.
      at org.jboss.soa.esb.listeners.message.errors.Factory.createExceptionFromFault(Factory.java:49)
      at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup(TwoWayCourierImpl.java:219)
      at org.jboss.soa.esb.client.ServiceInvoker$EPRInvoker.attemptDelivery(ServiceInvoker.java:537)
      at org.jboss.soa.esb.client.ServiceInvoker$EPRInvoker.access$200(ServiceInvoker.java:452)
      at org.jboss.soa.esb.client.ServiceInvoker.post(ServiceInvoker.java:318)
      at org.jboss.soa.esb.client.ServiceInvoker.deliverSync(ServiceInvoker.java:198)
      at mil.aocws.esb.router.HttpGatewayRouter.process(HttpGatewayRouter.java:74)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:102)
      at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.process(OverriddenActionLifecycleProcessor.java:74)
      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316)
      at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:530)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.jboss.soa.esb.actions.ActionProcessingException: soapUI Client Service invocation failed.
      at org.jboss.soa.esb.actions.soap.SOAPClient.process(SOAPClient.java:412)
      ... 5 more
      Caused by: java.io.IOException: Failed to import WSDL 'http://158.188.166.65:8080/ode/processes/RICoordination6/mainCoordination/Pool/Sysadmin?wsdl'.
      at org.jboss.soa.esb.services.soapui.SoapUIClientService.getWsdlInterfaces(SoapUIClientService.java:318)
      at org.jboss.soa.esb.services.soapui.SoapUIClientService.getOperation(SoapUIClientService.java:325)
      at org.jboss.soa.esb.services.soapui.SoapUIClientService.buildRequest(SoapUIClientService.java:288)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.soa.esb.actions.soap.MBeanSoapUIInvoker.buildRequest(MBeanSoapUIInvoker.java:72)
      at org.jboss.soa.esb.actions.soap.SOAPClient.process(SOAPClient.java:409)
      ... 5 more
      Caused by: com.eviware.soapui.support.SoapUIException: Error importing wsdl
      at com.eviware.soapui.impl.wsdl.WsdlProject.importWsdl(WsdlProject.java:424)
      at com.eviware.soapui.impl.wsdl.WsdlProject.importWsdl(WsdlProject.java:402)
      at org.jboss.soa.esb.services.soapui.SoapUIClientService.getWsdlInterfaces(SoapUIClientService.java:313)
      ... 18 more
      Caused by: org.apache.commons.httpclient.HttpException: Received status code '404' on WSDL HTTP (GET) request: 'http://158.188.166.65:8080/ode/processes/RICoordination6/mainCoordination/Pool/RICoordination6/mainCoordination/Pool/Sysadmin?xsd=xsd0'.
      at org.jboss.soa.esb.services.soapui.EsbWsdlLoader.load(EsbWsdlLoader.java:69)
      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:62)
      at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:412)
      at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:461)
      at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:403)
      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.cacheWsdl(WsdlLoader.java:116)
      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:200)
      at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)
      at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)
      ... 1 more
      </env:Fault> </env:Body></env:Envelope>


      This is the ESB error log:
      03:22:11,034 INFO [STDOUT] HttpGatewayRouter path = /target/ApprovalAlert
      03:22:11,034 INFO [STDOUT] HttpGatewayRouter splitPath = target
      03:22:11,034 INFO [STDOUT] HttpGatewayRouter splitPath = ApprovalAlert
      03:22:11,034 INFO [STDOUT] HttpGatewayRouter Request Content-Type = null
      03:22:11,034 INFO [STDOUT] HttpGatewayRouter Listing Http Properties
      03:22:11,034 INFO [STDOUT] ... org.jboss.soa.esb.message.time.dod=Thu May 21 03:22:11 EDT 2009
      03:22:11,034 INFO [STDOUT] ... HttpVersion=HTTP/1.1
      03:22:11,034 INFO [STDOUT] ... connection=Keep-Alive
      03:22:11,034 INFO [STDOUT] ... org.jboss.soa.esb.message.time.dob=Thu May 21 03:22:11 EDT 2009
      03:22:11,034 INFO [STDOUT] ... accept-encoding=gzip,deflate
      03:22:11,034 INFO [STDOUT] ... accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      03:22:11,034 INFO [STDOUT] ... MethodType=POST
      03:22:11,034 INFO [STDOUT] ... Path=/target/ApprovalAlert
      03:22:11,034 INFO [STDOUT] ... content-length=4
      03:22:11,034 INFO [STDOUT] ... pragma=no-cache
      03:22:11,034 INFO [STDOUT] ... cache-control=no-cache
      03:22:11,035 INFO [STDOUT] ... accept-language=en-us,en;q=0.5
      03:22:11,035 INFO [STDOUT] ... accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7
      03:22:11,035 INFO [STDOUT] ... user-agent=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008120908 Red Hat/3.0.5-1.el5_2 Firefox/3.0.5
      03:22:11,035 INFO [STDOUT] ... x-bluecoat-via=B808F011D71FE26E
      03:22:11,035 INFO [STDOUT] ... content-type=text/xml; charset=UTF-8
      03:22:11,035 INFO [STDOUT] ... host=158.188.166.22:7777
      03:22:11,035 INFO [STDOUT] HttpGatewayRouter calling ServiceInvoker
      03:22:11,058 INFO [STDOUT] HttpGatewayRouter Clear out routeTo
      03:22:11,058 INFO [STDOUT] HttpGatewayRouter Route the message
      03:22:11,060 INFO [STDOUT] GCCS-i3 ApprovalAlert request found:
      03:22:11,061 INFO [STDOUT] [test].
      03:22:11,061 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
      03:22:11,061 INFO [STDOUT] Request map is: {EventStartMessage=test}
      03:22:11,061 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
      03:22:11,061 INFO [STDOUT] log: MyRequestAction:
      03:22:11,061 INFO [STDOUT] [{EventStartMessage=test}].
      03:22:11,066 INFO [STDOUT] Progress: 1 - Caching definition from url [http://158.188.166.65:8080/ode/processes/RICoordination6/mainCoordination/Pool/Sysadmin?wsdl]
      03:22:12,282 WARN [HttpMethodBase] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
      03:22:12,480 ERROR [WsdlContext] Loading of definition failed for [http://158.188.166.65:8080/ode/processes/RICoordination6/mainCoordination/Pool/Sysadmin?wsdl]; org.apache.commons.httpclient.HttpException: Received status code '404' on WSDL HTTP (GET) request: 'http://158.188.166.65:8080/ode/processes/RICoordination6/mainCoordination/Pool/RICoordination6/mainCoordination/Pool/Sysadmin?xsd=xsd0'.
      03:22:12,481 ERROR [STDERR] org.apache.commons.httpclient.HttpException: Received status code '404' on WSDL HTTP (GET) request: 'http://158.188.166.65:8080/ode/processes/RICoordination6/mainCoordination/Pool/RICoordination6/mainCoordination/Pool/Sysadmin?xsd=xsd0'.
      03:22:12,481 ERROR [STDERR] at org.jboss.soa.esb.services.soapui.EsbWsdlLoader.load(EsbWsdlLoader.java:69)
      03:22:12,481 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:62)
      03:22:12,481 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:412)
      03:22:12,481 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:461)
      03:22:12,481 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:403)
      03:22:12,481 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.cacheWsdl(WsdlLoader.java:116)
      03:22:12,481 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:200)
      03:22:12,481 ERROR [STDERR] at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)
      03:22:12,481 ERROR [STDERR] at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)
      03:22:12,481 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      03:22:12,482 ERROR [WsdlProject] Error importing wsdl: org.apache.commons.httpclient.HttpException: Received status code '404' on WSDL HTTP (GET) request: 'http://158.188.166.65:8080/ode/processes/RICoordination6/mainCoordination/Pool/RICoordination6/mainCoordination/Pool/Sysadmin?xsd=xsd0'.
      03:22:12,482 ERROR [STDERR] org.apache.commons.httpclient.HttpException: Received status code '404' on WSDL HTTP (GET) request: 'http://158.188.166.65:8080/ode/processes/RICoordination6/mainCoordination/Pool/RICoordination6/mainCoordination/Pool/Sysadmin?xsd=xsd0'.
      03:22:12,482 ERROR [STDERR] at org.jboss.soa.esb.services.soapui.EsbWsdlLoader.load(EsbWsdlLoader.java:69)
      03:22:12,482 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:62)
      03:22:12,482 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:412)
      03:22:12,483 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:461)
      03:22:12,483 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:403)
      03:22:12,483 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.cacheWsdl(WsdlLoader.java:116)
      03:22:12,483 ERROR [STDERR] at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:200)
      03:22:12,483 ERROR [STDERR] at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)
      03:22:12,483 ERROR [STDERR] at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)
      03:22:12,483 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      03:22:12,483 WARN [ActionProcessingPipeline] Unexpected exception caught while processing the action pipeline: header: [ To: InVMEpr [ PortReference < <wsa:Address invm://746172676574417070726f76616c416c657274/false?false#10000/>, <wsa:ReferenceProperties jbossesb:passByValue : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/invm/> > ] ReplyTo: InVMEpr [ PortReference < <wsa:Address invm://thread-258/>, <wsa:ReferenceProperties jbossesb:passByValue : false/> > ] ]
      org.jboss.soa.esb.actions.ActionProcessingException: soapUI Client Service invocation failed.
      at org.jboss.soa.esb.actions.soap.SOAPClient.process(SOAPClient.java:412)
      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316)
      at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:530)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.io.IOException: Failed to import WSDL 'http://158.188.166.65:8080/ode/processes/RICoordination6/mainCoordination/Pool/Sysadmin?wsdl'.
      at org.jboss.soa.esb.services.soapui.SoapUIClientService.getWsdlInterfaces(SoapUIClientService.java:318)
      at org.jboss.soa.esb.services.soapui.SoapUIClientService.getOperation(SoapUIClientService.java:325)
      at org.jboss.soa.esb.services.soapui.SoapUIClientService.buildRequest(SoapUIClientService.java:288)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.soa.esb.actions.soap.MBeanSoapUIInvoker.buildRequest(MBeanSoapUIInvoker.java:72)
      at org.jboss.soa.esb.actions.soap.SOAPClient.process(SOAPClient.java:409)
      ... 5 more
      Caused by: com.eviware.soapui.support.SoapUIException: Error importing wsdl
      at com.eviware.soapui.impl.wsdl.WsdlProject.importWsdl(WsdlProject.java:424)
      at com.eviware.soapui.impl.wsdl.WsdlProject.importWsdl(WsdlProject.java:402)
      at org.jboss.soa.esb.services.soapui.SoapUIClientService.getWsdlInterfaces(SoapUIClientService.java:313)
      ... 18 more
      Caused by: org.apache.commons.httpclient.HttpException: Received status code '404' on WSDL HTTP (GET) request: 'http://158.188.166.65:8080/ode/processes/RICoordination6/mainCoordination/Pool/RICoordination6/mainCoordination/Pool/Sysadmin?xsd=xsd0'.
      at org.jboss.soa.esb.services.soapui.EsbWsdlLoader.load(EsbWsdlLoader.java:69)
      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:62)
      at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:412)
      at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:461)
      at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:403)
      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.cacheWsdl(WsdlLoader.java:116)
      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:200)
      at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)
      at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)
      ... 1 more
      03:22:12,484 INFO [STDOUT] HttpGatewayRouter (modified): Returning message