wsdl

Java, Validate XML against an embedded schema in WSDL

不想你离开。 提交于 2019-12-20 01:38:34
问题 I have a .wsdl file with an embedded schema. I want to validate an XML file/string using that .wsdl file (the same way you would validate against an .xsd ). The schema is between the <types> tag. I have this so far: public boolean validate(String xmlString) { try { // Convert to input stream InputStream xml = new ByteArrayInputStream(xmlString.getBytes()); SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); Schema schema = schemaFactory.newSchema(new

WSDL, Enums and C#: It's still murky

随声附和 提交于 2019-12-19 18:27:10
问题 I tried to look this up online, but all the WSDL examples seem to not really explain if I should mark things as basetype string in the WSDL or int... Basically, I'm trying to make my WSDL so that I can represent an Enumeration. I have a C# Enum in mind already that I want to match it up to... public enum MyEnum { Item1 = 0, Item2 = 1, Item3 = 2, SpecialItem = 99 } I'm not sure how my WSDL should look... I figure it's one of two, but even then I'm not 100% sure... <wsdl:types> <xsd:schema

Working with large wsdl, can we trim it?

ε祈祈猫儿з 提交于 2019-12-19 18:26:40
问题 My webservice provider give me a large WSDL file, but we are going to use only a few function inside. I believe that the large WSDL have negative impact to the application performance. We use the webservice in client appliction, startup time and memory usage are issues. Large WSDL means that jax-ws will takes longer to do binding and will takes more memory for the stub class. Is is possible that we trim WSDL file to a lightweight version? Are there any tool for this purpose? I do not think my

Working with large wsdl, can we trim it?

前提是你 提交于 2019-12-19 18:25:35
问题 My webservice provider give me a large WSDL file, but we are going to use only a few function inside. I believe that the large WSDL have negative impact to the application performance. We use the webservice in client appliction, startup time and memory usage are issues. Large WSDL means that jax-ws will takes longer to do binding and will takes more memory for the stub class. Is is possible that we trim WSDL file to a lightweight version? Are there any tool for this purpose? I do not think my

SOAP WSDL Associative Arrays

浪尽此生 提交于 2019-12-19 17:30:51
问题 How can I define an associative array in a SOAP wsdl file? This is how I define an array element type so far: <wsdl:types> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="webservice.wsdl" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> <xsd:complexType name="ArrayOfString"> <xsd:complexContent> <xsd:restriction base="soapenc:Array"> <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType=

How to set minOccurs to 1

倾然丶 夕夏残阳落幕 提交于 2019-12-19 10:52:11
问题 I'm building an ASP.NET web service. I've got my code defined as below, but I can't figure out how to the the wsdl to specify the minOccurs of the FirstName and LastName properties. I want those as required, and can not be empty. Is it possible? [WebMethod()] public void TestMethod(TestClass Test) { ... } [Serializable] public class TestClass { public string FirstName { get; set; } public string LastName { get; set; } } 回答1: I have posted the detailed answer on another thread with the same

Date filter in Microsoft Dynamics NAV webservice

半城伤御伤魂 提交于 2019-12-19 10:19:23
问题 When sending a filter to the webservice in php everything works fine, but when we need to sort on dates we encountered a problem. We need to get all the objects modified after a certain date. In a page we have a date element, like so: <xsd:element minOccurs="0" maxOccurs="1" name="Last_Date_Modified" type="xsd:date"/> And we have tried the solution explained here on SO: Dynamics Nav (Navision) webservice ReadMultiple date filter But our date format is a bit different, ours looks like: 2013-01

Remove the namespace from Spyne response variables

随声附和 提交于 2019-12-19 10:07:30
问题 Implementing a WebService according to a specific WSDL. Client cannot be changed. Correctly processing request from Client, but Client is complaining on Response because of namespace in variables. What I want (soapUI response based on WSDL): <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cal="http://callback.foo.com/"> <soapenv:Header/> <soapenv:Body> <cal:foo_statusResponse> <result>SUCCESS</result> <notify>Thanks!</notify> </cal:foo_statusResponse> <

Soap WSDL ComplexType being posted as wrong argument type

醉酒当歌 提交于 2019-12-19 10:07:17
问题 I have a server (SoapUI) answering requests for a WSDL. When sending test requests, my server code is receiving a list of arguments, but I'm trying to achieve is a single argument, of complex type , eg: { ingredient_id => INT something => STRING ... } My types are as follow: <wsdl:types> <xsd:schema targetNamespace="/ingredient"> <xsd:element name="getIngredientInfo" type="tns:IngredientRequest"></xsd:element> <xsd:element name="getIngredientInfoResponse" type="tns:ingredient"></xsd:element>

Web service interoperability broken by developers incompetence?

落花浮王杯 提交于 2019-12-19 09:43:25
问题 How do you develop web services and how do you create WSDL? What do you include in WSDL? This question is based on observation that developers don't use WSDL properly. WSDL describes the service. I think that service description should include everything needed to use that service. So if I use any WS-* protocol I have to include WS-Policy describing that usage. I often visit MSDN forum related to WCF - .NET API for creating web services. Almost every day there appear question like: "I have