soap

How can I inspect what SUDs is generating/receiving in “sudo 0.4.1 jurko 5” and newer?

こ雲淡風輕ζ 提交于 2019-12-20 15:09:34
问题 This question is similar to this one: How can I output what suds is generating/receiving? The problem is that I am using the suds fork by Jurko and after version "0.4.1 jurko 5" the Client.last_sent() , Client.last_received() methods have been removed. So the question is how can we replace their functionality on new suds versions? PS. I know that I can decrease the debugging level but I would like if possible to be able to inspect the input/output programmatically. 回答1: You can use the

Logging SOAP Raw Response Received by a ClientBase object

末鹿安然 提交于 2019-12-20 14:16:51
问题 I have an application that uses a ClientBase object generated by a service reference to call a third party WCF SOAP service. Every once in awhile, the service call returns a fault exception instead with an exception message of "An error occurred while processing the request" which is completely generic. Even during service errors, there is supposed to be a trace ID value that comes back with the response so the developers of that service can debug/troubleshoot any issues. So, what I ideally

Onvif - trying to understand how it works

倾然丶 夕夏残阳落幕 提交于 2019-12-20 14:15:51
问题 First of all, I have no experience in working with ONVIF at all. I got myself a scholarship at a company and was asked to work with it (to control some cameras and get photos from them), but they don't know how it works either, so no-one can help me much... I was reading through the specifications available at the ONVIF webpage but I don't really get it. I know I have to use SOAP, C (I was asked to do the app in C), XML and web services. That much I understand but I don't know how am I

Manual verification of XML Signature

☆樱花仙子☆ 提交于 2019-12-20 12:41:03
问题 I can successfully do manual reference validation (canonicalize every referenced element --> SHA1 --> Base64 --> check if it's the same of DigestValue content) but I fail with the verification of the SignatureValue. Here's the SignedInfo to canonicalize and hash: <ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09

Understanding elementFormDefault qualified/unqualified when validating xml against a WSDL (xsd schema)

狂风中的少年 提交于 2019-12-20 12:27:24
问题 I'm trying to understand the implications of elementFormDefault="qualified/unqualified" in an XML schema which is embedded in WSDL (SOAP 1.1, WSDL 1). For example I have this schema inside a WSDL: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.example.com/library"> <xsd:element name="person"> <xsd:complexType> <xsd:sequence> <xsd:element name="name" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd

JAX-WS server-side SOAPHandler that returns fault gets “Internal Error” on WebSphere v8

女生的网名这么多〃 提交于 2019-12-20 11:55:19
问题 I have a server-side JAX-WS SOAPHandler (on WebSphere v8) that in certain cases needs to respond to the client with a SOAP response that it has in a String variable (let's call it responseXml ). When responseXml contains a successful (i.e., non-fault) SOAP message, JAX-WS sends the response to the client correctly. However, when responseXml contains a SOAP fault message, an "Internal Error" occurs, and the client gets a different fault response than the one in responseXml , as shown here:

Web Services简单介绍

徘徊边缘 提交于 2019-12-20 11:30:24
Web Services简单介绍 Web Services入门 一、Web Services简介 1.什么是Web Services? Web Services 是应用程序组件 Web Services 使用开放协议进行通信 Web Services 是独立的(self-contained)并可自我描述 Web Services 可通过使用UDDI来发现 Web Services 可被其他应用程序使用 XML 是 Web Services 的基础 2.它如何工作? 基础的 Web Services 平台是 XML + HTTP。 HTTP 协议是最常用的因特网协议。 XML 提供了一种可用于不同的平台和编程语言之间的语言。 3.Web services 平台的元素: SOAP (简易对象访问协议) UDDI (通用描述、发现及整合) WSDL (Web services 描述语言) 4.Web services 的未来 Web services 平台是简单的可共同操作的消息收发框架。它仍然缺少许多诸如安全和路由等重要的特性。但是,一旦 SOAP 变得更加高级,这些事项就会得到解决。 Web services 有望使应用程序更加容易通信。 二、为什么要使用Web Services? 几年前,Web services 的速度还没有快到让人们产生兴趣的程度。 感谢主要的 IT

Using PHP to call a WCF web service with multiple bindings

拜拜、爱过 提交于 2019-12-20 10:47:46
问题 I have a WCF web service which allows both Basic HTTP and WS-HTTP clients, both over HTTPS using user name & password authentication. This is achieved with two bindings on the same service. So, the service is at https://foo.com/Service.svc , the Basic HTTP (SOAP 1.1) endpoint is https://foo.com/Service.svc/Unp11 , and the WS-HTTP (SOAP 1.2) endpoint is https://foo.com/Service.svc/Unp . A client is trying to access this web service via PHP 5, using its built-in SOAP support, and is having

Why use SOAP for webservices?

非 Y 不嫁゛ 提交于 2019-12-20 10:36:13
问题 I have read a tutorial "web-service-php-mysql-xml-json". It seems everything is ok. But then why we should use soap for web services? 回答1: When building web services you can go two ways: SOAP REST Most people choose the path of less resistance, which is REST . This means simplicity, ease of development, using HTTP the way it's meant to be used, make good use of cache proxies, more human readable results etc. SOAP on the other end is more heavyweight than REST and is also backed up by a large

How do I represent dates without the timezone using Apache CXF?

若如初见. 提交于 2019-12-20 10:36:09
问题 I have a WSDL that specifies an element's type to be xs:date. When I use Apache CXF to generate the Java classes, it renders the variable as an javax.xml.datatype.XMLGregorianCalendar (all good so far). When CXF renders an XML document containing this, it renders it in this form (where -06:00 represents the time zone): 2000-01-18-06:00 How can I configure CXF not to render the timezone? 回答1: By default wsdl's xsd:date gets mapped to XMLGregorianCalendar . If this is not what you want then if