axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Guldimann <marc.guldimann.j...@gmail.com>
Subject JAX-WS / Axis2 Strange Performance Problem
Date Mon, 10 May 2010 06:47:24 GMT
hi all
i have implemented a jax-ws webservice with axis2 and it works.
i tested many times with soapui and the requests returned in ms.

in netbeans, i generated the java-classes from wsdl to implement a
jax-ws client.
when i tested the performance of the client, it was really poor: 3 - 7
seconds for the same
requests which took 30 - 70 ms in soapui.

i investigated the requests with tcpmonitor and found the problem:
a) it is the server (tomcat 6 with axis2 1.5.1) that is taking his time
b) jax-ws generated the xml-payload flat (in one string). as soon as i
inserted a linebread after the <S:Body> tag (soapbody) the same
request from jax-ws client returned in ms as well!

Example Request SLOW:
POST /axis2/services/TaxService.TaxServiceHttpSoapEndpoint/ HTTP/1.1
Content-type: text/xml;charset=utf-8
Accept: text/xml, multipart/related
Soapaction: ""
User-Agent: JAX-WS RI 2.2-hudson-752-
Host: 127.0.0.1:8080
Connection: keep-alive
Content-Length: 1356
<?xml version='1.0' encoding='UTF-8'?><S:Envelope
xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:est
xmlns:ns2="http://www.sbi.ch/ccc/tax/v1"
xmlns:ns3="http://www.sbi.ch/ccc/taxResponse/v1">....and so on
-------------------------------------------------------
Example Request FAST:
POST /axis2/services/TaxService.TaxServiceHttpSoapEndpoint/ HTTP/1.1
Content-type: text/xml;charset=utf-8
Accept: text/xml, multipart/related
Soapaction: ""
User-Agent: JAX-WS RI 2.2-hudson-752-
Host: 127.0.0.1:8080
Connection: keep-alive
Content-Length: 1356
<?xml version='1.0' encoding='UTF-8'?><S:Envelope
xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body>

<ns2:est xmlns:ns2="http://www.sbi.ch/ccc/tax/v1"
xmlns:ns3="http://www.sbi.ch/ccc/taxResponse/v1">....and so on



2 questions:
1. i don't understand why/where the problem is in axis2
2. i tried to set the jax.formatted.output-property to "yes", but i
dont have access to the marshaller with the generated code. is it
possible?

ps: i have solved the problem for now using the dispatch-method of
jax-ws client, but still i would like to have an idea if there is a
solution to it.

thanks for your help.
marc

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Mime
View raw message