[ 
https://issues.apache.org/jira/browse/AXIS2-2751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rudolf Holler updated AXIS2-2751:
---------------------------------

    Attachment: SOAPMonitorAxis2Test.zip

> SoapMonitor creates wrong Response
> ----------------------------------
>
>                 Key: AXIS2-2751
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2751
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: modules
>    Affects Versions: 1.2
>         Environment: JBoss 4.0.2
> Axis 1.2
> Deployed as axis2.war-Directory
>            Reporter: Rudolf Holler
>            Assignee: Glen Daniels
>            Priority: Minor
>         Attachments: SOAPMonitorAxis2Test.zip, Test.wsdl
>
>
> Webservice-Client gets Exception when SoapMonitor is activated :
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement 
> StandardStatus
>       at 
> de.bayern.ihv.ws.kabu.KABUWebServiceStub.fromOM(KABUWebServiceStub.java:1323)
>       at 
> de.bayern.ihv.ws.kabu.KABUWebServiceStub.createKassenAnordnungen(KABUWebServiceStub.java:455)
>       at 
> de.bayern.ihv.ws.kabu.client.KABUWebServiceTest.callcreateKassenAnordnungen(KABUWebServiceTest.java:407)
>       at 
> de.bayern.ihv.ws.kabu.client.KABUWebServiceTest.testcreateKassenAnordnungen(KABUWebServiceTest.java:377)
>       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 junit.framework.TestCase.runTest(TestCase.java:154)
>       at junit.framework.TestCase.runBare(TestCase.java:127)
>       at junit.framework.TestResult$1.protect(TestResult.java:106)
>       at junit.framework.TestResult.runProtected(TestResult.java:124)
>       at junit.framework.TestResult.run(TestResult.java:109)
>       at junit.framework.TestCase.run(TestCase.java:118)
>       at junit.framework.TestSuite.runTest(TestSuite.java:208)
>       at junit.framework.TestSuite.run(TestSuite.java:203)
>       at 
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
>       at 
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: java.lang.RuntimeException: Unexpected subelement StandardStatus
>       at 
> localhost.axis.services.kabuwsimpl.CreateKassenAnordnungenResponse$Factory.parse(CreateKassenAnordnungenResponse.java:469)
>       at 
> de.bayern.ihv.ws.kabu.KABUWebServiceStub.fromOM(KABUWebServiceStub.java:1275)
>       ... 21 more
> The SOAP-Message:
> ==== Response ====
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> X-Powered-By: Servlet 2.4; JBoss-4.0.2 (build: CVSTag=JBoss_4_0_2 
> date=200505022023)/Tomcat-5.5
> Content-Type: text/xml;charset=UTF-8
> Transfer-Encoding: chunked
> Date: Fri, 01 Jun 2007 10:23:44 GMT
> 19b
> <?xml version='1.0' encoding='UTF-8'?>
>    <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>       <soapenv:Body>
>          <ns1:createKassenAnordnungenResponse 
> xmlns:ns1="http://localhost:8080/axis/services/KABUWSimpl";>
>             <ns1:StandardStatus>0</ns1:StandardStatus>
>             <ns1:ErrorMsg>Kein Fehler.</ns1:ErrorMsg>
>             <ns1:ErrorCode>0</ns1:ErrorCode>
>          </ns1:createKassenAnordnungenResponse>
>       </soapenv:Body>
>    </soapenv:Envelope>
> 0
> ==============
> If you disable SOAP-Monitor in axis2.xml (<!-- <module ref="soapmonitor" /> 
> -->) Webserviceclient works fine:
> ==== Response ====
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> X-Powered-By: Servlet 2.4; JBoss-4.0.2 (build: CVSTag=JBoss_4_0_2 
> date=200505022023)/Tomcat-5.5
> Content-Type: text/xml;charset=UTF-8
> Transfer-Encoding: chunked
> Date: Fri, 01 Jun 2007 10:36:18 GMT
> 1ad
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><ns1:createKassenAnordnungenResponse
>  
> xmlns:ns1="http://localhost:8080/axis/services/KABUWSimpl";><ns1:createAnordnungenStatus>0</ns1:createAnordnungenStatus><ns1:errorMsg>Kein
>  
> Fehler.</ns1:errorMsg><ns1:errorCode>0</ns1:errorCode></ns1:createKassenAnordnungenResponse></soapenv:Body></soapenv:Envelope>
> 0
> ==============
> The Webservice works correct if Axis-Version is 1.1.1 and SoapMonitor is 
> active.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to