java - invoke a SOAP service. Error 404 filter is unavailable -
i calling soap service java function, when call service, gives error : http/1.1 404 not found [content-type: text/html;charset=utf-8, $wsep: , content-language: en-us, content-length: 97, connection: close, date: tue, 12 may 2015 05:21:40 gmt, server: websphere application server/7.0]
here code :
public string callwebservice(string serviceurl, string request) { string strresponse = ""; try { httppost httppost = new httppost(serviceurl); stringentity stringentity = new stringentity(request); stringentity.setchunked(true); httppost.setentity(stringentity); httppost.setentity((httpentity) stringentity); httppost.addheader("accept", "text/xml"); httppost.addheader("soapaction", ""); httppost.setheader("content-type", "text/xml;charset=utf-8"); httppost.setheader("method", "post"); httpclient httpclient = new defaulthttpclient(); httpresponse response = httpclient.execute(httppost); httpentity entity = response.getentity(); strresponse = null; if (entity != null) { strresponse = entityutils.tostring(entity); } } catch (exception e) { } return strresponse; }
the raw response mentioned above.
the response strresponse = entityutils.tostring(entity);
: error 404: javax.servlet.servletexception: filter [crminboundwsdlfilter]: filter unavailable.
any thing doing wrong ?
the request calling working on same url using webservice studio client.
i using wsdl end point url, why wasn't calling service. checked entering url being generated studio called it. successful.
Comments
Post a Comment