web-services

.NET autogenerated web-service client: How do I avoid requesting schemas from w3.org?

谁都会走 提交于 2020-01-10 03:20:12
问题 I have a .NET web-service client that has been autogenerated from a wsdl-file using the wsdl.exe tool. When I first instantiate the generated class, it begins to request a bunch of documents from w3.org and others. The first one being http://www.w3.org/2001/XMLSchema.dtd Besides not wanting to cause unnecessary traffic to w3.org, I need to be able to run the application without a connection to the Internet (the web-service is a "Intra-web-service"). Anyone know the solution? If it helps, here

Should I use GoogleAuthUtil.getToken(…) or not?

情到浓时终转凉″ 提交于 2020-01-10 03:17:04
问题 Background: I need to authenticate on my server back-end so I know the client is genuine. In my Android game I connect to Games.API via GoogleApiClient . I only want to have to sign in once, which I want to do via Games.API , as this gives me many advantages (Google Play Games leaderboards, achievements, etc.) I have been able to get an authorisation token using GoogleAuthUtil.getToken(...) which I can do after I sign into Games.API , which seems to give me a token. Good so far. But Google

Using Jersey 2.x web service on Weblogic 12.1.1

爷,独闯天下 提交于 2020-01-10 03:02:25
问题 I'm trying to deploy Jersey 2.13 web services to Weblogic 12.1.1. This version of weblogic is compliant with JSR-311 JAX-RS 1.1 specification whereas Jersey 2.x provides implementation for JAX-RS 2.0 Oracle has an instruction on how to upgrade the version of Jersey JAX-RS RI : http://docs.oracle.com/cd/E24329_01/web.1211/e24983/version.htm However even this doesn't help solving all of the deployment issues. I'm packaging the application in EAR containing WAR. In order to override weblogic

Can I serialize a Data Table or Data Set to transfer over a Web Service in C#?

為{幸葍}努か 提交于 2020-01-10 02:45:14
问题 I am using a web service to query data from a table. Then I have to send it to a user who wants it as a DataTable. Can I serialize the data? Or should I send it as A DataSet. I am new to Web Services, so I am not sure the best way to do it. 回答1: You can send the data as a xml string from a dataset by DataSet.GetXml() And than the user can deserialize it with DataSet.ReadXml() And get the datatable from the dataset by DataSet.Tables Good luck 回答2: If you expose it as a DataSet / DataTable , it

What is the best way to call a .net webservice using jquery?

笑着哭i 提交于 2020-01-10 02:12:06
问题 I'd like to call a .net webservice from another domain using only jquery. What is the best way to do this? and are there any configuration changes I need to be aware of on the web site hosting the web page? The reason I ask this, is that I am only marginally in control of that area. So I can only make limited changes. 回答1: I think your problem is to make the crossdomain call. You have to change the data type of your jQuery request to jsonp . Take a look at this link 回答2: The browser does not

How to write a Java client to access WSDL file?

不想你离开。 提交于 2020-01-10 02:10:35
问题 How can I access the exposed methods in a .wsdl file using Java? Also, what are the steps involved in writing a Java client and consuming the webservices? 回答1: In addition to The Elite Gentleman's answer, here are my steps I successfully used to generate classes to be able to use the webservice: Command: wsimport -Xnocompile -keep -b binding.xml wsdlFile.wsdl Explanation: '-Xnocompile' suppresses the generation of .class files '-keep' makes sure the generated Java files wont be deleted (by

How do I call WCF client from Excel 2003 VBA?

元气小坏坏 提交于 2020-01-09 19:51:06
问题 As the question asked, how do I call WCF client from Excel 2003 VBA? I saw there is a place where I can call web service, but I have searched through Google, all the results I get is not possible to call a WCF client from VBA. I would like to know sort of what method to use before I do anything with my code, don't want to waste the time and discover later that it is not possible to do that. 回答1: You might want to look at using the WCF Service Moniker which lets you invoke a WCF Service from

Using WireMock with SOAP Web Services in Java

为君一笑 提交于 2020-01-09 18:23:42
问题 I am totally new to WireMock. Until now, I have been using mock responses using SOAPUI. My use case is simple: Just firing SOAP XML requests to different endpoints (http://localhost:9001/endpoint1) and getting canned XML response back. But MockWrire has to be deployed as a standalone service onto a dedicated server which will act a central location from where mock responses will be served. Just wanted some starting suggestions. As I can see WireMock is more suitable towards REST web services.

Configuring WCF 4 with routing (global.asax) for both http & https endpoints

南笙酒味 提交于 2020-01-09 18:23:28
问题 I'm still a newbie with wcf and not too well informed in .net in general. I have a WCF 4 web service that uses the global.asax routing approach and very simplified web.config using the standard endpoint method. This wcf service runs as an application with the default web site on iis 7.5 at present. I need it support both http and https interfaces, if possible. If that's too complex then only https. How is that best handled maintaining the current approach? The contents of the global.asax.cs

Configuring WCF 4 with routing (global.asax) for both http & https endpoints

独自空忆成欢 提交于 2020-01-09 18:23:06
问题 I'm still a newbie with wcf and not too well informed in .net in general. I have a WCF 4 web service that uses the global.asax routing approach and very simplified web.config using the standard endpoint method. This wcf service runs as an application with the default web site on iis 7.5 at present. I need it support both http and https interfaces, if possible. If that's too complex then only https. How is that best handled maintaining the current approach? The contents of the global.asax.cs