web-services

Remap JAX-WS address

China☆狼群 提交于 2020-01-02 09:55:13
问题 My problem is that I have a web service that gets published by jboss at http://localhost:8080/A , where A is the service implementation class; I want a custom url http://localhost:8080/B/C/D.ws . In the wsdl, soap:address is correctly set http://localhost:8080/B/C/D.ws . During war deployment, service gets published at the "wrong" address: INFO [org.jboss.ws.cxf.metadata] Adding service endpoint metadata: id=org.example.ServiceImpl address=http://localhost:8080/ServiceImpl ... The best I got

Creating a Google HTTP Transport Object for Android HTTP Request

余生长醉 提交于 2020-01-02 08:56:32
问题 I'm creating an Android app and trying to use Google Places API through Google APIs Client. I've been following this example: http://ddewaele.blogspot.com/2011/05/introducing-google-places-api.html I'm having problems creating a HTTP Transport Object to use in creating the HTTP Request Factory. Everything compiles fine in eclipse, but when I debug while running on my phone, I get a classnotfound on the first line here: HttpTransport transport = new ApacheHttpTransport(); HttpRequestFactory

Custom Jersey Error Handling, how to catch response at client side?

喜你入骨 提交于 2020-01-02 08:34:17
问题 I'm trying out some custom error handling on my webservice. In my webservice, I created a custom Exception class extending WebApplicationException as described in JAX-RS / Jersey how to customize error handling? : public class InternalServerErrorException extends WebApplicationException { public InternalServerErrorException(String message) { super(Response.status(Response.Status.INTERNAL_SERVER_ERROR) .header("errorMessage", message).type(MediaType.TEXT_PLAIN).build()); System.out.println

Custom Jersey Error Handling, how to catch response at client side?

╄→尐↘猪︶ㄣ 提交于 2020-01-02 08:34:13
问题 I'm trying out some custom error handling on my webservice. In my webservice, I created a custom Exception class extending WebApplicationException as described in JAX-RS / Jersey how to customize error handling? : public class InternalServerErrorException extends WebApplicationException { public InternalServerErrorException(String message) { super(Response.status(Response.Status.INTERNAL_SERVER_ERROR) .header("errorMessage", message).type(MediaType.TEXT_PLAIN).build()); System.out.println

Convert PictureStream to HTML5 canvas

柔情痞子 提交于 2020-01-02 08:30:27
问题 I am retrieving a byte array of a pictureStream from a .net webservice. the JSON byte array response looks like this: [137, 80, 78, 372, 617 more...] I am trying to convert this byte array and draw it into an HTML canvas like this var context = document.getElementById('boxcover').getContext('2d'); context.putImageData(movies.PictureStream, 0, 0); But this doesn't work. I have no access the modify the webservice, so I am looking to convert this byte array into a picture using Javascript only.

how do you pass parameters in asmx using Flexigrid?

拜拜、爱过 提交于 2020-01-02 08:29:22
问题 here's my code: $('#flex1').flexigrid({ method: 'POST', url: '/services/MHService.asmx/GetSurgicalHistory', dataType: 'xml', colModel: [ { display: 'Surgical Procedure', name: 'SurgicalProcedure', width: 120, sortable: true, align: 'left' }, { display: 'Notes', name: 'Notes', width: 120, sortable: true, align: 'left' }, { display: 'Complications', name: 'Complications', width: 120, sortable: true, align: 'left' } ], searchitems: [ { display: 'Surgical Procedure', name: 'SurgicalProcedure' },

Can I create a web service that streams a pdf for download

£可爱£侵袭症+ 提交于 2020-01-02 08:25:29
问题 I don't have much experience with web services, but I think I have a problem for which a web service would work great. My company has just purchased a .net version of Cete Pdf Merger (great product btw). We use both .Net & asp code and will likely use java in the future as well. The scenario is that one technology (asp, java, .net) would have a list of raw data such as an array of field names & values. This data would be posted to the web service that would then open a given pdf, match pdf

Consuming .NET ASMX Web Service from mule esb throws CXF Exception: 401 Unauthorized

陌路散爱 提交于 2020-01-02 08:18:51
问题 I have a .NET ASMX web service in a different server and I have installed the mule standalone CE 3.4 in another server. I have a very simple flow which needs to call this .NET web service and pass two string parameters. <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring=

Android ListView With Toggle Button Web Service

[亡魂溺海] 提交于 2020-01-02 07:51:10
问题 The problem is, onCheckedChange() methods get called repeatedly and the phone runs out of memory. When I take the calls to the AsyncTask out of the checkedChange method it works fine. Or if I take the setChecked() calls out it works fine as well. But I have to have those methods in there for this portion of the application to make sense. The WebService calls are super short but have to be toggled from the Toggle button. I would like you to share some of your thoughts and opinions. private

C# Problem authenticating webservice between two webapplications

六眼飞鱼酱① 提交于 2020-01-02 07:43:58
问题 I'm working on a webapplication which runs central at a company. This webapplication needs to make a call to a service which is part of a second webapplication. In the central webapplication i have this piece of code; var clientUri = "http://website.localhost/Services/Info.svc/account"; var uri = new Uri(clientUri); var networkCredentials = new NetworkCredential(_configuration.ServiceUserName, _configuration.ServicePassword); var httpClient = new HttpClient(); httpClient.DefaultHeaders