前景提要
HDC调试需求开发(15万预算),能者速来!>>>
这几天一直在做接口开发,无奈接口一直调不通,很是痛苦,求助
我的webservice接口是用axis2 1.6.1 发布的,用自己写的测试类能访问,在浏览器中浏览?wsdl也正常,soapui测试也能调通,但客户那边死活调不通,而且用户那边没有开发人员,已经不知道接口是怎么调用的了,无奈只能抓包看请求,大家看看这是什么原因照成的接口不通,客户那边怎么调的啊?
下面是我自己调接口时抓包情况
请求
.2...+....uOa."P.@).=..POST /sjjs/services/AuthSync HTTP/1.1 Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_C20565CA2368702C271473486841111; type="application/xop+xml"; start="<0.urn:uuid:C20565CA2368702C271473486841111@apache.org>"; start-info="text/xml"; charset=UTF-8 SOAPAction: "http://myserver.example/DoSomething" User-Agent: Axis2 Host: 10.1.50.211:11141 Transfer-Encoding: chunked
参数 .2...+.....Oa."P.@).R..22a --MIMEBoundaryurn_uuid_C20565CA2368702C271473486841111 Content-Type: application/xop+xml; charset=UTF-8; type="text/xml" Content-Transfer-Encoding: binary Content-ID: <0.urn:uuid:C20565CA2368702C271473486841111@apache.org> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><syncU xmlns="http://webservice.wwd.com/xsd"><arg0 xmlns="">gf</arg0></syncU></soapenv:Body></soapenv:Envelope> --MIMEBoundaryurn_uuid_CC20565CA2368702C271473486841111-- 0 这样我测试是通过的,接口能正常工作,正常返回。
客户调用抓包:
请求 ......W.POST /axis2/services/tyqxInterface HTTP/1.1 Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 SOAPAction: Content-Type: text/xml; charset=utf-8 Content-Length: 1180 User-Agent: Java1.6.0_05 Host: 10.10.10.1:8080 Connection: Keep-Alive
参数 .e'......k.RV............. ......W. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <ns2:syncU xmlns:ns2="http://www.ssa.com/isc/service/"> <UserList><USER_ID>1115</USER_ID><LOGIN_NAME>hhhs</LOGIN_NAME><REAL_NAME>.........</REAL_NAME> <USER_STATUS>1</USER_STATUS><BIZORG_ID>15648as5d456</BIZORG_ID><EMPLOY_NO>2300131144</EMPLOY_NO> <UPDATE_DATE>2016-09-10 13:49:01.075</UPDATE_DATE><IS_DELETED>0</IS_DELETED></UserList></ns2:syncU></SOAP-ENV:Body></SOAP-ENV:Envelope>
接口内有异常捕获,任何异常都捕捉了。 问题就是,客户死活掉不通,tomcat报transport.http.axisServlet java.lang.StringIndexOutOfBound。
求解