wsdl

Should web services be transactional?

巧了我就是萌 提交于 2019-12-22 10:48:48
问题 I am investigating writing web services for an application. Within this application we do everything within transactions as "units of work" are often not single entities but multiple entities spanning multiple tables. There are situations where we want "All or nothing" and a transaction makes perfect sense. I am not really sure how to do this in a web-service however, nor if I even should. I feel like web services should be stateless and the provided API should be built on a per-entity basis,

WSDL functions with the same name. How to choose one?

╄→尐↘猪︶ㄣ 提交于 2019-12-22 10:45:04
问题 I'm using a provider wsdl with SoapClient but when I use the command __getFunctions I get something like this: method1Rsp service(method1Req $parameters) method2Rsp service(method2Req $parameters) method3Rsp service(method3Req $parameters) method4Rsp service(method4Req $parameters) method5Rsp service(method5Req $parameters) So,I can only call the function "service()" or use __soapCall('service',$info) but I always get the "method1" schema. If I use __doRequest() I can send the method I want

apache camel cxf https not working

五迷三道 提交于 2019-12-22 09:29:13
问题 I am trying to publish a webservice using apache camel cxf. I am able to access the published webservice using http. However I am trying to configure the same using https. But I am not able to get it to work. below are parts of spring context and wsdl files <camel-cxf:cxfEndpoint id="myEndoint" address="http://localhost:9000/PostXml/" serviceClass="com.XXXXXXXXXX.techquest.ServicesPortType" xmlns:ssp="http://techquest.interswitchng.com/" endpointName="ssp:PostXml" serviceName="ssp:PostXml" />

Replacing date of type XmlGregorianCalendar generated by wsdl to java.util.Date?

心已入冬 提交于 2019-12-22 08:59:05
问题 I am working on an application in which we give call to Third Party SAP system using files generated through wsdl using Spring webservices. One of the file generated using wsdl through ws import have Date attribute of type "XMLGregorianCalendar" and in response we are getting null value for corresponding field . I want to convert date from XmlGregorianCalendar to java.util.Date. Have referred : how replace XmlGregorianCalendar by Date? but not able to provide appropriate xjb bindings through

Where to place version information in a wsdl?

无人久伴 提交于 2019-12-22 08:36:50
问题 I have a web service where the definitions are located in the wsdl-file and the schema in an external xsd-file. In the xsd file, there is the schema tag, which provides an attribute 'version' that I can use to document the current version. Is there something similar in the wsdl format (WSDL 1.1)? If not, what is the best place to store a general version attribute for documentation purposes? Please keep in mind that I do not want to achieve backward compatibility, like it is described in http:

Why is the WSDL fetched by JAX-WS on every WS call?

倾然丶 夕夏残阳落幕 提交于 2019-12-22 08:36:20
问题 I'm playing around with NetBeans and JAX-WS and I see that the WSDL is fetched every time a WS is called. Is there a way to avoid this? Is there some configuration? 回答1: It is due to the support for late-binding and the myriad of configuration options that WS-Policy and other WSDL features bring to the table. See the JAX-WS RI FAQ. For the trivial case, yes it is a bit silly and adds some overhead. Once you get into a complex environment with multiple implementations running with slightly

Where to place version information in a wsdl?

∥☆過路亽.° 提交于 2019-12-22 08:36:02
问题 I have a web service where the definitions are located in the wsdl-file and the schema in an external xsd-file. In the xsd file, there is the schema tag, which provides an attribute 'version' that I can use to document the current version. Is there something similar in the wsdl format (WSDL 1.1)? If not, what is the best place to store a general version attribute for documentation purposes? Please keep in mind that I do not want to achieve backward compatibility, like it is described in http:

How to cache a WSDL with Java-WS

纵然是瞬间 提交于 2019-12-22 08:28:52
问题 I've created an app that interacts with a SOAP service using java WS. I generate classes and manage the WSDL using the built in netbeans functions. Every time I run the application, it has to download the WSDL and parse it again. The WSDL is frozen at each version so I don't think this is necessary. I've tried to reference it as a local file, but then my app complains it can't find the file when it's installed on another machine. Does anyone know how I can stop Java WS needing to re-parse the

Quickest way to access a webservice with WSDL in Java

强颜欢笑 提交于 2019-12-22 08:17:59
问题 I need to access a webservice from Java. The service has a WSDL. Now how do I get to calling its operations? I've already used wsimport on it, but that only generates XML objects for the operations/responses, nothing to actually call them. I've looked at Spring-WS but it doesn't look like it's completely what I want (even though it might be part of the solution). The word "wsdl" doesn't appear in that page at all. 回答1: wsimport does not only generate the Objects needed for communication with

How to make xsd element extend another

流过昼夜 提交于 2019-12-22 08:07:06
问题 I have three different XML elements that have some common tags. For e.g: Person has name, age, sex Then i have Manager, Employee that would share the three fields the Person has plus Manager, Employee specific fields like managerNo, employeeNo etc. Can i write something in xsd that would be like this 1. Declare Person element <xsd:element name="Person"> <xsd:annotation> <xsd:documentation>Person Request</xsd:documentation> </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element name=