soap

SOAP request on Java not working, but does on PHP

喜你入骨 提交于 2021-02-11 14:55:19
问题 I've been trying to find information about this, but I can't seem to find anything related exactly to my problem. When I make a soap call, using PHP class SoapClient, the request works perfectly. But when I try to do the same on Java, I get an exception, saying the URL doesn't accept POST, I've seen people building Soap calls on PHP with Curl, using POST, but I don't really know what SoapClient do. Anyway, this is the PHP Code: $url = 'https://mail.myzimbra.mx/service/wsdl/ZimbraAdminService

CXFServlet throws java.lang.NoSuchMethodError:

时光总嘲笑我的痴心妄想 提交于 2021-02-11 14:17:37
问题 java.lang.NoSuchMethodError: org.codehaus.stax2.ri.EmptyIterator.getInstance()Lorg/codehaus/stax2/ri/EmptyIterator; at com.ctc.wstx.sw.OutputElementBase.getPrefixes(OutputElementBase.java:358) at org.apache.cxf.staxutils.StaxUtils.writeStartElement(StaxUtils.java:793) at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:741) at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:705) at org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor$SAAJOutEndingInterceptor.handleMessage

How to see the username on a WCF call trace

懵懂的女人 提交于 2021-02-11 12:41:02
问题 I have the following problem. I'm connecting to a Java SOAP service using WCF. On the java logs there seems to be a problem where the last user credentials are being sent instead of the current one, although just for the first call that the user makes. The problem is that I don't control the Java side and I don't know if the problem is with them as I can't find a place in my code where I think this may be happening. I want to confirm that the username that we are sending is the same one that

php SoapClient override __dorequest does not change xml after str_replace

帅比萌擦擦* 提交于 2021-02-10 16:02:13
问题 I override the php SoapClient class in order to add an attribute to the element. When I print the changed code, just before sending, the XML seems to be changed as supposed but when reviewing the XML by __getLastRequest() the XML seems not to have changed at all. In the code I try to add a attribute to the element. Maybe someone knows why the $request_new XML string not send to the server? (OutputXML() is just some nice formating with colering to html) class SoapClientDebug extends SoapClient

php SoapClient override __dorequest does not change xml after str_replace

我与影子孤独终老i 提交于 2021-02-10 16:00:37
问题 I override the php SoapClient class in order to add an attribute to the element. When I print the changed code, just before sending, the XML seems to be changed as supposed but when reviewing the XML by __getLastRequest() the XML seems not to have changed at all. In the code I try to add a attribute to the element. Maybe someone knows why the $request_new XML string not send to the server? (OutputXML() is just some nice formating with colering to html) class SoapClientDebug extends SoapClient

Spring boot ws: No adapter for endpoint

◇◆丶佛笑我妖孽 提交于 2021-02-10 02:30:49
问题 i'm trying to use spring boot ws in order to create a SOAP service, but i'm facing the exception "No adapter for endpoint...". here is my xsd <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://nisws.it.fastweb" targetNamespace="http://nisws.it.fastweb" elementFormDefault="qualified"> <xs:element name="doEventRequest" type="tns:doEventRequest"/> <xs:element name="doEventResponse" type="tns:doEventResponse"/> <xs:complexType name="doEventRequest"> <xs:sequence> <xs:element

Can't figure out how to return a Python dict/Json as xml using Spyne

[亡魂溺海] 提交于 2021-02-08 11:59:31
问题 I have fired up a WSGI application using Spyne for some SOAP services that I'm trying to build. I'm absolutely new to SOAP and Spyne in general and I can't seem to figure out how to return a JSON/Python dict as XML. This is what I've done. class Fruits(ServiceBase): @rpc(_returns=Iterable(Unicode)) def fruitify(self): fruits = {"apple" : "1", "orange" : ["2","3","4"]} return fruits I think the problem lies in the decorator I'm specifying using _returns . I tried reading the docs again and

How to comply with policy defined in WSDL

偶尔善良 提交于 2021-02-08 11:36:54
问题 I'm trying to access a SOAP web service using Zeep There is a publicly available WSDL, and a testing WSDL (has a self-signed cert) My code to test (from test site) is: from requests import Session from zeep import Client from zeep.transports import Transport from zeep.wsse.username import UsernameToken import xml.dom.minidom WS_USER_NAME = '<username>' WS_PASSWORD = '<password>' WS_WSDL = 'https://pre.ipddb.org/WS/Services/IpdDownloadService.svc?wsdl' session = Session() session.verify =

How to comply with policy defined in WSDL

大兔子大兔子 提交于 2021-02-08 11:36:02
问题 I'm trying to access a SOAP web service using Zeep There is a publicly available WSDL, and a testing WSDL (has a self-signed cert) My code to test (from test site) is: from requests import Session from zeep import Client from zeep.transports import Transport from zeep.wsse.username import UsernameToken import xml.dom.minidom WS_USER_NAME = '<username>' WS_PASSWORD = '<password>' WS_WSDL = 'https://pre.ipddb.org/WS/Services/IpdDownloadService.svc?wsdl' session = Session() session.verify =

HTTP Authorization in SOAP delphi

时光毁灭记忆、已成空白 提交于 2021-02-08 10:52:39
问题 I am trying to send a request to web service, this is the WSDL: http://www.smsmelli.com/class/sms/webservice/server.php?wsdl after long researching I underestand untyped array should replace with array of array of string; till here, it solved, but I realize my SOAP doesn't work properly. I check PHP action that works exactly same, then I find it sets Credential in Authentication in the header of HTTP from SOAP; in WireShark: -HyperText Transfer Protocol --Authorization: Basic Y3LIZ577838sdf=