soap

Android, KSoap2 and .NET Web Service w/ parameters = NULL result

点点圈 提交于 2019-12-19 07:27:35
问题 Apparently this is a fairly often experienced issue. I'm not sure entirely where the problem lies, or what needs to be adjusted, but for the life of me I cannot retrieve anything other than a NULL result to my SoapObject or SoapPrimitive from my .NET XML web service with parameters. I've tried everything I've found on the net: Adding the .setXmlVersionTag = no change Using SoapObject instead of SoapPrimitive = no change Using SoapPrimitive instead of SoapObject = no change Using

WCF : The EncryptedKey clause was not wrapped with the required encryption token 'System.IdentityModel.Tokens.X509SecurityToken'

Deadly 提交于 2019-12-19 07:10:00
问题 I'm trying to use WCF client to connect to Java based web services Certificates I have been provided (self-signed) work perfectly in SOAPUI. Here is my setup: However, I'm having problems using WCF client. My app.config <bindings> <customBinding> <binding name="Example_TestBinding"> <security defaultAlgorithmSuite="TripleDesRsa15" authenticationMode="MutualCertificate" requireDerivedKeys="false" includeTimestamp="false" messageProtectionOrder="SignBeforeEncrypt" messageSecurityVersion=

How return custom XML response in soapServer response?

谁说我不能喝 提交于 2019-12-19 06:59:31
问题 I am setting up a SOAP webservice which takes XML input and has to return custom XML output. All this is defined in a WSDL. I apply soapServer for this (until someone says it has bugs preventing me from achieving my goal :-)). I haven't been able yet to return custom XML: I get some result which seems to be based on teh WSDL, with a standard root element name equal to the input XML one plus "Response". Actually that surprises me too so as a side question I wonder why that is and whether it

How to we use the SoapClient in Cakephp…?

▼魔方 西西 提交于 2019-12-19 06:57:51
问题 I have enabled SOAP in my local server. My code is: ini_set('soap.wsdl_cache_enabled', '0'); ini_set('soap.wsdl_cache_ttl', '0'); $client = new SoapClient('web_url'); $session = $client->login('username', 'pwd'); $result = $client->call($session, 'function_name', '<id>'); print_r($result); Here it's executed successfully when I run the code on separate php file. But I got this error: Error: Class 'App\Controller\SoapClient' not found when I try to run the code form CakePHP action. Please

Are CXF client proxies thread safe?

巧了我就是萌 提交于 2019-12-19 06:14:12
问题 I'm using CXF to generate SOAP client classes. In the CXF documentation, they write Are JAX-WS client proxies thread safe? Official JAX-WS answer: No. According to the JAX-WS spec, the client proxies are NOT thread safe. To write portable code, you should treat them as non-thread safe and synchronize access or use a pool of instances or similar. CXF answer: CXF proxies are thread safe for MANY use cases. The exceptions are: (I'm omitting their description of these use cases) For most "simple"

Unable to deploy the project in Apache tomcat with apache cxf

☆樱花仙子☆ 提交于 2019-12-19 05:58:48
问题 I have created a soap web service using spring 4.2.4, apache cxf 3.1.4 and maven 3.0. When I try to deploy the application, I am getting an error like below: WARNING: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pdpservice': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.aop.support.AopUtils.isCglibProxyClass(Ljava

How do I extract the inner exception from a soap exception in ASP.NET?

匆匆过客 提交于 2019-12-19 05:10:35
问题 I have a simple web service operation like this one: [WebMethod] public string HelloWorld() { throw new Exception("HelloWorldException"); return "Hello World"; } And then I have a client application that consumes the web service and then calls the operation. Obviously it will throw an exception :-) try { hwservicens.Service1 service1 = new hwservicens.Service1(); service1.HelloWorld(); } catch(Exception e) { Console.WriteLine(e.ToString()); } In my catch-block, what I would like to do is

Adding xsi:type and envelope namespace when using SUDS

爱⌒轻易说出口 提交于 2019-12-19 04:51:39
问题 I need to interact with a SOAP service and am having a lot of trouble doing so; would really appreciate any pointers on this. The original error message was: org.apache.axis2.databinding.ADBException: Any type element type has not been given After some research, it turns out that this is a disagreement between SUDS and the server has to how deal with type="xsd:anyType" on the element in question. I've confirmed using SOAPUI and after advice that the problem can be fixed by taking these steps:

Restful web service invocation in BPEL

元气小坏坏 提交于 2019-12-19 04:46:15
问题 My question is that: Is there any method that I can use restful web services such as Google Map or Youtube in BPEL. I know that BPEL works with SOAP web services that have WSDL file. But, I asked to do a project which should contain restful web services work with BPEL. I appreciate any hints,links and tutorials on the inetrnet. Note: I am very new to both web service and bpel concepts. I just implemented some samples from internet. I use eclipse helios, Apache Tomcat 7.0, Apache ODE server,

Can't call a webservice method using SOAPpy

99封情书 提交于 2019-12-19 04:44:14
问题 I am trying to call a webservice using SOAPpy: from SOAPpy import SOAPProxy url = 'http://www.webservicex.net/WeatherForecast.asmx' server = SOAPProxy(url); print server.GetWeatherByPlaceName('Dallas'); print server.GetWeatherByZipCode ('33126'); The server call fails: Traceback (most recent call last): File "soap_test.py", line 6, in <module> print server.GetWeatherByPlaceName('Dallas'); File "C:\usr\bin\Python26\lib\site-packages\SOAPpy\Client.py", line 451, in __call__ return self.__r_call