web-services

Silverlight WCF Service Cross Domain Question

删除回忆录丶 提交于 2020-01-02 04:50:28
问题 I have a silverlight app (hosted at intranet.mydomain.net) and a WCF service at (webservices.mydomain.net) Do I need a cross-site policy file? If so, what would it look like to only allow access from intranet.mydomain.net? 回答1: Yes, you will need a clientaccesspolicy.xml file in the ROOT of your service domain(webservices.mydomain.net). By default, Silverlight supports calls to Web services on the same domain or site of origin. Same domain means that calls must use the same sub domain,

Access web service from GWT

自作多情 提交于 2020-01-02 04:47:11
问题 Is there any way how I can access a web service from GWT using its WSDL? Previously I was trying to use the generated classes from ws-import.... but then someone pointed out to me that GWT cannot handle all Java, just a subset of it, hence it won't understand the ws-import classes. Thanks and regards, Krt_Malta 回答1: GWT can access web services using a RequestBuilder, which makes HTTP calls to a service and then gets access to its response. Since your web service is using SOAP, the response

.NET Web Service (asmx) Timeout Problem

◇◆丶佛笑我妖孽 提交于 2020-01-02 04:45:07
问题 I'm connecting to a vendor-supplied web ASMX service and sending a set of data over the wire. My first attempt hit the 1 minute timeout that Visual Studio throws in by default in the app.config file when you add a service reference to a project. I increased it to 10 minutes, another timeout. 1 hour, another timeout: Error: System.TimeoutException: The request channel timed out while waiting for a reply after 00:59:59.6874880. Increase the timeout value passed to the call to Request or

How to push data to a .NET CF client?

淺唱寂寞╮ 提交于 2020-01-02 04:43:11
问题 Although polling a webservice is possible, do you know of another method to push changes to a mobile client except using the exchange server mail transport? 回答1: As Mark Seemann worte: I once did a POC of a client notification system for .NET CF when I was in the Microsoft Dynamics Mobile team. At the time I didn't find any Out-Of-The-Box solutions that could do this and I didn't want to piggyback on the Exchange Server connection since the intended users didn't have a AD account and most

How to change “SOAP-ENV” default prefix of Spring-WS

≡放荡痞女 提交于 2020-01-02 03:44:06
问题 I've created a web service using Spring-WS. To maintain compatibility with the old system, I need to change namespace prefix from SOAP-ENV to soap . I know that SOAP-ENV and soap are just namespace prefixes. As long as they refer to the correct namespace ( "http://schemas.xmlsoap.org/soap/envelope/" ), it should be fine. But the old system hard coded the parser code to expect only soap namespace prefix. Current response: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap

WSS4j elements order during signing SOAP message

牧云@^-^@ 提交于 2020-01-02 03:43:09
问题 I'm implementing web service client in Java which uses wss4j 1.6.8 for WS-Security (to be more precize I need to sign a SOAP message). Server side requires requests to have the following structure: <Envelope> <Header> <wsse:Security mustUnderstand="1"> **<wsu:Timestamp wsu:Id="Timestamp-913ca68e-05ed-44e1-9d6c-b2f293da5a1d"> <wsu:Created>2012-12-21T11:37:31Z</wsu:Created> <wsu:Expires>2012-12-21T11:42:31Z</wsu:Expires> </wsu:Timestamp>** <wsse:BinarySecurityToken> MIID2jCCAsKg... </wsse

What's the difference between WSDL,DISCO and EVENT?

不羁的心 提交于 2020-01-02 03:39:27
问题 All of them are web services, but what's the difference? 回答1: WSDL (Web Service Description Language) is a standard notatation for describing a Web Service in xml. DISCO is a tool for querying SOAP and similar services and extracting useful information from the WSDL provied. EVENTs is a proposed standard which uses WSDL and extends WSDL to support publish subcribe type event driven processes. 回答2: WSDL : WSDL is a markup language that describes the web service. In order to use this Web

BigDecimal has scientific notation in soap message

心不动则不痛 提交于 2020-01-02 03:20:10
问题 I have got strange problem with our webservice. I have got object OrderPosition which has got a price (which is xsd:decimal with fractionDigits = 9). Apache CXF generate proxy classes for me, and this field is BigDecimal. When I'd like to send value greater than 10000000.00000, this field in soap message has got scientific notation (for example 1.1423E+7). How can I enforce that the value has not been sent in scientific notation. 回答1: Here is one way this can be done. BigDecimal has a

Pre authenticate web service request in C#

霸气de小男生 提交于 2020-01-02 03:13:12
问题 I'm having a problem with calling a web service request in C#. The service and request are working fine in Soap UI with the option 'Authenticate Preemptively' enabled (File, Preferences, HTTP Settings). Without this setting enabled the service returns a 'Java.Lang.NullPointerException'. The problem I'm having is that I do not know how to enable this setting in a C# context. I have a .NET 3.5 class library which holds a so called service reference to the specific service. This is a simple code

Mapping Java Date Object to XML Schema datetime format

南笙酒味 提交于 2020-01-02 03:13:07
问题 I am having some problem mapping my Java Data Type to standard Schema Date data type. I have a simple class that I annotated like this. The period instance variable is of Java Date object type. @XmlAccessorType(value = XmlAccessType.NONE) public class Chart { @XmlElement private double amount; @XmlElement private double amountDue; @XmlElement private Date period; //constructor getters and setters } Here is my Web Service @WebService public class ChartFacade { @WebMethod public Chart getChart(