web-services

“IOException: Strange I/O stream” in CXF service client

℡╲_俬逩灬. 提交于 2019-12-25 02:08:22
问题 We are seeing an intermittent error in CXF. The response is fairly large (several hundred KB), MTOM is enabled, and enabling DEBUG for the CXF request/response logging interceptors fixes the issue, similarly to this post (which is unresolved). Our project is leveraging CXF version 2.2.9. javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: [was class java.io.IOException] Strange I/O stream, returned 0 bytes on read at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java

JUnit tests using a mock database

拟墨画扇 提交于 2019-12-25 01:55:19
问题 I am developping an application that tests different WebServices, and I want it to be as generic as possible. I need to populate database to do JUnit tests, but I don't want these changes to be commited. I know that some in-memory databases like HSQL DB allow testing on a sort of a virtual (or mock) database, but unfortunately I use oracle and I cannot change it now because of my complex data tables structure. What is the best practice you suggest? Thanks. 回答1: First of all, HSQL and

How do I connect to a CRM IFD web service?

孤人 提交于 2019-12-25 01:52:34
问题 I have taken the code from the SDK and made just one modification to set the authentication type but when I try to connect I get an "Unauthorized" error. My code is: // Set up the CRM Service. CrmAuthenticationToken token = new CrmAuthenticationToken(); token.AuthenticationType = 2; token.OrganizationName = "TESTCRM"; CrmService service = new CrmService(); service.Url = "https://testcrm.ifdtestsystem.com/MSCrmServices/2007/CrmService.asmx"; service.CrmAuthenticationTokenValue = token; /

Error occurs with while Loop PHP / MySQL NuSOAP

只谈情不闲聊 提交于 2019-12-25 01:46:55
问题 I have created a PHP / MySQL based web service. I wrote client.php as mentioned here and server.php as below: <?php require_once("lib/nusoap.php"); $host = $_SERVER['HTTP_HOST']; $miURL = 'http://'.$host.'/WS-Demo'; $server = new nusoap_server(); $server->configureWSDL('L3M_WebService', $miURL); $server->wsdl->schemaTargetNamespace=$miURL; $server->register('getDemoData', array('fldpara' => 'xsd:Array', 'tblpara' => 'xsd:Array', 'cndpara' => 'xsd:Array'), array('return' => 'xsd:string'),

how to use Get method for calling web services in android

安稳与你 提交于 2019-12-25 01:44:16
问题 In my program i am using postmethod to call the web services . But the web service is based on Get method .I dont know how to write the code for Get method.Please tell me the how to write the code for Get method to call web services.My code is shown below based on post method. RestClient arc = new RestClient("http:.............."); arc.AddParam("search", msft); Here i created a object to RestClient and adding parameters by calling AddParam method.The RestClient class is public class

DocumentBuilder.parse() throwing java.net.UnknownHostException after changing a webservice URL from http to https

陌路散爱 提交于 2019-12-25 01:34:05
问题 Previously , we had following code in our application and it used to fetch the required data. We just used to read the required fields by forming a web-service URL by passing username , password and search parameter (DEA number). The same URL (with parameters) could also be hit from browser directly to see the results : { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder parser = factory.newDocumentBuilder(); System.setProperty("http.proxyHost",

web service call from javascript

不想你离开。 提交于 2019-12-25 01:33:24
问题 I am calling a webservice in javascript file using json but web service is called only when both of the .asmx file and javascript file are on my local server or both of the files are uploaded on live server. but I want to test my webservice which is uploaded on my live server from my local server. So please tell me the way by which I can test my live webservice from my local server. Because same web service is working fine when my Javascript file also present on live but not working when

MVC3 Convert JSON from REST Service to Model

∥☆過路亽.° 提交于 2019-12-25 01:27:27
问题 I am trying to implement a remote REST service which is used to handle all logic for my MVC3 web application, and so far I am able to retrieve the serialized object from the webservice, but I am stuck on deserializing the object into my ViewModel to pass to the View. Here is my controller: [HttpGet] public ActionResult Index() { string versions; using (var webClient = new WebClient()) { versions = webClient.DownloadString("http://myservice/GetVersions"); } // deserialize JSON/XML somehow... /

Rally webservices api v 1.36 <OperationResultError>Could not update: Could not write changes in Unit Of Work</OperationResultError>

橙三吉。 提交于 2019-12-25 01:25:13
问题 I am using rally webservices api v 1.36 and I am getting this error when I try to create a new rally item.Could not update: Could not write changes in Unit Of Work. Code was working fine a week back but now it is not working. I am using ruby gem rally_rest_api. Thanks in advance. 回答1: Try to use an equivalent curl command or hit the endpoint using a browser REST client to see if you get the same error. Use the current v2.0 of WS API. If you get the same error, post your create URL here,

WCF web service metadata contains computer name

北城以北 提交于 2019-12-25 01:19:54
问题 My web service is hosted in IIS on my server, when i try to download the metadata of the service it gives me an error: The remote name could not be resolved: win2008x64 (server name). On server, i have 2 bindings, one http, the other one is https.. How can i resolve this issue? EDIT: The document was understood, but it could not be processed. - The WSDL document contains links that could not be resolved. - There was an error downloading 'http://win2008x64:1668/Service.svc?xsd=xsd0'. - The