java - JAX-WS issuing GET then GET and POST -
i wrote jax-ws client using classes generated wsimport invoke webservice. test client locally, wrote implementation of webservice , published locally , called it. worked expected.
one thing noticed client connects endpoint , issues followed connection against endpoint looking wsdl, , issues post payload in same connection.
here tcpmon output (edited protect guilty):
get /somews http/1.1 user-agent: java/1.7.0_03 host: 127.0.0.1:9877 accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 connection: keep-alive ---------------------------------- /somews?wsdl http/1.1 user-agent: java/1.7.0_03 host: 127.0.0.1:9877 accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 connection: keep-alive post /somews http/1.1 accept: text/xml, multipart/related content-type: text/xml; charset=utf-8 soapaction: "document/http://someurl" user-agent: jax-ws ri 2.2.4-b01 host: 127.0.0.1:9877 connection: keep-alive content-length: 610 <valid soap message here/>
is standard behaviour or have messed up? using jax-ws ri 2.2. works fine locally, production ws quite unhappy initial request , throws 500 , hoping suppress requests , skip post.
the client not caching wsdl file locally , hence see request before every post. getting wsdl file , post actual web service request. ask client cache wsdl locally , refer it.
Comments
Post a Comment