web-services

How to see the username on a WCF call trace

懵懂的女人 提交于 2021-02-11 12:41:02
问题 I have the following problem. I'm connecting to a Java SOAP service using WCF. On the java logs there seems to be a problem where the last user credentials are being sent instead of the current one, although just for the first call that the user makes. The problem is that I don't control the Java side and I don't know if the problem is with them as I can't find a place in my code where I think this may be happening. I want to confirm that the username that we are sending is the same one that

Dynamic web service client from wsdl

半腔热情 提交于 2021-02-11 06:16:51
问题 One of my system need to invoke SOAP based webservices. As of now, for every new webservices, I generate Java stubs from the provided WSDL file and redeploy the web application with new webservice consumer code. Is there a good approach to dynamically create a webservice client that can invoke the methods from the provided WSDL files? All I am expecting is put the WSDL file in the location that can be accessed by the web application invoke the Servlet with a keyword having the wsdl file name,

Runtime exception with jersey - java.lang.AbstractMethodError

泪湿孤枕 提交于 2021-02-10 18:09:04
问题 I am trying to execute a RESTful web service deployed on tomcat using Jersey implementation. Following is the resource class @Path("/rest") public class PatientResource { PatientService patientService; @GET @Path("/patient/{patientId}") @Produces(MediaType.APPLICATION_JSON) public Patient getPatientDetails(@PathParam("patientId") String patientId) { //return patientService.getPatientDetails(patientId); return new PatientService().getPatientDetails(patientId); } @GET @Path("/patients")

wcf and session asmx rewrite with Silverlight

谁都会走 提交于 2021-02-10 16:18:01
问题 I have a web service that uses Session. I want to rewrite it as an WCF that can be hosted outside IIS. What is the best way to replace session using WCF that wont tie me to IIS in my rewrite? At first I was happy because of wsHttpBinding. Then I read that Silverlight can not use this and I was sad. How can this be accomplished. 回答1: Badly. I think Silverlight doesn't support any http based binding which would allow you creating stateful WCF service. You can make stateful WCF service with net

Changing wsdl:part name

梦想的初衷 提交于 2021-02-10 11:13:44
问题 Is there any way of changing the name of a message part in the WSDL? I have this on my WSDL: <wsdl:message name="getDataRequestMsg"> <wsdl:part name="getData" element="tns:getData"/> </wsdl:message> <wsdl:message name="getDataRequestMsg_Headers"> <wsdl:part name="Header" element="tns:Header"/> </wsdl:message> <wsdl:message name="getDataResponseMsg"> <wsdl:part name="getDataResponse" element="tns:getDataResponse"/> </wsdl:message> <wsdl:message name="getDataResponseMsg_Headers"> <wsdl:part

Changing wsdl:part name

霸气de小男生 提交于 2021-02-10 11:02:01
问题 Is there any way of changing the name of a message part in the WSDL? I have this on my WSDL: <wsdl:message name="getDataRequestMsg"> <wsdl:part name="getData" element="tns:getData"/> </wsdl:message> <wsdl:message name="getDataRequestMsg_Headers"> <wsdl:part name="Header" element="tns:Header"/> </wsdl:message> <wsdl:message name="getDataResponseMsg"> <wsdl:part name="getDataResponse" element="tns:getDataResponse"/> </wsdl:message> <wsdl:message name="getDataResponseMsg_Headers"> <wsdl:part

ServiceStack: async/await service handlers

纵然是瞬间 提交于 2021-02-10 07:25:21
问题 I have read a few SO questions that touches in this question, even though many of them are several years old: How do you write a Service handler in ServiceStack API so that it becomes async/await? There are no docs on docs.servicestack.net that mentions async/await at all, I just find some community forum posts. I think that the only thing you need to do, to change this non-async method: public GetBookingResponse Get(GetBooking getBooking) { Booking booking = _objectGetter.GetBooking

get the data from web service response in retrofit android

三世轮回 提交于 2021-02-08 11:52:26
问题 i am working on retrofit from four days. I learnt how to get the data from web service but now i stuck with this response. please any one tell me how to get the data from web service. how to get the operator id,operator, RechareTypes array of strings. Please any one help me. Thanks in advance. my code: operator: public class Operator { @Expose private String OperatorID=""; @Expose private String ServiceTypeID=""; public String getServiceTypeID() { return ServiceTypeID; } public void

Limit number of calls to RESTful service

爷,独闯天下 提交于 2021-02-08 10:56:36
问题 we have a RESTful service deployed on multiple nodes and we want to limit the number of calls coming to our service from each client with different quota for each client per minute. our stack : Jboss application server, Java/Spring RESTful service. What cloud be the possible technique to implement this? 回答1: Sometimes ago I read a good article where the same theme was highlighted. The idea is to move this logic into load balancing proxy and here some good reasons to do it: Eliminates

Limit number of calls to RESTful service

时间秒杀一切 提交于 2021-02-08 10:53:28
问题 we have a RESTful service deployed on multiple nodes and we want to limit the number of calls coming to our service from each client with different quota for each client per minute. our stack : Jboss application server, Java/Spring RESTful service. What cloud be the possible technique to implement this? 回答1: Sometimes ago I read a good article where the same theme was highlighted. The idea is to move this logic into load balancing proxy and here some good reasons to do it: Eliminates