w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
  Home » WEB SERVICES » Page 1
IIS Rest Service gives 404 Error from External Server
It turns out that I wasn't looking closely enough at the log. In fact, the calls from the external server looked like this: GET /SomethingService/SomethingService.svcSomeFunction/Parameter - 80 212.143.135.6 404 0 2 218 In other words, the slash mark separating the URL from the function template was missing. Since the URL is read from the configuration file in the external server, all I had t

Categories : Web Services

Delphi - Authorization TIdHttp fails over HTTP proxy
Make sure you have added the IdAuthentication unit to your uses clause so TIdHTTP can process Proxy-Authorization headers in a 407 reply, and also make sure you have a TIdHTTP.OnProxyAuthorization event handler assigned (even if it just returns Handled:=True) otherwise TIdHTTP will not attempt proxy authorization while processing a 407 reply, even though you have provided a username/password in th

Categories : Web Services

SoapUI: Using Groovy to return a MockResponse based on validation of the request
I suppose that you've the follow scenario. You're creating a MockService in SOAPUI, inside MochService there is an operation which has a MockResponse and you dispatch your response from the operation as script. In the follow image the MockService, operation and MockResponse are shown: So if for example you have a MockResponse with the follow content: <soap:Envelope xmlns:soap="http://schem

Categories : Web Services

Prestashop _PS_MODE_DEV_ and WebService
I end up on a dirty solution found on https://www.e-connecteur.fr/content/comment-afficher-les-erreurs-du-webservice-prestashop (French). The solution consists in turning _PS_DEV_MODE_ on only for the api by detecting the request url, and replacing a line in defines.inc.php if (_PS_MODE_DEV_ === true OR substr($_SERVER['REQUEST_URI'], 0, 4) == '/api')

Categories : Web Services

Asyc API method
You need to off load the encryption task to another thread in your serve. This will free up (complete) the request processing thread, and the client can continue with other stuff. You can wrap the encryption task such that after successful completion or failure, a callback is invoked. This callback must be responsible for notifying the client back. To notify the client back, upon completion of th

Categories : Web Services

EnergyStar Portfolio Manager - Java Client to consume their REST API with Authentication
conn.setRequestProperty("Authorization", "Basic " + Base64.encodeBase64String((getWebServicesUsername() + ":" + getWebServicesPassword()).getBytes())); Where conn is HttpURLConnection.

Categories : Web Services

Post JSON Object using httpClient windows Phone 8.1
Check some samples of HttpClient.PostAsync() here: https://monkeyweekend.wordpress.com/2014/10/23/how-to-send-text-json-or-files-using-httpclient-postasync/

Categories : Web Services

How do we check whether element with MinOccurs = 0 returned?
After some research and testing done, I think I can have something like this: bool ShowContactFlag = false; if (Dataset.Tables[0].Columns.Contains("Address")) { ShowContactFlag = true; } else { ShowContactFlag = false; }

Categories : Web Services

Changes made to a WSDL webservice .cfc is not showing up in a dump of the object created with CreateObject in cfscript
Not sure what version of CF you are using. This post, refreshing a webservice in the cache, is for CF 7 but it may still be relavent. The code for the "fix" is: <cfscript> // service wsdl file sdl = 'http:/' & '/mydomain.com/WS/myservice.cfc?wsdl'; // create object factory = CreateObject('JAVA', "coldfusion.server.ServiceFactory"); // reference to the XmlRpcService RpcService = fact

Categories : Web Services

Apache Cxf publishing services
by using jax ws endpoint you can do this. <jaxws:endpoint id="queryAssetService" implementor="#queryAssetImpl" address="/services/queryAsset" xmlns:tns="namespace" serviceName="tns:serviceName"> <jaxws:features> <bean class="org.apache.cxf.feature.LoggingFeature" /> </jaxws:features> </jaxws:endpoint>

Categories : Web Services

Calling REST service in my JSF application
Actually it isn't an good idea to perform this from @ManagedBean, you in this way mix here presentation and logic. @ManagedBean related more to the presentation layer. In any way you should perform HTTP POST or GET request to your service, get the answer and parse it to get the required values. See this tutorial for complete example: http://www.mkyong.com/java/how-to-send-http-request-getpost-in

Categories : Web Services

Consume SOAP WebService on Sencha?
Found this somewhere. It's not mine: In order for the browser to parse a returned XML document, the Content-Type header in the HTTP response must be set to "text/xml" or "application/xml". This is very important - the XmlReader will not work correctly otherwise. Other than that you might want to go for JSON anyways. Try this link: http://davidwalsh.name/convert-xml-json

Categories : Web Services

NetSuite SSO only allows map to Admin? Can I switch to a different role?
inbound SSO can be used for any role, but the key item is that the FIRST mapping in any account MUST be an administrator. Once you have a mapping for an administrator you can set up additional mappings for other users/roles. I'm unsure whether you can map twice for the same user (once as admin, once as a sales person for example).

Categories : Web Services

Configuring web.config in Service Stack 3.9 not working
That is the configuration for ServiceStack v4, the documentation for the ServiceStack v3 (BSD) is maintained at: https://github.com/ServiceStackV3/ServiceStackV3/ The Create your first Service tutorial shows the valid v3 configuration: <system.web> <httpHandlers> <add path="*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/>

Categories : Web Services

Datapower to SFDC integration - session management
You don't need an XC10 device here, XC10 is needed when you want to cache a lot of name/value pairs. After you call the SFDC service from a Web Service Proxy (WSP) via url-open/soap-call you get the authentication token from SFDC and store it in a local/context variable and also store the current timestamp, and session timeout parameters in other local/context variables, and use them in further SF

Categories : Web Services

THTTPRIO SSL using Client Certificate doesn't work as it should
If I call my webservice it works without having a certificate installed, but I think that it shouldn't. Not many web services require client certificates (with exceptions like banking and other high risk environments). It is more common that clients want to verify the server identity, and this is done with server certificates. So I would say this web service does work in a normal, expected

Categories : Web Services

SonarQube create profile from web service
This is currently not possible, but this web service will definitely be created when we work on the redesign of the Quality Profiles page. You can watch and vote for the following ticket: SONAR-5851

Categories : Web Services

Tracing to LogSource 'All Events' failed. Enterprise Library logging error
You are encountering an error logging to your database. But it seems that it is not totally catastrophic since it seems errors are being logged. This rules out a common cause such as invalid connection string. You need to find out what the actual error is. To do this change the errors special source to log to a file (in a location with proper permissions). So add a flat file trace listener:

Categories : Web Services

Load testing enterprise server with webservices
Our tool http://www.stresstimulus.com can test multiple Web services at the same time. For each web service, create a separate test case http://support.stresstimulus.com/display/doc40/Creating+Multiple+Test+Cases To do so, issue a SOAP request and record it with StresStimulus proxy, or import a Fiddler .saz capture file. By default, all test cases will have the same mix weight = 1, so load will

Categories : Web Services

JAX/WS wsgen is not generating
The print screen you posted (and @home's comment is spot on - you should add the stacktrace not a print screen) tells you the problem. @javax.jws.WebService annotated classes that do not belong to a package must have the @javax.jws.WebService.targetNamespace element. You don't specify a target namespace and wsgen can't infer one because you classes are in the default package. Having classes

Categories : Web Services

Web service differences between REST and RPC
You can't make a clear separation between REST or RPC. Just by looking at what you posted we can't tell. One constraint of REST is that it has to be stateless. If you have a session then you have state so you can't call your service RESTful. The fact that you have an action in your URL (i.e. getAllData) is an indication towards RPC. In REST you exchange representations and the operation you pe

Categories : Web Services

Passing parameters in Client server model
you should use AddNewMethod(Person newPerson)). Reasons: 1. Cleaner code. 2. Less prone to errors. 3. You can use data model client side. 4. You are not going for overloading of functions? AddNewMethod(int pId, String pName) gives you options for overloading.

Categories : Web Services

Web SVC works on HTTP but not HTTPS
Well, why do you edit basicHttp binding configuration when you are using weHttpBinding? This SO answer might help you (I didn't test it though). There is a nice article referenced explaining how to set up https with webHttpBinding.

Categories : Web Services

phone gap apps - How can i detect thet a login web service request is genuine
Good question: I use the device plugin to get the device uuid and then hash it with the user email and the timestamp of the registration to create a key. One way hashing is your friend in this scenario. Keep all of your communication on https secure socket layer and create keys based on the UUID and you should be able to solve this problem.

Categories : Web Services

Pass custom HTTP header from Windows Phone to ASMX service
Ok, So after some hits and misses, the below code worked: HttpContext.Current.Request.Headers.GetValues("HeaderKey")[0]; The issue with using OperationContext was for ASMX the OperationContext.Current was null. In WCF service, the OperationContext.Current is available. Thanks @user623396 for your time and efforts. Hope this helps someone out.

Categories : Web Services

RESTful Architecture Authentication/Authorization Strategy
On the second diagram, use 403 for the authorization error and 401 for unauthenticated - that way the client can know which code path to take in handling the error. It's not clear what the first diagram is showing - if thats the browser requesting the HTML page, you need to return a redirect rather than a 401... the browser won't know what to do with 401. If that's a call to some /login API, it'

Categories : Web Services

How to add security (username, password) to grails cxf web service
Instead of above mentioned client code, use following code to get it working. Map<String, Object> req_ctx = ((BindingProvider)hello).getRequestContext(); req_ctx.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, WS_URL); Map<String, List<String>> headers = new HashMap<String, List<String>>(); headers.put("Username", Collections.singletonList("pankaj"));

Categories : Web Services

Get stock of combination in a product (PrestaShop)
Yes, that's possible. You can do that by using the ../api/stock_availables function. The details of a specific product are hidden in the details of a single stock_available record: (simplified) <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <stock_available> <id> <![CDATA[ 406 ]]> </id> <id_product xlink:href="h

Categories : Web Services

NuSoap PHP One value coming in as not null
So I figured out the fix!!!!! Instead of calling from URL, I saved the wsdl locally and removed the field that was giving me issues. Now the application is working!! I know it was a weird question, but I thought I would give it a try..

Categories : Web Services

Claims based access control - how to implement 'System' user?
Short answer would be: If you have no one to Act As then Act as yourself. Even when using "poor's man identity delegation" Service A authenticates at STS using some sort of mechanism. In the link you posted a certificate is being used. So implement a new way of getting token. You already have a method which gets ActAs token so now you need to implement a method that will get user token (for Servi

Categories : Web Services

Titanium Alloy Caching in Android/iOS? Or Preserving old views
Yes Titanium can do this. You should use a global variable like Ti.App.myList if it is just an array / a list / a variable. If you need to store more complex data like images or databases you should use the built-in file system. There is a really good Documentation on the Appcelerator website. The procedure for you would be as follows: Load your data for the first time Store your data in your

Categories : Web Services

Need Help in REST webservice url versioning?
You can follows two design approach Say suppose your changes( would be) are minimal and its at particular part of code, for example you have insurance policy application and you are upgrading the application to new version because govt has introduced a policy which effects commissioning. and you have module for calculating commissioning then you can pass the version as a parameter. @Path("/svc"

Categories : Web Services

Consultant designed a system that uses email as a webservice
The issue with using email as the relay agent is that: Creating a webservice that allows your company's internal system to directly intercept and parse XML system seems far more robust to me. Encapsulating the XML mime type within a transmission protocol (Email) is risky in and of itself. As a result of (2), there are two points of failure (corruption in the xml conversion process) and also the

Categories : Web Services

Need suggestion on one small thing about soap web service in cf
Your ColdFusion SOAP method can be as simple as: <cffunction name="yourMethod" access="remote" output="false" returntype="struct"> <cfargument name="testString" type="String" > <cfset local.out = structNew()> <cfset local.out.argIn = arguments.testString> <cfset local.out.additionalValue = "Hello World"> <cfreturn local.out> </cffunction&

Categories : Web Services

How to login in redmine using rest API
On the Redmine API wiki you can see the following: Most of the time, the API requires authentication. To enable the API-style authentication, you have to check Enable REST API in Administration -> Settings -> Authentication. Then, authentication can be done in 2 different ways: using your regular login/password via HTTP Basic authentication. using your API key which is a handy w

Categories : Web Services

CRM 2013: Passing Account Info into Webservice via Plugin
To get the new_AccountNumber attribute change: var AccountNumber = context.OutputParameters["new_AccountNumber"].ToString(); to var AccountNumber = targetEntity.Attributes["new_AccountNumber"].ToString();

Categories : Web Services

how to make web service calls in a for loop in play framework with scala
I'm not sure if this would compile, but try something like this: for { uids <- getUids() users <- users <- Future.sequence(uids.grouped(100).toList.map(listOf100Ids => getUsers(listOf100Ids))).map(_.flatten) } yield Ok(s"${users.size} users(s), ${users}") Step1 - Split your userids into chunks of 100: uids.grouped(100).toList // Get something like List(List(1,2,3), List(4,5,6))

Categories : Web Services

How to sync WebService operation in silverlight?
The "GetPR" method is still running asynchronously, so the "ButtonStateModel" getter will return null immediately (the "completed" action will then have no effect). And, you do not want to use any kind of blocking inside your getters, as that will block the UI. Instead, you should put the "GetPR" in the initialization, and use the to set the "ButtonStateModel" property to the appropriate value:

Categories : Web Services

REST Webservice -- consume xml payload
Ok, so you want to build a service that consumes a xml payload, and then use it's data. You can use resteasy and jaxb for that. You can find an example here The idea is the following: your xml payload has to map to a jaxb annotated object, and resteasy will do the unmarshall operation for you. @POST @Consumes(MediaType.APPLICATION_XML) public Response postOrder(Order order){

Categories : Web Services




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.