soap

PHP Soap client, Java SOAP server

∥☆過路亽.° 提交于 2019-12-24 16:48:02
问题 I am writing PHP SOAP client that will connect to Java SOAP web service and the cliente needs to fetch some data from web service. Web service wsdl files: http://test.iaeste.net:8080/iws-ws/accessWS?wsdl http://test.iaeste.net:8080/iws-ws/exchangeWS?wsdl My code: <?php $soapURL = "http://test.iaeste.net:8080/iws-ws/accessWS?wsdl" ; $options = array('features' => SOAP_USE_XSI_ARRAY_TYPE + SOAP_SINGLE_ELEMENT_ARRAYS); $soapClient = new SoapClient($soapURL, $options); $soapResult = $soapClient-

Azure Long-running external web service calls

我只是一个虾纸丫 提交于 2019-12-24 16:17:30
问题 I've written a windows service in C# that interfaces with a third party via external web service calls (SOAP). Some of the calls respond quickly and some slowly (for example, quick = retrieving a list of currencies; slow = retrieving a historical value of currencies per product over many years) The external service works fine when I run it on my local machine - the quick calls runs for about 20 seconds; the slow calls runs for about 30 minutes. I can't do anything about the speed of the 3rd

Getting Meeting by ICalUid in EWS

百般思念 提交于 2019-12-24 15:51:55
问题 I'm trying to send a bare bones SOAP request to my Exchange 2010 SP2 server, in order to find a meeting by ICalUid, inspired by this great answer by Glen. '<soap:Envelope ' + 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' + 'xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" ' + 'xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" ' + 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' + ' <soap:Header>' + ' <t:RequestServerVersion Version=

Consume SOAP Web-service in Play 1.x framework

孤街醉人 提交于 2019-12-24 15:36:57
问题 I just want to know is there any way to consume a SOAP web-service inside Play framework specifically version 1.x.x Thanks 回答1: The other answers are of course valid, but Play comes with a few handy classes for this kind of stuff. You will need to parse the response by hand though. Start with the WS class. It can be used to post/get or whatever with all kinds of services. I use it for SOAP requests and REST calls for instance. Example: HttpResponse httpResponse = null; String username = "";

Should dateTime elements include time zone information in SOAP messages?

狂风中的少年 提交于 2019-12-24 14:26:54
问题 I've been searching for a definitive answer to this, and the XML schema data types document seems to suggest that timezones are accepted, yet I found at least one implementation which does not properly convert time zones ( NUSOAP ). To make sure that the problem is not at my end, I'd like to know if a format such as 2009-11-05T11:53:22+02:00 is indeed valid and should be parsed with timezone information, i.e. as 2009-11-05T13:53:22 . 回答1: Given the following sentences from the w3c schema

Apache CXF - How to register a SOAP service without Spring?

北城余情 提交于 2019-12-24 14:12:45
问题 I need to register a SOAP service without Spring configuration. I know it it is possible to do that in case of RESTFUL service (by using the CXFNonSpringJaxrsServlet and configuring in web.xml) but how could I use something similar for a SOAP service? This is my original applicationContext.xml: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://cxf.apache.org/core" xmlns

Client Cannot find dispatch method for {}

China☆狼群 提交于 2019-12-24 13:52:21
问题 I have this sample code: private static final String endpoint = "https://www.***.**:443/WSEndUser?wsdl"; public static void main(String[] args) throws SOAPException { SOAPMessage message = MessageFactory.newInstance().createMessage(); SOAPHeader header = message.getSOAPHeader(); header.detachNode(); /* SOAPEnvelope envelope = message.getSOAPPart().getEnvelope(); envelope.setAttribute("namespace","namespaceUrl"); */ SOAPBody body = message.getSOAPBody(); QName bodyName = new QName("getVServers

HowTrying to consume Rest api of Sharepoint from java client but getting status code 403 Forbidden

北战南征 提交于 2019-12-24 13:40:06
问题 I am trying to get files using rest api of Sharepoint through java client, but getting 403 Forbidden error code. Client c = Client.create(); WebResource resource = c.resource("http://URL/_api/web/GetFolderByServerRelativeUrl('/Folder')/Files"); String userCredentials = "Username:Password"; resource.header("Authorization", "Basic " + new String(new Base64().encode(userCredentials.getBytes()))); resource.header("Accept","application/json; odata=verbose"); String response = resource.get(String

Apache Camel - Receiving SOAP response with empty body

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 13:33:55
问题 Created SOAP service using Apache camel 2.15.3 and everything works fine, even the response SOAP body is valid. Camel 2.15.3 is dependent on cxf 3.0.6 But when i updated cxf-core to 3.1.3, everything works fine, except the SOAP response body is EMPTY. There is no error logs, and the server starts up normally. am i missing some dependencies ? POM.xml <properties> <log4j.version>1.2.17</log4j.version> <camel.version>2.15.3</camel.version> <spring.version>4.1.6.RELEASE</spring.version> <cxf

ws-addressing in soap request programatically

∥☆過路亽.° 提交于 2019-12-24 13:15:47
问题 I am trying to use a third party soap based web service into my project. While sending manual soap requests via soap-ui, it is getting timed out but when i am adding check on enable ws-addressing through soap-ui, it works smoothly. Now the issue is, i am unable to integrate this into my existing app as ws-addressing isn't enabled in code anywhere. Any suggestion on how this can be done? Codebase is in c# 回答1: What makes a difference in SoapUI with "Enable/Disable WS-A addresing" checked or