web-services

Generate webservice from WSDL with Document/literal format

放肆的年华 提交于 2020-01-01 12:02:33
问题 I am having troubles generating a WS from a WSDL by means of wsimport. The WSDL is the TMDD v3.0 standard specification (WSDL and related XSD files can be found here) According to this article from IBM the WSDL seems to be in Document/literal format. In order to get the WSDL compiled I have created some bindings/tweaks however I am stuck at this error (it does not generate a method since the operation has more than one part): [WARNING] Ingoring operation "DlFullEventUpdateSubscription": more

How to return objects to the Pool by timeout using apache commons pool

馋奶兔 提交于 2020-01-01 11:40:08
问题 I'm using Apache Commons Pool library to maintaing a pool of couchbase connections (can be seen as any kind of connection, doesn't really matter). The problem I'm facing is that the only way I've found to return objects to the pool is to do it programmatically by calling the returnObject method from the GenericObjectPool class. This forces the application to guarantee the return of the object once is borrowed from the pool, regardless any exception or unexpected behavior in the application.

How to return objects to the Pool by timeout using apache commons pool

亡梦爱人 提交于 2020-01-01 11:40:07
问题 I'm using Apache Commons Pool library to maintaing a pool of couchbase connections (can be seen as any kind of connection, doesn't really matter). The problem I'm facing is that the only way I've found to return objects to the pool is to do it programmatically by calling the returnObject method from the GenericObjectPool class. This forces the application to guarantee the return of the object once is borrowed from the pool, regardless any exception or unexpected behavior in the application.

change the soap:address location in generated wsdl

主宰稳场 提交于 2020-01-01 10:58:27
问题 I am using JAX-WS annotation to create soap services running on JBOss 5.1.0 G.A, the generates WSDL has got the following bit at the end - <service name="DataServiceService"> <port binding="tns:DataServiceBinding" name="DataServicePort"> <soap:address location="http://mymachine:8080/myapp/webservice" /> </port> </service> I have made the service https enabled on port 8443, I am able to connect to the service using the right protocol and port number but is there is a way to change the soap

change the soap:address location in generated wsdl

浪子不回头ぞ 提交于 2020-01-01 10:57:07
问题 I am using JAX-WS annotation to create soap services running on JBOss 5.1.0 G.A, the generates WSDL has got the following bit at the end - <service name="DataServiceService"> <port binding="tns:DataServiceBinding" name="DataServicePort"> <soap:address location="http://mymachine:8080/myapp/webservice" /> </port> </service> I have made the service https enabled on port 8443, I am able to connect to the service using the right protocol and port number but is there is a way to change the soap

Is it possible to make a JSONP request from HTTPS to HTTP?

杀马特。学长 韩版系。学妹 提交于 2020-01-01 10:43:28
问题 I know there is an almost duplicate question, but the answer is not satisfactory at all. I need to do geocoding using the Openstreetmap service which runs over HTTP. My site runs over HTTPS. It seems impossible to do JSONP request from https to http, browser (Chrome) complains about insecure content. Any solutions? 回答1: The reason that the browser complains about insecure content is that the content is insecure. The entire purpose with a secure page is that all of it is secure, and can be

How to get multipartentity from httpservletrequest

心已入冬 提交于 2020-01-01 10:29:41
问题 I am trying to invoke a webservice from java spring controller. Below is the code private void storeImages(MultipartHttpServletRequest multipartRequest) { DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost postRequest = new HttpPost( "http://localhost:8080/dream/storeimages.htm"); MultipartFile multipartFile1 = multipartRequest.getFile("file1"); MultipartEntity multipartEntity = new MultipartEntity( HttpMultipartMode.BROWSER_COMPATIBLE); multipartEntity.addPart("file1", new

Generating WCF proxy against untrusted SSL endpoint

回眸只為那壹抹淺笑 提交于 2020-01-01 10:09:36
问题 I need to generate a WCF proxy for a service exposed by our client. The service is locked down pretty tightly, so this is proving difficult. Also, I'm new to WCF, so I may be missing something obvious... The client has only opened up their firewall to our production server - so I can't generate the proxy from Visual Studio on my dev machine. Also, the service is only exposed over HTTPS. And it requires us to authenticate using a client certificate... I was hoping to run svcutil on the

A java.lang.ClassCastException while accessing web service method written in java. jaxb

倖福魔咒の 提交于 2020-01-01 10:05:47
问题 I am writing an application where i have to interact with MS SQL database. In my application i am creating web services (using javax.jws) for accessing database tables. i am creating one operation(method) in web service with return type java.lang.Object[][] as follows : @WebMethod(operationName = "get_HistoryInfoByUser") public java.lang.Object[][] get_HistoryInfoByUser(@WebParam(name = "email_Id") String email_Id) throws Exception{ java.lang.Object[][] historyInfo = null; // some code here

A java.lang.ClassCastException while accessing web service method written in java. jaxb

老子叫甜甜 提交于 2020-01-01 10:05:32
问题 I am writing an application where i have to interact with MS SQL database. In my application i am creating web services (using javax.jws) for accessing database tables. i am creating one operation(method) in web service with return type java.lang.Object[][] as follows : @WebMethod(operationName = "get_HistoryInfoByUser") public java.lang.Object[][] get_HistoryInfoByUser(@WebParam(name = "email_Id") String email_Id) throws Exception{ java.lang.Object[][] historyInfo = null; // some code here