|
Title: Test request - conplex xsd Post by: Javier on July 05, 2007, 11:11:36 am I have a problem with i create a new step: Test request.
the steps are: - the tool generate a automatic request (xsd). - the endpoint is http://localhost/... ( mockservice) - submit request - response --> OK - modify endpoint to specific url : http://maq:port/.. ( web service ) - submit request - response --> fault - modify xsd request by xml request - submit request - response --> OK the problem maybe because some nodes are very complex, wsdl example: ... <xs:element maxOccurs="unbounded" name="aplicaciones" nillable="true" type="ax21:Aplicacion" /> ... <xs:element name="Aplicacion" type="ax21:Aplicacion" /> <xs:complexType name="Aplicacion"> <xs:sequence> <xs:element name="idAplicacion" type="xs:long" /> <xs:element maxOccurs="unbounded" name="nodos" nillable="true" type="ax21:Concentrador" /> <xs:element name="nombreAplicacion" nillable="true" type="xs:string" /> <xs:element maxOccurs="unbounded" name="tareas" nillable="true" type="ax21:Tarea" /> <xs:element name="url" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> thanx alot!!! Javier Title: Re: Test request - conplex xsd Post by: omatzura on July 05, 2007, 11:38:58 am Hi Javier..
hmm.. it's hard to say.. I have 2 questions: 1) can you show the fault message you are getting back from your webservice? 2) What modifications are you making in "modify xsd request by xml request" to get your request working? regards! /Ole eviware.com Title: Re: Test request - conplex xsd Post by: Javier on July 06, 2007, 09:27:40 am 1. the fault message is:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Client</faultcode> <faultstring>java.lang.RuntimeException: Unexpected subelement aplicaciones</faultstring> <detail> <Exception>org.apache.axis2.AxisFault: java.lang.RuntimeException: Unexpected subelement aplicaciones at org.apache.axis2.AxisFault.makeFault(AxisFault.java:381) at com.xx.ame4t.itg.controldeprocesos.interfaz.itg_controlprocesosservicio.ITG_ControlProcesosMessageReceiverInOut.invokeBusinessLogic(ITG_ControlProcesosMessageReceiverInOut.java:163) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:144) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:279) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:116) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement aplicaciones at com.xx.ame4t.itg.controldeprocesos.interfaz.itg_controlprocesosservicio.ITG_ControlProcesosMessageReceiverInOut.fromOM(ITG_ControlProcesosMessageReceiverInOut.java:468) at com.xx.ame4t.itg.controldeprocesos.interfaz.itg_controlprocesosservicio.ITG_ControlProcesosMessageReceiverInOut.invokeBusinessLogic(ITG_ControlProcesosMessageReceiverInOut.java:67) ... 25 more Caused by: java.lang.RuntimeException: Unexpected subelement aplicaciones at com.xx.xx.modelonodosyprocesos.model.xsd.Aplicacion$Factory.parse(Aplicacion.java:749) at com.xx.xx.modelonodosyprocesos.model.xsd.Concentrador$Factory.parse(Concentrador.java:741) at com.xx.xx.modelonodosyprocesos.model.xsd.Aplicacion$Factory.parse(Aplicacion.java:765) at com.xx.xx.modelonodosyprocesos.model.xsd.ParametrosEjecucion$Factory.parse(ParametrosEjecucion.java:903) at com.xx.xx.modelonodosyprocesos.model.xsd.Proceso$Factory.parse(Proceso.java:438) at com.xx.ame4t.itg.controldeprocesos.interfaz.itg_controlprocesosservicio.types.EjecutaProceso$Factory.parse(EjecutaProceso.java:303) at com.xx.ame4t.itg.controldeprocesos.interfaz.itg_controlprocesosservicio.ITG_ControlProcesosMessageReceiverInOut.fromOM(ITG_ControlProcesosMessageReceiverInOut.java:399) ... 26 more</Exception> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> 2.sorry, i'd want to say: "change xsd request by xml request". for example: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns2:ejecutaProceso xmlns:ns2="http://ITG_ControlProcesosServicio.interfaz.controldeprocesos.itg.com/types"> <param0 xmlns="http://ITG_ControlProcesosServicio.interfaz.controldeprocesos.itg.com/types"> <parametrosEjecucion xmlns="http://model.modelonodosyprocesos.tg.com/xsd"> ... <concentrador> <aplicaciones xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/> <codConcentrador>NODO_PRUEBA_C</codConcentrador> <estadoAdministrativo xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/> <estadoSistema xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/> <fechaEstadoAdministrativo>2007-06-23T08:51:35.765Z</fechaEstadoAdministrativo> <fechaEstadoSistema>2007-06-23T08:51:35.765Z</fechaEstadoSistema> </concentrador> .... .... </param0> </ns2:ejecutaProceso> </soapenv:Body> </soapenv:Envelope> thanx alot!!! Title: Re: Test request - conplex xsd Post by: omatzura on July 06, 2007, 09:36:09 am Hi!
thanks.. but unfortunately I still do not understand what change you are making to get it to work.. could you please post or mail me (ole@eviware.com): 1) the request that does not work 2) the modified request that works 3) the associated wsdl/schema thanks! regards, /Ole eviware.com |