soap

Uncaught SoapFault exception: [HTTP] Error Fetching http headers

拜拜、爱过 提交于 2019-12-18 01:40:36
问题 I'm trying to create a soap connection to Magento's web services, however I'm getting an error when I try and create an instance of the soap client class. I can view the wsdl file in firefox without problems and I can watch php make the request for the wsdl in apaches logs but it still fails. Nusoap can connect. $proxy = new SoapClient('someaddress?wsdl'); The error is <b>Fatal error</b>: Uncaught SoapFault exception: [HTTP] Error Fetching http headers in /home/sites/xxx/xxx_main/system

webservice

孤街醉人 提交于 2019-12-18 00:28:50
Web services 有两种类型的应用 可重复使用的应用程序组件 有一些功能是不同的应用程序常常会用到的。那么为什么要周而复始地开发它们呢? Web services 可以把应用程序组件作为服务来提供,比如汇率转换、天气预报或者甚至是语言翻译等等。 连接现有的软件 通过为不同的应用程序提供一种链接其数据的途径,Web services有助于解决协同工作的问题。 通过使用 Web services,您可以在不同的应用程序与平台之间来交换数据。 Web services 平台的元素: SOAP (简易对象访问协议) UDDI (通用描述、发现及整合) WSDL (Web services 描述语言) UDDI 是一种目录服务,通过它,企业可注册并搜索 Web services。 UDDI 指通用的描述、发现以及整合(Universal Description, Discovery and Integration)。 UDDI 是一种用于存储有关 web services 的信息的目录。 UDDI 是一种由 WSDL 描述的网络服务接口目录。 UDDI 经由 SOAP 进行通迅。 UDDI 被构建于 Microsoft .NET 平台之中。 WSDL 是基于 XML 的用于描述 Web Services 以及如何访问 Web Services 的语言。 WSDL 指网络服务描述语言

Hosting WCF soap and rest endpoints side by side

血红的双手。 提交于 2019-12-17 22:43:00
问题 I have written a service that I would like expose both via rest and soap. Everything I read about WCF 4.0 says that I just need to expose 2 endpoints with differing behaviors to do this. But I cannot get it to work. Here is my service contract: [ServiceContract] public interface MyService { [OperationContract] [WebGet(UriTemplate="data/{value}")] string GetData(string value); } Here is my web.config: <?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework=

Adding SOAP implicit headers to WSDL

别来无恙 提交于 2019-12-17 22:35:25
问题 My question is similar to this. How To Pass Soap Header When WSDL Doesn't Define It? But is different. For a web service I use, all methods need authentication which is sent in cleartext inside a SOAP header. However, my WSDL doesn't include any soap header information. I have a custom platform tool which I must use to generate code from the WSDL. Since the header info is not available, am unable to use the generated class directly - I do not want to manually modify the code to accommodate

Examples of the best SOAP/REST/RPC web APIs? And why do you like them? And what's wrong with them? [closed]

旧巷老猫 提交于 2019-12-17 22:28:57
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . At my company we're starting to branch into web APIs to access and update our data; initially for partners but then likely to the

How to generate a SOAP message with a fully populated request from WSDL without code gen

陌路散爱 提交于 2019-12-17 22:23:42
问题 I would like to ask you how I can generate a SOAP request/response in a XML format on the basis of the WSDL file. The target platform is JVM so a wide set of languages can be used (e.g. Java, Scala, Groovy, JRuby, Jython, etc.). The SOAP request/response generation should be done purely on the XML level without any class-generation and class-loading (WSDL2Java, JAXB or similar approaches are inappropriate in this case). Generation should be done programmatically with the usage of open-source

How do I get the XML SOAP request of an WCF Web service request?

自古美人都是妖i 提交于 2019-12-17 21:26:51
问题 I'm calling this web service within code and I would like to see the XML, but I can't find a property that exposes it. 回答1: I think you meant that you want to see the XML at the client, not trace it at the server. In that case, your answer is in the question I linked above, and also at How to Inspect or Modify Messages on the Client. But, since the .NET 4 version of that article is missing its C#, and the .NET 3.5 example has some confusion (if not a bug) in it, here it is expanded for your

Php SoapClient stream_context option

淺唱寂寞╮ 提交于 2019-12-17 21:15:41
问题 I want to use a third party's web service. To use the web service I need to connect with HTTPS. My problem is that for the development process I have a test api with an invalid certificate. I would like to set SoapClient no to verify the server's certificate. Here is the way I tried: $opts = array( 'ssl' => array( 'verify_peer' => false ), 'https' => array( 'curl_verify_ssl_peer' => false, 'curl_verify_ssl_host' => false ) ); $streamContext = stream_context_create($opts); $client = new

How do I use savon nested attributes! hash?

只谈情不闲聊 提交于 2019-12-17 20:35:46
问题 I'm looking at using Ruby savon for SOAP. For purely masochistic reasons I have to deal with SOAP elements having attributes. So, no problem, there is an example on the savon docs site which highlights this ability: { :person => "Eve", :attributes! => { :person => { :id => 666 } } }.to_soap_xml "<person id=\"666\">Eve</person>" My problem is how do I set attributes on child elements, for example, say I add an address child element to person: { :person => {:address => ""}, :attributes! => {

How to build stand-alone SOAP web services using Delphi?

落花浮王杯 提交于 2019-12-17 19:49:48
问题 How can I build a stand-alone SOAP-based Web Services using Delphi? Must work with Delphi 2009, but it'd be nice if it worked with older ones too. The built-in WebBroker Web Services creates CGI or ISAPI. It would be nice to create a stand-alone executable that I can control from bottom to top, especially during development. 回答1: RemObjects SDK for Delphi (RO/Delphi). Different messaging formats are provided, including our own highly efficient binary BinMessage format, as well as support for