soap

Lazy Hibernate JPA using SOAP

試著忘記壹切 提交于 2019-12-24 07:14:04
问题 I have a bunch of annotated, interrelated POJOs that I want to create/modify/search over SOAP. I made a utility to eagerly load every detail of each POJO and create an XML string so I can send the entire POJO graph as a search result. Even though the graphs are very small (less than three nodes), the eager loading took a very long time (500ms/node). It seems like the bottleneck is having to eager the entire graph of each node. Is it somehow possible to just lazy load over SOAP? What are some

Spring WebService with Endpoint vs no Endpoint

ぃ、小莉子 提交于 2019-12-24 07:13:00
问题 I need to create a client application for consuming SOAP services. I need to create the client apps from 2 wsdl (from 2 different server applications too) Here's the code for the first Web Service EcommPromoWebService.java package com.ptdam.promo.webservices; import javax.jws.WebService; @WebService public interface EcommPromoWebService { String sayHi(String text); EcommPromoResponse inquiryPromo(EcommPromoRequest promoInquiryRequest); } EcommPromoWebServiceImpl.java package com.ptdam.promo

In soap there is WSDL for communication but in rest what is there ?

断了今生、忘了曾经 提交于 2019-12-24 07:06:19
问题 In SOAP there is WSDL for communication. I read in blogs that WSDL 2.0 supports REST but it is not properly define the REST so is there any equivalent for REST ? I'm doing communication using JSON data between client and server so i need something that properly fit for communication so is there is something for this ? 回答1: There are different proposals in the industry, such as WADL (see http://en.wikipedia.org/wiki/Web_Application_Description_Language ), but unfortunately there is no commonly

Web service works on Tomcat 6 but not on JBoss AS 6

百般思念 提交于 2019-12-24 06:51:30
问题 I autogenerated a SOAP webservice client from a WSDL (I use JAVA 1.6), and it works fine on Tomcat 6. However, when I put the client in a war and try to deploy it in JBoss Application Server 6.1 I get the following errors: Caused by: java.lang.ExceptionInInitializerError at com.sun.xml.ws.tx.common.Util.isJTAAvailable(Util.java:71) [:1.0] at com.sun.xml.ws.assembler.PipelineAssemblerFactoryImpl$WsitPipelineAssembler.isTransactionsEnabled(PipelineAssemblerFactoryImpl.java:468) [:1.0] at com

PHP SOAP fread() dynamic POST size

谁说胖子不能爱 提交于 2019-12-24 06:47:05
问题 Looking to read the file size of the SOAP POST, any best practices? $data = fopen('php://input','rb'); $content = fread($data,5000); $dom = new DOMDocument(); $dom->loadXML($content); Would like the 5000 to be dynamic as each SOAP POST size will be different or does this matter? Using fread() would be great 回答1: Umm. If you can read it with ' fread ', I see no reason you cannot read EXACT same text with ' file_get_contents() '. I use this a few times and remembering that I've try both. As far

Spring @AutoWired always null

为君一笑 提交于 2019-12-24 06:36:15
问题 I'm trying to call SOAP service from another system on my program. I've generated the java classes needed from WSDL by using wsimport command. Here's my program's configuration web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <display-name>PTDAM Promo Engine</display-name>

How to add retries to call to web service?

半腔热情 提交于 2019-12-24 05:58:07
问题 I have an application that makes a call to a web service that uses wsHttpBinding. I need to implement some sort of retry functionality to the web service call in case of connection timeout etc. What is the best way to do this? I have read about WS-ReliableMessaging, but isn't this something that the publisher of the web service have to implement on the service and not something that I have to do on the client side? 回答1: I am assuming your call is a write operation and so you need to ensure

How to add retries to call to web service?

时光总嘲笑我的痴心妄想 提交于 2019-12-24 05:57:13
问题 I have an application that makes a call to a web service that uses wsHttpBinding. I need to implement some sort of retry functionality to the web service call in case of connection timeout etc. What is the best way to do this? I have read about WS-ReliableMessaging, but isn't this something that the publisher of the web service have to implement on the service and not something that I have to do on the client side? 回答1: I am assuming your call is a write operation and so you need to ensure

Simaltaneous connections with PHP and SOAP?

旧时模样 提交于 2019-12-24 05:56:45
问题 I'm new to using SOAP and understanding the utmost basics of it. I create a client resource/connection, I then run some queries in a loop and I'm done. The issue I am having is when I increase the iterations of the loop, ie: from 100 to 1000, it seems to run out of memory and drops an internal server error. How could I possibly run either a) multiple simaltaneous connections or b) create a connection, 100 iterations, close connection, create connection.. etc. "a)" looks to be the better

WCF XML deserialization is being very picky about namespaces and aliases

我是研究僧i 提交于 2019-12-24 05:15:48
问题 I am writing a .net WCF SOAP service, trying to integrate with a Java client. The process is a bit unusual, because the client has specified the WSDL, and I have to create a service which can accept requests from them. Im getting some very finicky results when we try to perform the integration. Very subtle differences (that appear to be ok to my eyes) cause the XML deserialization to fail. This is the XML actually produced by the client, which ends up giving me null values for all the child