web-services

spring-boot with spring-ws -SOAP Endpoint not accessable

三世轮回 提交于 2019-12-29 07:41:30
问题 I am playing around with spring-boot and i run into a problem. To create RESTful webservices is quite easy. But i am not able to run an soap service with spring-boot. Actually my Project hast the spring-boot-starter-web dependency. Is there an extra sprint-boot-starter needed that does not yet exist? What are some workarounds? If i have a web.xml for the SOAP service can i include it somehow in the initialization process? I know that a similar question already exists, but it did not solve my

Blank value in web service for Int64 type

て烟熏妆下的殇ゞ 提交于 2019-12-29 07:41:28
问题 I consume a web service that has a numeric element. The Delphi wsdl importer sets it up as Int64. The web service allows this element to be blank. However, because it is defined as Int64, when I consume the web service in Delphi without setting a value for it, it defaults to 0 because it's an Int64. But I need it to be blank and the web service will not accept a value of 0 (0 is defined as invalid and returns an error by the web service). How can I pass a blank value if the type is Int64? 回答1

How can I prevent an out-parameter to end up return parameter in a WCF web service?

你离开我真会死。 提交于 2019-12-29 07:36:21
问题 If my contract looks as follows: [OperationContract] void DoSomething(int id, out string moreInfo); this ends up looking like: string DoSomething(int id); when you import a web service reference. Is it possible to influence the auto-conversion of the order of the parameters? It was already surprising to find all out-parameters at the beginning of the function signature, but that was still workable, but we'd like void-methods to continue being void-methods. Or is this a SOAP limitation? 回答1:

Set up an Eclipse Dynamic Web Project referencing another project

懵懂的女人 提交于 2019-12-29 07:04:49
问题 I've got a simple Dynamic Web project set up in Eclipse 3.6 Helios, but am having trouble getting it to make use of the code in another project that I've got. I've added a reference to my other project to the build path of my web project, and I've got no problems in terms of compiling , only in terms of deploying and testing the result. The built web application doesn't have a jar in the WEB-INF/lib directory, so fair enough it can't find the code. The question is how I set this up. I've

Set up an Eclipse Dynamic Web Project referencing another project

坚强是说给别人听的谎言 提交于 2019-12-29 07:03:53
问题 I've got a simple Dynamic Web project set up in Eclipse 3.6 Helios, but am having trouble getting it to make use of the code in another project that I've got. I've added a reference to my other project to the build path of my web project, and I've got no problems in terms of compiling , only in terms of deploying and testing the result. The built web application doesn't have a jar in the WEB-INF/lib directory, so fair enough it can't find the code. The question is how I set this up. I've

Use CXF libraries in Wildfly deployment with Maven artifact provided

房东的猫 提交于 2019-12-29 07:03:42
问题 Im trying to deploy a project containing an JAX-WS Interface to a wildfly 8.2 server. The project is packed as a war. Within that project I would like to use interceptors. import org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor; public class ReplyToHeaderInInterceptor extends AbstractSoapInterceptor { /*code*/} I'm using Maven with the "provided" tag, in order to not receiving the following error: Apache CXF library (cxf-rt-bindings-soap-3.1.1.jar) detected in ws endpoint

Use CXF libraries in Wildfly deployment with Maven artifact provided

百般思念 提交于 2019-12-29 07:03:33
问题 Im trying to deploy a project containing an JAX-WS Interface to a wildfly 8.2 server. The project is packed as a war. Within that project I would like to use interceptors. import org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor; public class ReplyToHeaderInInterceptor extends AbstractSoapInterceptor { /*code*/} I'm using Maven with the "provided" tag, in order to not receiving the following error: Apache CXF library (cxf-rt-bindings-soap-3.1.1.jar) detected in ws endpoint

How to change JAVAX-WS Endpoint binding to SOAP 1.2?

荒凉一梦 提交于 2019-12-29 06:46:11
问题 I'm publishing a test WS implementation using Endpoint.publish() for consumption in Visual Studio. According to the documentation the default SOAP binding is 1.1 and it is possible to change the bindings, but I can't figure out specifically how to change the binding to 1.2 . Any help is appreciated! 回答1: With JAX-WS 2.x you can either enable SOAP 1.2 via config file or via Java 5 annotation. See here (original, now broken link) for more details. 来源: https://stackoverflow.com/questions/5821762

Generate webservice from wsdl

江枫思渺然 提交于 2019-12-29 06:44:28
问题 This is maybe a really simple question, but I couldn't locate an answer: For a client I need to HOST a webservice. The client has sent me a wsdl file that the webservice should 'implement'. How do I go about that? I've generated any number of client-rpoxies but this is the other way around. I can use both ASP.NET 2.0 webservices or Windows Communication Foundation. 回答1: wsdl.exe /server. Generates an abstract class for an XML Web service based on the contracts. The default is to generate

XML serialization, encoding

元气小坏坏 提交于 2019-12-29 06:39:12
问题 using System; public class clsPerson { public string FirstName; public string MI; public string LastName; } class class1 { static void Main(string[] args) { clsPerson p=new clsPerson(); p.FirstName = "Jeff"; p.MI = "A"; p.LastName = "Price"; System.Xml.Serialization.XmlSerializer x = new System.Xml.Serialization.XmlSerializer(p.GetType()); x.Serialize(Console.Out, p); Console.WriteLine(); Console.ReadLine(); } } taken from http://support.microsoft.com/kb/815813 1) System.Xml.Serialization