FAQ Database Discussion Community


Not able to create a WCF RestFul Service's client

asp.net,web-services,wcf,rest
I am newbie with web services. I am trying to create a WCF Restful web service . I have implemented a simple service that accepts parameter name and when the client requests the service it prints hello with name. I have created a web client and added the reference of...

How to make my web service url case insensitive?

web-services,wsdl,axis2
I have generated a web service from an existing wsdl file using Axis2, and now my service is reachable by a url http://something/Service?wsdl The problem is, there are some applications which call this url, adding an upper case word "WSDL" at the end of url (please don't ask why..), so...

Nested JQuery Function Returns 'undefined' or '[object Object]'

javascript,jquery,web-services,getjson,webservice-client
Hello Friends on StackOverflow: I am struggling to find what is causing a nested jQuery function to return values of 'undefined' or '[object Object]'. I have commented the location of the first function, which contains the function call. I can see from my research into this subject I am not...

Spring service and Spring web app in one

spring,web-services,rest,spring-mvc,web
I'm making a Spring RESTFUL service and i wonder. Can I make a Spring RESTFUL service combine with a web app in a project. If it is possible, how to configure it? ....

How to consume multipart/form data request in C# mvc 4 webservice

c#,asp.net-mvc,web-services,wcf,asp.net-mvc-4
I created a web service for file upload. When I call this webservice I can't find multipart-form data request. If I call this webservice without a file then it will working fine. My code is: Interface code: [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, Method = "POST", ResponseFormat = WebMessageFormat.Json, UriTemplate = "/GetStream")]...

Use web service As Datasource in CRM reporting

web-services,reporting-services,dynamics-crm-2011,ssrs-2012
I working with Reporting Service (SSRS) on CRM 2011 then I want to use Web Service as DataSource. I make simple web service that query data from CRM Database (not Filtered) then I call it's from report preview on VS2012 It's work fine but When I deploy my Report in...

Calling java webservice from Android using ksoap2: parameters are all null

java,android,web-services,jax-ws,android-ksoap2
I'm using the ksoap2-android library to call a java jax-ws webservice from an Android application. The problem is that while the method I request is actually called correctly, all its parameters (which are all simple strings) are always null! Here's my code: jax-ws webservice: @WebService(targetNamespace="webservices.delta.elia.unipd") public class DeltaUploadService { @WebMethod(operationName...

Parse error with empty date from webservice

c#,web-services
I get a response from a webservice which contains <EndDate/>. The field has minOccurs="0" in WSDL. <xsd:element name="EndDate" type="p8:Date" minOccurs="0"> When I look in Fiddler I see the data arrive, but VS crashes on parsing with the error: The string is not recognized as a valid DateTime . Is this...

Not receiving response from server: Java.net.SocketException: recvfrom failed: ECONNRESET

java,android,mysql,web-services,server
I am trying to read data from the server based on the input given by the user. I am receiving the socket exception when trying to read from the server. Please any on let me know what mistake am I doing. I am trying to execute the application from my...

IOS Swift Soap Message with Ampersand in value

ios,web-services,swift,soap,encoding
I have the following code to call web service from my IOS Swift application. (The code is execute when a button on the page is pressed.) The challenge is with the value for Hours. When the ampersand is in the value, I get an http error code 400. When I...

Parsing XML with same parent and child node name

c#,xml,web-services,soap
My partner provided me a SOAP web service that returns a XML in this format: <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:RestControllerwsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Body> <ns1:getInfoResponse> <return...

Soap envelope namespace prefix in Java web service

java,web-services
I am trying to change prefix for soap envelope in response of web-service from S="http://schemas.xmlsoap.org/soap/envelope/" to soap="http://schemas.xmlsoap.org/soap/envelope/": so here's how the response looks like now: <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <n:soaprequestResponse xmlns:n="http://tempuri.org/soaprequest"> <n:soaprequestResult/> </n:soaprequestResponse> </S:Body> </S:Envelope> and here's how it must look like: <soap:Envelope...

USBHIDDRIVER works in Visual Studio debug mode but not when deployed to IIS

web-services,iis,wcf-security,hid,windows-security
I'm using USBHIDDRIVER to access a scale connected to our local workstation. Everything works fine when I run the WCF in Visual Studio 2012 Debug. But once I attempt to run the service in IIS it doesn't seem to recognize the USBHIDDRIVER. I have a test service in the WCF...

Call to SOAP WebService using client certificate in objective c

objective-c,web-services,ssl,soap,client-certificates
I'm a very Junior objective C developer and I'm trying to call to a SOAP web service which needs a client side certificate. I've made the SOAP call, but server returns I need the certificate. I've got a .p12 file (the certificate) and I've saved it on my keychain so...

JAX-RS @FormParam one time for all methods

java,web-services,java-ee,jax-rs,java-ee-6
I am developing Java "JAX-RS" Web Services for books and contents. There will be 100s of URLs something similar ... https://api.example.com/v1.3/book1/chapter/1 https://api.example.com/v1.3/book1/chapter/2 ... https://api.example.com/v1.3/book1/chapterN To fetch the chapter content user needed to POST authToken, which I validate in server and return content or error. The sample code ... @Path("/book1") public...

Using Java web service on Amazon cloud

java,web-services,amazon-web-services,amazon-ec2
I want to make a web service in java which will take arguments and do processing and return a json response. I am not been able to figure out how to deploy this service on amazon ie (on ec2 or some where else) . what will be the url to...

JAXWS Client Basic Authentication

java,web-services,jax-ws
Can someone please help me? I'm trying to connect with a Web Service; this is my code for that: public class test { static Logger logger = Logger.getLogger(test.class.getName()); /** * @param args */ public static void main(String[] args) { String result=null; try { String pi = "\u03a0"; byte[] a =...

Can not send Captcha image through nusoap webservice

php,web-services,nusoap,simplecaptcha
I'm creating a Captcha session by createCaptcha function that i wrote. and in the webservice I call this function to create a Captcha session and image then I want to send Captcha image Or display created Captcha image by webservice that user can send it's value through webservice but I'm...

couldn't copy pdb file to another directory while consuming wcf web service

c#,web-services,wcf,visual-studio-2013
I have a WCF Web Service and there is one method which returns sensor lists. When I want to consume this web service in a Console Application in Debug Mode, I got these 2 errors as; Could not copy "obj\Debug\ConsumeHelper.pdb" to "bin\Debug\ConsumeHelper.pdb". Exceeded retry count of 10. Failed. ConsumeHelper and...

SoapException: Host is not known, only when called from WebService

asp.net,web-services,azure
I have a web app running .NET 4.5 on the Azure platform. As part of the web app we send leads off to a 3rd party web service. The decision was made for the front end to interact with a local web service (.asmx) via a JS AJAX call which...

Profile/account REST API naming convention

php,web-services,api,rest,http
I have tried to search the net, but haven't found any example of best practice url naming convention for the following requests. My API allows user to log into the system, retrieve secure token which can be used to access private data over the HTTPS. So there following features will...

Where I can find my WADL? (CXF)

java,web-services,rest,cxf
I have developed a simple RESTful service using Apache CXF coupled in a web application and is working fine. I Can access it on "http://localhost:8080/SpringRestProjectJava/api/books/1234" and I am also getting the proper JSON response. My understanding is that from this link that WADL will be autogenerated. Is it correct? If...

Using client certificate with Apache Axis 1

web-services,tomcat,axis,client-certificates
Prerequisites Apache Tomcat 7 Spring 3.2.11.RELEASE Apache Camel 2.14.1 Apache Axis 1 (1.4) Keystore including client certificate (private key, public key etc.): my_keystore.p12 Question I am trying to access a remote rpc/encoded werbservice using Apache Axis 1. It is neccessary to use Apache Axis 1 because of rpc/encoded style of...

Web service not accessible on host

web-services,networking,iis-7,vmware-workstation
Folks, I published a web service on iis7 on a remote win on vm ware and I can't acess it on the host os, even though I set up Nat port forwarding on vm ware and opened the corresponding port on the host`s firewall settings. My web service ip on...

Basic Inheritance in PHP Child & Parent Class

php,web-services,class,oop,inheritance
Okay, I may be just over complicating things in my head or just completely missing something; but I'm not too sure. I have a class called Opportunity as well as a class called Activity. An Opportunity will have many many Activities along with it. There is no reason why an...

Including all @OneToMany Entities in Restful-WebService response?

java,web-services,rest,jpa,bidirectional-relation
First Post here,so please excuse any noobish approaches to best get your attention / help me you find an answer. :) Without going into too much detail of my actual Program: I have a User who can register many Devices which can be associated to many Remotes which can have...

Equivalent of org.apache.axis.components.net.SunFakeTrustSocketFactory for wsimport

java,web-services,jax-ws,axis,wsimport
When I generate webservice client stubs using Apache Axis, I disable the server certificate trust check in my code using the client stubs by calling the following method AxisProperties.setProperty("axis.socketSecureFactory", "org.apache.axis.components.net.SunFakeTrustSocketFactory"); How do I disable the trust check with client stubs that were generated by running wsimport? I use this when...

REST vs Session-Based-Applications

web-services,rest
I got a question regarding REST vs other web services, but I just can't figure out where to start. I know what REST ist and how services implemented with it should work, I also have a basic understanding of SOAP and RPCs, but I really can't tell what is meant...

How do I include a CDATA section in a WCF client webservice call in .Net?

c#,.net,web-services,wcf,cdata
I have been asked to create a wcf client which accesses a custom java webservice, which I can't modify. I need to consume a webservice method like: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <createDocument xmlns="http://www.dummyUrl.com/javaws"> <version> ... <metadata> <attribute name="ConfigName">ConfigurationTemplateForModuleX</attribute> <attribute...

error: cannot find symbol class AsyncCallWS Android

java,android,web-services
I'm trying to rewrite the application in this, in Android Studio link, which is written in Eclipse. There are two problems, first problem is there is this line in the project : import com.example.webserviceactivity.R; I couldn't write this one on Android Studio. The second problem is, in this part of...

Same function for updating and Saving?

c#,asp.net-mvc,web-services
My code to use the function for updating is here and it works also [HttpPost] public bool SaveDefCompny(DefCompanyDTO DefCmpny) { using (RPDBEntities db = new RPDBEntities()) { using (TransactionScope trans = new TransactionScope()) { //the problem is here incase of saving var UpdateDefCmpnyId = (from CmpnyId in db.DefCompanies where CmpnyId.Id...

Error deploying yii2-starter-kit Yii2 installation

web-services,yii2
I'm trying to deploy this Yii2 installation (https://github.com/trntv/yii2-starter-kit/blob/master/docs/installation.md#configure-your-web-server) but I'm having problems. I think problems are related with this configuration step: "Configure your web server". I've the webpage running here: http://vector5.raspctl.com/yii2-starter-kit/frontend/web/ But no one of the options works. For example, "Connect" option (http://vector5.raspctl.com/yii2-starter-kit/frontend/web/user/sign-in/login) I can't found the error, any help?...

WCF Services In Background

c#,web-services,wcf
I'm trying to figure out how to run WCF Services as background Windows Services. So far, in all the examples I've seen, for either a REST-WCF Web Service Host or a Duplex WCF Service Host, they end up running a small console that starts up the interface/service and waits for...

How to deal with extra “/” in phpleague route?

php,web-services,routing
I am setting endpoints for my web application like this: $router = new League\Route\RouteCollection; function user_action (Request $request, Response $response) { // some logic . . . return $response; } $router->addRoute('GET', '/user', 'user_action'); /user endpoint works well. However when I use /user/ (extra slash in the end) I get a...

How to add object to WSDL service system.array

c#,arrays,web-services,wsdl
I am currently working with a WSDL that has a method to save invoices. I have been able to modify existing invoices, but haven't figured out how to save new ones. Since the array size is immutable, I am unable to add objects to the array that is retrieved. How...

Android AsyncTask with JSON Parsing error

java,android,json,web-services,wcf
Error coming in this section: protected void onPostExecute(JSONObject json) { try { // Getting JSON Array user = json.getJSONArray(TAG_USER); JSONObject c = json.getJSONObject(0); String id = c.getString(TAG_ID); String name = c.getString(TAG_NAME); Log.i("id",id); } } ------- Webservice Result--- {"GetDataResult":{"ID":8,"Name":"Foo Bar"}} Working Link - http://127.0.0.1/WcfService4/Service1.svc/getData/?key=8 Provide the better solution for solving this....

Push notification to android from ASP.NET webservices

android,asp.net,vb.net,web-services,google-cloud-messaging
Please help me, I have a problem to push notification for android from ASP.NET webservice (VB.NET). this is my code. Public sApplicationID As String = "YYY....ZZZ" Public sSENDER_ID As String = "222...555" <WebMethod()> _ Public Function SendMessage(ByVal RegistrationID As String, ByVal Message As String) As String Dim regid As String...

Java-webservice: Glassfish3.0 error “org.codehaus.jackson.jaxrs.JacksonJsonProvider”

java,web-services,glassfish
While I restarting the Glassfish 3.0 server from NetBeans 8.0 after adding a RESTful web service, I got this exception and couldn't request the web service!! Glassfish 3.0: java.lang.ClassNotFoundException: org.codehaus.jackson.jaxrs.JacksonJsonProvider I checked the Maven Pom.xml for jersey dependency and the tag is already exist! <dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-json-provider</artifactId> <version>2.4.0</version> </dependency> ...

Responsive Websites - Is important or not for increase your business?

web-services,responsive-design
I want to know information about web designs.So,Can you tell me the difference between responsive web design and adaptive web designs?

Sending Image From Android to C# webservice

c#,android,web-services,encoding,android-image
I'm sending image from Android to C# webservice. I always get a black image.Can anyone help? Android side: public void save(View v) { mBitmap = Bitmap.createBitmap(v.getWidth(), v.getHeight(), Bitmap.Config.RGB_565); ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); mBitmap.compress(Bitmap.CompressFormat.JPEG,40, outputStream); byte[] imgByte = outputStream.toByteArray(); String base64Str = Base64.encodeToString(imgByte, Base64.DEFAULT); // Send base64Str to server }...

Is there a command-line alternative to SOAP-UI for linux, for sending SOAP to HTTPS Service?

java,linux,web-services,soap,https
I wish to run SOAP-UI on a linux (solaris) machine with very limited functionality, where we don't even have a UI, and so I cannot install any software on it or open X11 forwarding. I can however run java applications, and could settle for any alternative to SOAP-UI. The objective...

Adding Acumatica Customer Contacts

web-services,acumatica
I am having problem adding customer contacts using web services, at first instance of integration my application successfully adds the contacts using web services. But when i re-integrate the same contact in the same customer it duplicates the previously integrated contacts instead of just updating them. I tried adding value...

How to send json data using post method in android?

android,json,web-services
I have Url and parameter "data": URL: http://www.xxxx.ru/mobile-api-v1/query/ data={«type":1,"body":{"sortType":0,"categoryId":0,"count":50,"authorId":0,"lastId":0}} How to add key "data="? Now error "Wrong request"...

Server side session in asp.net

asp.net,web-services,session
I want to set one value in server side session in client side and need to access that session in web service, so i tried below In client side : //Set the server side session like below var vr_="demo.png"; '<%Session["path"] = "' + vr_ + '"; %>'; //In alert,checked the...

call bpel process from jsp

web-services,jsp,bpel
I've created a BPEL process and tested it with soapUI, it works and gives the right results. Now I need to call it from a J2EE web application, I've googled how this could be done but I'm totally confused, I don't know if I need to use SOAP or JAX-WS...

Embedded Web Service on Android device

java,android,web-services,rest,android-webservice
I would like to program a WebService embedded on my android device (not the client part). I've been evaluating Restlet Framework (Restlet) but i don't know if I go on the right way. What do you think? Is that framework viable for my goal? Any suggestion is welcome! Thank you...

.NET web service gets null object

c#,.net,ajax,web-services,rest
I'm trying to save an object using ajax call and .NET REST web service but I get null object on .NET side. Please help me to find out what's the issue. C# Object: [DataContract] public class Customer { [DataMember] public int Id { get; set; } [DataMember] public string Name...

WebMethod having array as a parameter

asp.net,web-services
I want to write a web method having its one argument as an Array/List. The code builds successfully but on browser to test it shows following message. The test form is only available for methods with primitive types as parameters. [WebMethod] public string Concat(params string[] arr,int a,int b) { string...

Why do some servers run both Tomcat and also Apache Web Server?

java,apache,web-services,tomcat
Tomcat is used for running Java servlets, but it also has the webserver functionality built in, so it can run independently. However, I see several articles on how to integrate Apache Webserver with Tomcat? What's the purpose of doing this? Does it improve performance? I am using Tomcat for serving...

How do I figure out when the contents of NSData indicate that a webservice request has failed?

ios,objective-c,web-services,cocoa-touch,nsobject
I'm trying to persist data from a microsoft web service call to a file when my app starts up. If the app is able to complete the webservice request, it's storing the data in an NSData object. Assuming the data has been successfully requested and stored, I want to execute...

Can't save json data to variable (or cache) with angularjs $http.get

json,angularjs,web-services,rest
I have weird angularjs problem. I'm trying to fetch data from Rest Webservice. It works fine, but I can't save json data to object. My code looks like: services.service('customerService', [ '$http', '$cacheFactory', function($http, $cacheFactory) { var cache = $cacheFactory('dataCache'); var result = cache.get('user'); this.getById = function(id){ $http.get(urlList.getCustomer + id).success(function(data, status,...

Retrofit error: Expected BEGIN_ARRAY but was STRING

android,web-services,retrofit
In api response sometimes It can be array, sometimes it can be string. Here details is Array { "ts": "2015-06-16 11:28:33","success": true,"error": false,"details": [ { "user_id": "563", "firstname": "K.Mathan" }, { "user_id": "566", "firstname": "Surya" }, { "user_id": "562", "firstname": "Idaya" } ]} Sometimes details can be string { "ts":...

Call php from javascript

javascript,php,html,web-services,google-maps
I have an index.php which contains both JS and PHP code. The PHP code reads GPS coordinates from an iOS app and the JS reads these coordinates back to be displayed on a web app. I am stuck on figuring out how to call the PHP every few seconds so...

Is communication via web services standardized among JavaScript on different browsers?

javascript,web-services
I'm new to JavaScript and want my JavaScript code to communicate with some server using JSON. Imagine I write a piece of code in pure JavaScript (no frameworks), which sends a request and receives a response. If this code works in Chrome, can I assume that it will also work...

Spring Boot- Producing a SOAP web service that expects application/soap+xml content type

web-services,soap,spring-boot,spring-ws,soap1.2
I followed a tutorial Produce SOAP WS. I changed the DefaultWsdl11Definition under WebServiceConfig to generate soap12 binding for the service by adding: wsdl11Definition.setCreateSoap12Binding(true); In my generated wsdl file, I can see that porting for Soap12 is generated. However when I send a message with custom header: Content-Type=application/soap+xml, I get exception:...

Authentication Window in .NET Web API

c#,.net,web-services,authentication
I have a Web API using the ADO.NET Framework and I removed the authentication and authorization fields in the web.config file, yet in google chrome the authentication window keeps coming. How to remove the window ? I tried removing the authorization element, authentication element and yet the authentication window keeps...

Error with kSOAP2

android,web-services,wsdl,ksoap2
I am trying to submit a username and the device ID of the phone to my Server but I keep getting following error: W/System.err﹕ SoapFault - faultcode: 'soap:Client' faultstring: 'Unmarshalling Error: unexpected element (uri:"http://eventmanagement.management.de/", local:"username"). Expected elements are <{}deviceID>,<{}username> ' faultactor: 'null' detail: null This is my code: PropertyInfo pi...

Generate Web Pages For Git Repository?

git,web-services,github,server,webpage
I believe a similar question to this has been asked before but its not quite the same. I would like to host a private git on a server, and generate web pages based on it with all the nice statistics and stuff similar to github (does github have an api...

Add objects to list in web application

c#,asp.net,web-services,list,webmethod
I've been trying to create a simple web application that registers users and saves their details using a list. Problem is that after adding the user successfully in the first call to the RegisterUser function, the list is empty again in the second call. Does it have anything to do...

No matching contract between WCF Service and QuickBooks Web Connector

c#,web-services,wcf,quickbooks,connector
I am trying to write a small SOAP server, which connects to the QuickBooks Web Connector, but I have some trouble to find the correct contracts. I always get following error: Web Connector Method x cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This...

What is the difference between SOAP and REST webservices? Can SOAP be RESTful?

c#,web-services,wcf,rest,soap
From MSDN magazine https://msdn.microsoft.com/en-us/magazine/dd315413.aspx and https://msdn.microsoft.com/en-us/magazine/dd942839.aspx I understand that When RESTful endpoints are asked for data using HTTP, the HTTP verb used is GET. Using REST means that you can take advantage of HTTP caching and other features, like Conditional GET, that aid in scaling services. Many of these techniques...

Continuing with Spring integration flow after SoapFault

web-services,spring-integration,soapfault
Our application integration flow is defined as splitter -> ws gateway -> aggregator The splitter splits request into a list of account numbers; so that for each account number a web service call is initiated and the responses from multiple web service calls are aggregated in the aggregator.The channel between...

How to mock web service call without passing mocked class as parameter

web-services,junit,mocking
I have a web serivce class which need to unit tested. Here is class which is under test public class ValidatePaymentMessage { public CsmValidationResultX validatePaymentmsg(String csmName, String base64PayloadXML){ //Call Web Service to validate Payment CsmValidationResultX responseMsg=null; PaymentManagerWebService paymentManagerWebService = new PaymentManagerWebService(); PaymentManagerWebServiceImpl serviceAddrs = paymentManagerWebService.getPaymentManagerWebServicePort(); try { responseMsg = serviceAddrs.validatePayment(csmName,...

I am trying to load my servlet in the browser and it gives me this error

java,html,xml,web-services,servlets
This is the error I see when I try to compile my code — am I passing the URL incorectly? I wanted to learn from this sample code to display my servlet in the browser. HTTP Status 404 - /Lesson41/ type Status report message /Lesson41/ description The requested resource is...

WSDL binding difference

xml,web-services,soap,wsdl
In WSDLs generated by AXIS and CXF, there are always defined three binding elements. As reported in the following sample WSDL describing a temperature conversion service: <wsdl:binding name="ConverterSoap11Binding" type="ns:ConverterPortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="celsiusToFarenheit"> <soap:operation soapAction="urn:celsiusToFarenheit" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input>...

How to call web service inside of forloop?

ios,objective-c,web-services
How do I call a web service inside a for loop? I have two web services. First I call one web service and that returns some data (name, userid, etc.). I use this userid to call the next service. I want to show all datas of camels in one scroll...

Can I throw a message fault back to a WCF client from a routing service

c#,.net,web-services,wcf,encryption
My company has long used ASPX and windows services through a routing program to manage the connections and allow our datacenters to control where the clients make connections. Just recently we started using MVC and WCF. Yes in 2015 we are just moving to these things. Anyway they figured out...

IOS8 Paramter is not getting appended to URL when posting data

ios,web-services,rest
I am calling the REST service to post lat & lng, however The data is not getting send to server -(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations { CLLocation *crnLoc = [locations lastObject]; self.locationDesc.text = [NSString stringWithFormat:@"%@",crnLoc.description]; NSLog(@"%@",crnLoc.description); NSURL *aUrl = [NSURL URLWithString:@"http://localhost/web/location/create.php?"]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:aUrl]; NSString *params = [[NSString alloc]...

Accessing JSON elements in PHP

php,ios,json,xcode,web-services
PHP noob here. I am building an iPhone app that is sending JSON blobs to a web server. On the server side I am receiving the JSON and trying to access the 3 fields that the object contains. Two weird things are happening to me that I could not figure...

PHP to WCF with SoapClient - Request Entity Too Large

c#,php,web-services,soap,soap-client
I have a soap svc web service and these are my WS methods: StoreService.svc.cs namespace StoreServices { [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class StoreService : IStoreService { public bool SaveCarData(Car car) { //Some code } } } IStoreService.cs namespace StoreServices { [ServiceContract] public interface IStoreService { [OperationContract] [WebInvoke(Method = "POST", UriTemplate...

How can I read a xml Response from T-SQL?

xml,web-services,tsql,stored-procedures
I have this Store Procedure to call and read the response from a web service. I call a Web services from store procedure. I have a problem when I try to read the response. So the code is this: SET @Response= ' <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <RegisterUserResponse xmlns="http://tempuri.org/">...

How to implement Facebook Realtime Update Subscription with callback URL [closed]

java,facebook,web-services,restfb
How to implement Facebook Realtime API

cxf request scoped bean not working in unit test (soap)

web-services,unit-testing,soap,scope,cxf
CXF soap application, using following versions: springBootVersion = 1.2.3.RELEASE springVersion = '4.1.6.RELEASE' cxfVersion = '3.1.0' junitVersion = '4.12' I have a spring bean with a request scope: @Component @Scope( value=WebApplicationContext.SCOPE_REQUEST, proxyMode = ScopedProxyMode.TARGET_CLASS ) public class RequestScopedClass which I fetch dynamically from ApplicationContext in my CXF endpoint implementation: @Component @WebService(endpointInterface...

Why do we need to publish or deploy web services or WCF?

web-services,wcf
I am in the path of learning WebServices and WCF. So far I understand that webservice or Wcf contains web methods which can be consumed by client side or on the service side too. But my question is why do we need to publish/deploy a webservices or wcf in IIS...

HTTP 415 Unsupported Media Type

java,web-services,maven,jax-rs
I have created a sample web service to make a post call. I am using Jersey JAX-RS, and Maven. web.xml <servlet> <servlet-name>provider-serlvet</servlet-name> <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> <init-param> <param-name>javax.ws.rs.Application</param-name> <param-value>org.is.ws.provider.rest.ProviderAggregateApplication</param-value> </init-param> <init-param>...

Spring RequestBody Mapping maps all attributes to null values

java,spring,web-services,rest,mapping
i have the following RESTfull method : @RequestMapping(value = "/budgetLines", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public void create(@RequestBody BudgetLine budgetLine) { System.out.println("Before Persisting in the repository " + budgetLine); budgetLineRepository.save(budgetLine); } I'am consuming this method inside a web application, i checked using the network analysis tool (in the...

How to pass HTTP request to Web-Service

ajax,web-services,liferay,liferay-6,portlet
From my portlet JSP, I am trying to make a Ajax call to web-service. My aim is to pass HTTP request object as a parameter to web-service method. Please suggest.

Exclude Package From Gradle Dependency

java,web-services,rest,gradle
I'm experiencing an issue where multiple versions of the same class are showing up in my classpath. The class in question is javax.ws.rs.core.UriBuilder. The version I want to use is brought in by javax.ws.rs:javax.ws.rs-api:2.0.1. However, we also use the Jira rest client library which has a dependency on the older...

Camel Multicast; Direct and AMQ

java,web-services,soap,apache-camel,activemq
I have a Generic Camel Route which listens to a CXF:Bean(SOAP) Request with DataFormat: POJO. What I want this route to do is multicast the incoming exchange to AMQ JMS Queue, which will be consumed by another internal route at a later point and the other endpoint is a direct:Endpoint...

why I don't get list subfolders despite using RecursiveAll option

web-services,vba,sharepoint,soap,caml
This is my function why I don't get the subfolders although I'm using recursive ALL option. I don't even obtain 1-level subfolders I only get the main files and folders, I'm sure I've something wrong in soap request but I can't figure it out. I've used the same request as...

Failed to load resource: the server responded with a status of 421 (Bad Request)

javascript,html,ios,web-services,cloudkit
I am using Apple's new CloudKit JS reference and sample code to build a simple CRUD app. Before I can even get to CRUD however I am being stopped by Apple authentication. index.html <html> <body> <div id="apple-sign-in-button">Sign in <span id="username"></span> </div> <script> /* * Initialize the global objects we will...

The remote server returned an unexpected response: (413) Request Entity Too Large.?

c#,web-services,wcf
I pass some values to my WCF service from the .net application in string format. Passing string format will be in this structure, ItemName~ItemDescription~ItemPrice|ItemName~ItemDescription~ItemPrice|... Every line item will be separated by '|' character. I was passing nearly 1000 items. It was working as expected, but when I came to pass...

Call asmx web method from master page

c#,jquery,asp.net,web-services,master-pages
My Project Structure Web Dir - App_code - App_Data - DevFolder - LiveFolder - Live.aspx - Dev.master - DevMasterEvents - masterservice.asmx In master page, $.ajax({ type: "POST", url: "DevMasterEvents/masterservice.asmx/HelloWorld", contentType: "application/json; charset=utf-8", dataType: "json", success: SetTabSessionValueSucceed, error: SetTabSessionValueFailed }); function SetTabSessionValueSucceed(result) { alert("text from server: " + result.d); } function...

JAX-RS service response is returning double fields without decimal places

java,json,web-services,jax-rs
I'm working on a JAX-RS web service that returns a POJO as a JSON. The POJO contains double and integer fields. The problem is whenever the double fields are whole numbers(eg - 3.0, 22.0 etc), the corresponding fields in the returned JSON does not contain the decimal point. The decimal...

NSJSONSerialization dataWithJSONObject: options:NSJSONWritingPrettyPrinted error: method adding extra “/”

ios,objective-c,web-services
in my method, I need to call a web service. I have used the following [NSJSONSerialization dataWithJSONObject:jsonDictionary options:NSJSONWritingPrettyPrinted error:&parseError] where jsonDictionary is { "timeStamp" : "", "listOfScratchNotes" : [ { "id" : "13", "location" : "reqw", "dateOfMeeting" : "23/12/2012", "dealers" : "fr" } ] } after using the dataWithJSONObject: method,...

Not Able to consume external RestFul web service from Client in Eclipse or from restclient-ui

java,eclipse,web-services,restful-url,rest-client
I am not able to consume RESTful webservice from client. I have written in eclipse, even not able to consume it from restclient-ui, but can access sample RESTful web service which is running in my location web logic server. I am in Corporate/company Network. Getting error Connection Time out exception....

understand spring-ws, integration with spring-mvc and automatic generation of wsdl

java,spring,web-services,wsdl,spring-ws
i want learn spring-ws with automatic generation of wsdl files, i know that is a lot of tutorials, i tried them, my favorite example is : github projet It works well, but i tried to ajust that solution for my needs, and it doesnt work, i dont know why, and...

How to do authentication using SOAP Header and PHP?

php,web-services,soap,wsdl
I look for an example of Web service's creation using an authentification SOAP header and PHP. I found an acticle on http: // stackoverflow.com with a code given by EricP in an answer to a question below: How to do authentication using SOAP? I don't know why it does not...

Spring Webservices gives 406 error

java,spring,web-services,spring-mvc
I have created a simple Spring with webservices example but when I try to get the response I am getting error as : HTTP Status 406 - The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers. This...

IOS Swift Call Web Service using SOAP

ios,web-services,swift,soap
I have looked through the answers to how to call a web service via SOAP form swift on the internet and found some answers. I have tried to implement the code I have found in those answers but continually get a http 400 status code. I am trying to figure...

RestSharp.Portable HttpRequestException 500 (Internal Server Error) on iOS POST Request

ios,web-services,rest,xamarin,restsharp
I am using the RestSharp.Portable PCL because I am building a cross-platform service manager that will wrap and make calls to RestSharp regardless of the platform I am on. I am trying to POST data using a Xamarin iOS unit test project and I can successfully make GET requests but...

Consuming and exposing webservices in one project (.NET)

.net,web-services,rest,soap
What is best practice concerning consuming and exposing webservices in one project? (.net) I need to create a rest webservice to expose data. The rest webservice would need to consume this data from another (SOAP) webservice from a third party. (The data needs to be merged with data present in...

Calling a webservice on remote machine with JQuery/JavaScript without changing webservice

javascript,jquery,web-services
I have a webservice running on my server, but i don't have the code to modify it, i can only make changes in its config file. I'm in need to call this webservice from JQuery/JavaScript. This is what i tried so far <script> $(document).ready(function () { debugger; jQuery.support.cors = true;...

Giving a prepared SOAP response by Java

java,xml,web-services,soap
I have a client, I want to make the server off by changing endpoint for exceptional situations and I want to give a prepared response for the request. As there are many security issues for preparing the SOAP messages, I don't want to make a complex fully completed (fake/mock) webservice...

What is the advantage of using Maven for creating RESTful Web Services

java,web-services,rest,maven,web
I am just a beginner in creating RESTful Web Services. I saw many places they are creating Maven project in Netbeans IDE for creating RESTful Web Services in JAVA EE. Can someone help me with this that what are advantages of using MAVEN? How it is helpful, I have little...

HTTP Basic authentication (Java / Jersey)

java,web-services,rest,security
I created REST webservice and secured it using HTTP Basic authentication. It working fine, and asking for the username/password. But on second run (if browser still open) the webservice does not ask for username/password. If I close and reopen browser, it work as I wanted - asking to authentication. I...

Is JSON better than XML? Which one is more secured? [duplicate]

android,json,xml,web-services,rest
This question already has an answer here: What is the difference between json and XML? [closed] 3 answers I'm very much clear about using JSON and XML, but still while comparing each other I cant find differences related to security. Which one is more secure? Which one I should...

AFNetworking GET Parameters in body

ios,web-services,afnetworking-2
I have the following code and I want to force the parameters to be in the body of the GET call and not part of the query string NSString * requestURL = [NSString stringWithFormat:kXXXBaseAPIURL,@"findfriends"]; NSString * lastCallTime = [[XXXCommon sharedInstance] lastTimestampForURL:requestURL]; AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; AFHTTPRequestSerializer * serializer =[AFJSONRequestSerializer...

Save SOAP UI mock requests to a file

web-services,soap,request,soapui
I m using Soap UI basic version for some mocking. I need to persist my requests to some file. I just have generated mock services with some predefined input to output rules, and i searched on net and found this: def logArea = com.eviware.soapui.SoapUI.logMonitor.getLogArea( "http log" ); def groovyUtils =...

Not able to hit 2nd services with generated Token

c#,web-services,rest,soap,drupal-services
I have been provided with two services in which ist service is used for login purpose and it will return an xml node token which i to be added as the header in all other services call, In the attached sample code there are two functions in function CreateObject() i...