web-services

ASP.NET web application project: how to copy a referenced DLL's dependencies to the 'Temporary ASP.NET Files' folder?

混江龙づ霸主 提交于 2019-12-25 02:28:30
问题 I have a web application project WAP that references class library CL. CL needs some xml configuration files in order to work properly. In WAP's csproj, I add a PostBuildEvent to copy the necessary XML files to the TargetDir. When I build, the folder structure is good; the bin folder contains CL and the xml files. When I run the webservice, CL throws an error because it can't find the xml files: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\WINDOWS\Microsoft.NET

Need to send Byte Array through Webservice in jmeter

你说的曾经没有我的故事 提交于 2019-12-25 02:26:57
问题 I am supposed to convert an image into array bytes and send it along with the destination location in a Webservice . I have this code written in beanshell File file = new File("\\PICS\\k6.jpg"); FileInputStream in = new FileInputStream(file); ByteArrayOutputStream bos = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int i=0; for (int i; (i = in.read(buffer)) != -1; ) { bos.write(buffer, 0, i); } in.close(); byte[] imageData = bos.toByteArray(); bos.close(); vars.put("imageData",

MS Office Webservice toolkit for Office 2007?

萝らか妹 提交于 2019-12-25 02:25:26
问题 There is an article here for MS Office 2003 http://metrix.fcny.org/wiki/display/tips/How+to+Create+a+Microsoft+Access+Client+for+a+SOAP-based+Web+Service+API When I tried to install http://www.microsoft.com/downloads/en/details.aspx?FamilyID=fa36018a-e1cf-48a3-9b35-169d819ecf18&DisplayLang=en it says it requires Office 2003 whereas I have Office 2007 and I can't find update for Office 2007 ? Does it exist if not how do I access a soap webservice from VBA ? 回答1: I believe the Web Services

Sending and Receiving JSON data from a restful webservice ?

痴心易碎 提交于 2019-12-25 02:24:24
问题 Here is my POJO Code : /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.akapoor.ws.testws.model; import java.io.File; import java.io.IOException; import javax.annotation.ManagedBean; import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import

Web Service Call Via CXF Gives Null Parameters

旧街凉风 提交于 2019-12-25 02:23:01
问题 I have two code projects both using CXF to use web services. When I make a call from project A to project B, the method I am calling receives null parameters. I've turned on logging and the inbound message does indeed contain the correct parameters. I have also tried calling my service from SoapUI (a webservice testing tool). This passes over the parameters as I expect. Anyone have any ideas what's going wrong? The service interface: @WebService public interface IShortlistService { public

getting specific object of xml which can be parsed using XStream

懵懂的女人 提交于 2019-12-25 02:21:48
问题 I'm new to XML parsing and want to convert XML file resulting from a web service to list of POJOs. as i have done some work with JSon and found it very easy to work with. while in the case of XML there is quiet same process but i cant find way of traversing through the Hierarchy and reaching a specific node to be parsed to POJO. As i explain my question with example . here is response in XML format <hash> <resp_status>1</resp_status> <message>success</message> <errors></errors> <calendars>

powershell smtp has no mailbox associated with it

谁都会走 提交于 2019-12-25 02:15:10
问题 I am trying to input an appointment into calendar in exchange 2010 using powershell. But i get an error on the last line to save. the smtp has no mailbox associated with it. I am using admin user to do this so i don't understand why it is not working. below is the code Param ([string]$calInputFile = $(throw "Please provide calendar input file...")) # Testing #$calinputfile="d:\calendar_inject.csv" # Connect to Live@edu # capture the admin LiveID username in a variable $Username =

receive an excel file as response in javascript from a Rest service

本秂侑毒 提交于 2019-12-25 02:14:04
问题 I am calling a webservice call from javascript to get an excel file as response from java appl from server. I am kind of stuck how to get the response and access it. Here in the webservice code- I am getting data from a list(lots of data more than 90000 records) and writing it to an excel sheet and sending the excel file as response(I am not sure whether the code is right-I tested it and no exceptions but not sure on logic) and then the Javascript code- submitReport method calls the Rest

How to pass JSON data and convert to Object in WebSerivce

左心房为你撑大大i 提交于 2019-12-25 02:13:47
问题 I want to be able to convert a JSON object that is passed through ajax(jquery) in my webservice. At the moment I can get it to return the message "Hello World" but I don't know how to access the passed JSON data and then convert to a collection of type IList so I can iterate over the collection. I've had a look around on stackoverflow but I'm getting confused what to do can some one help me. Here is my code: jQuery: var data = { dvals: [{'Name' : 'Acer', 'Count' : '2'}, {'Name' : 'HP', 'Count

Problems with Visual Basic 6.0 and MagentoSoap

ぐ巨炮叔叔 提交于 2019-12-25 02:08:33
问题 since some time I am working to make a tool in in Visual Basic 6 which can ‘talk’ with the magento-Soap-Inferface. I am using the following versions: - Magento in Version 1.5.0.0 - Microsoft Soap Tookit 3.0 for Visual Basic 6 coding in VB like here : Private Sub Command1_Click() Dim paramstring As String Dim soapClient, sessionID Dim attributeSets() As returnData Set soapClient = CreateObject("MSSOAP.SoapClient30") soapClient.MSSoapInit "http://localhost/magento/index.php/api/soap/?wsdl"