web-services

Play framework - pass multiple images in a post request

陌路散爱 提交于 2019-12-25 02:58:04
问题 WHAT I DID: I am developing Rest web services using POST method in the play framework(Using Java). I did create simple web service POST API and also called it from the client side. WHAT I WANT: In this I want to pass multiple images as parameters in the request to the service from the client side(android/IOS/web). But I didn't get any APIs/Tutorials regarding this. I did try to pass one image to the service. But when I pass the Image request, I am getting the null in the line "FilePart file =

GAE Restful Web Service in Java

北城以北 提交于 2019-12-25 02:55:07
问题 I want to develop restful web service in java for google app engine. the tools i am using are Eclipse Kepler Service Release 2 (Build id: 20140224-0627) Google AppEngine Java SDK 1.9.2 i have used many versions of Jersey, e.g. 1.8, 1.5 etc. if i run the project on local server it works fine but when i deploy it on the google app engine i can able to open the welcome web page but can't able to access web service. as mentioned in https://code.google.com/p/googleappengine/wiki/WillItPlayInJava

Is it possible to rename th response namespace-prefix in a Spring WS webservice?

陌路散爱 提交于 2019-12-25 02:53:58
问题 I've build a Spring WS webservice based on the example at http://spring.io/guides/gs/producing-web-service/. The response contains my namespace with the prefix "ns2". xmlns:ns2="http://www.mycompany.com/somewhere" Soap-Response <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <ns2:mitteilungResponse xmlns:ns2="http://www.mycompany.com/somewhere"> <ns2:responseContent> <ns2:message>Hello World!</ns2:message> </ns2:responseContent

set contextpath for EJB3 webservice on Weblogic 11g

喜你入骨 提交于 2019-12-25 02:42:44
问题 I build a web service with ejb3 and maven (EAR File),code First, JAXWS, Without WSDL and without WAR, only ejb , with Eclipse, the service works in JBOSS but now i need put the service in Weblogic 11g . With JBOSS i have the annotation @WebContext(contextRoot="/wsManCa7", urlPattern="/manCA7WS") But on Weblogic not, I found this link http://erikwramner.wordpress.com/2012/03/26/ejb3-web-service-context-path-in-weblogic-11g/ to create weblogic-webservices.xml and webservices.xml I put the files

WSDL Client Not Working

 ̄綄美尐妖づ 提交于 2019-12-25 02:42:10
问题 I have a wsdl : <?xml version="1.0" encoding="UTF-8"?> <wsdl:part element="impl:getIMIPremiumResponse" name="parameters"> </wsdl:part> <wsdl:part element="impl:getIMIPremium" name="parameters"> </wsdl:part> <wsdl:operation name="getIMIPremium"> <wsdl:input message="impl:getIMIPremiumRequest" name="getIMIPremiumRequest"> </wsdl:input> <wsdl:output message="impl:getIMIPremiumResponse" name="getIMIPremiumResponse"> </wsdl:output> </wsdl:operation> <wsdlsoap:binding style="document" transport=

ASMX consume as WCF service and additional argumnet of method is HEADER, what should pass for HEADER

那年仲夏 提交于 2019-12-25 02:41:14
问题 I had consumed ASMX service in vs 2008. and at that time, calling method is look as below: PostTravelData(TravelTransaction) //NOTE: property - "TOKENID" was set before calling to this method. Now, I have used same ASMX service into VS2012 and added as service reference so, it consumed as WCF service. NOw, in method signature has one additional argumnet called - "HEADER". so signature looks as below: PostTravelData(Header,TravelTransaction OUT TravelTransactionResponse) Please suggest me what

Adobe Flex 4.6 WebService request timeout

徘徊边缘 提交于 2019-12-25 02:34:15
问题 The code to get connected to my WebService (Lotus Notes Database) is created by the Flash Builder over "Data/Connect with WebService...". All works fine, but I have a problem to increase the request timeout. The API says that you can set the request timeout like this: _serviceControl.requestTimeout = 300; On a iOS (iPad) it seems to be work all fine. But if I run my app on desktop or on an android smartphone this only works if I set up the request timeout lower than ~30 seconds. If I don't

mod_rewrite: match string within URL, which regex to chose?

允我心安 提交于 2019-12-25 02:30:05
问题 I would like to use mod_rewrite to capture a string within brackets in my URL and do a redirect. My URL: something?var_a=A&var_b=(B)&var_c=C my .httaccess file with the regex: RewriteEngine on RewriteRule ^/?.+var_b=\((.*)\)$ somedir/$1 [R] I just would like to capture what's in between the round brackets, so my redirect should look something like this: somedir/B I test my regex at http://htaccess.madewithlove.be/ but I get no match. I don't know what I am missing here, even if I try much

CURL not working for SOAP enveloped XML request

主宰稳场 提交于 2019-12-25 02:28:49
问题 I tried to get response from SOAP request using CURL but can't get any success. I got error like, The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. I used code, $envelope = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://schemas.tourico.com/webservices/authentication" xmlns:hot="http://tourico.com/webservices/hotelv3" xmlns:hot1="http://schemas.tourico.com/webservices/hotelv3"> <soapenv:Header

Pass an array to a SOAP web service for inserting into remote database

你说的曾经没有我的故事 提交于 2019-12-25 02:28:40
问题 I want to pass an array from my Android application to my SOAP webservice using the ksoap libraries available. My array looks like this: String[] values={"abc","def"}; How to pass this as a parameter to my web service call? Can anyone please help me out ? This is my web service code : public class Service1 : System.Web.Services.WebService { [WebMethod] public String getnames(String[] values) { try { using (SqlConnection myConnection = new SqlConnection(@"Data Source=.\SQLEXPRESS;Initial