spring-ws

SPRING-WS No marshaller registered. Caused by SPRING IOC

…衆ロ難τιáo~ 提交于 2019-12-11 03:25:44
问题 I have a SOAP client service which works fine. The SOAP headers and request are managed in a SOAPConnector class . public class SOAPConnector extends WebServiceGatewaySupport { public Object callWebService(String url, Object request) { // CREDENTIALS and REQUEST SETTINGS... return getWebServiceTemplate().marshalSendAndReceive(url, request, new SetHeader(requestHeader)); } } I'm receiving the requested Data once I call my (SoapConnector) service on the main Class . @SpringBootApplication

No endpoint mapping found when setting up Spring Web Service

北城余情 提交于 2019-12-11 02:43:46
问题 I'm a beginner at setting up spring web-applications. I got this far but now I find myself stuck. I get the following error: WARNING: No endpoint mapping found for [SaajSoapMessage {http://mycompany.com/weather/schemas}GetCities] The main problem is that I have run out of ideas where to look for debug information. I fixed as many errors that I've seen, but now I can't even find something wrong in the logs. So I'm getting bit desperate. This my web.xml <web-app> <display-name>Weather report

Custom SOAP Faults in spring integration Fault code namespace

匆匆过客 提交于 2019-12-11 00:58:18
问题 I am trying to implement custom soap faults like below: @SoapFault(faultCode = FaultCode.CUSTOM, customFaultCode="{namespace}Server Error", faultStringOrReason="Error encountered when processing request message.") public class SystemFault extends BusinessException{ }. The soap fault thrown is of the below format: <.SOAP-ENV:Fault> <.faultcode xmlns:ns0="namespace">ns0:star:Server Error<./faultcode> <.faultstring xml:lang="en">Error Encountered when processing the request.<./faultstring> <.

Http Basic Authentication not working with Spring WS and WebServiceTemplate credentials

不羁岁月 提交于 2019-12-10 20:37:43
问题 I try to add HTTP Basic Auth credentials to my SOAP-Request using Spring(-WS). The Request itself works, but no credentials are submitted. The HTTP header should look like: [...] Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) Authorization: Basic mybase64encodedtopsecretcredentials= But the last row is not missing. In MyConfig.java, I configure the Bean (no XML): @Bean public WebServiceTemplate webServiceTemplate() { WebServiceTemplate template = new WebServiceTemplate(

SpringWS Junit Test Exception: No endpoint can be found for request [SaajSoapMessage

青春壹個敷衍的年華 提交于 2019-12-10 19:06:29
问题 I am getting an exception when I try to run the Spring Web Service JUnit Test Using the Spring WebService ServerSide Integration Test using MockWebServiceClient. When I run the WebService Junit Test, I'm getting an exception: No endpoint can be found for request [SaajSoapMessagehttp://schemas.xmlsoap.org/soap/envelope/}Envelope] Spring_WS_ServletConfig @Configuration @EnableWs @EnableTransactionManagement // @ComponentScan({ "com.springws.endpoint", "com.mybatis.", "com.mapstruct" }) //

Unable to access web service endpoint: Spring-WS 2

有些话、适合烂在心里 提交于 2019-12-10 18:20:14
问题 I'm new to Spring-WS and I have defined an endpoint based off a schema generated from JAXB annotated classes. However, when I try to access the endpoint via soapUI, I get the following error along with a 404 response code: No endpoint mapping found for [SaajSoapMessage {clip}clipClaimRequest] Any ideas as to what I'm doing wrong? Thanks for any help given. The endpoint class: @Endpoint public class TestEndpoint { @PayloadRoot(localPart = "clipClaimRequest", namespace = "clip")

Spring-WS WSDL Generation Problem

狂风中的少年 提交于 2019-12-10 17:18:30
问题 I'm trying to make a very simple web service and am having some difficulties making spring generate the correct wsdl. I've done my best to copy the example from this spring tutorial. If anyone has a clue about what I'm doing wrong I'd really appreciate the help. In essence, there is a single EndPoint called IncidentHeaderEndpoint (which currently has no functionality). I want calling clients send an xml request in the form: <browseIncidents> <responsibleManager>foo</responsibleManager> <

SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?

半世苍凉 提交于 2019-12-10 15:36:30
问题 I need help with calling a web service. I use org.springframework.ws.client to call WS, code looks like: Response response = (Response) getWebServiceTemplate().marshalSendAndReceive( "http://ip:port/DefaultRequestListener?workflow=WsdlCPF&soapAction=Import", request, new SoapActionCallback("http://ip:port/DefaultRequestListener?workflow=WsdlCPF&soapAction=Import")); Also I can call WS and receive response using this link http://ip:port/DefaultRequestListener?workflow=WsdlCPF&soapAction=Import

Publishing Static WSDL and related XSD schemas using Spring WS

馋奶兔 提交于 2019-12-10 14:00:02
问题 I have one module where I have my XSD schemas, where one schema can reference an other using relative path within schema location: <xs:import namespace="http://my.namespace.org" schemaLocation="../mypackage/my.xsd"/> Here I'm also using xjc to generate Jaxb beans from these xsd schemas. Now I have a module where is my web-service is implemetented, using spring-ws (2.0.4). And I want to use static WSDL and publish it with the xsd schemas, where the schema locations will be transformed to URL

How to set Jaxb2Marshaller list of XmlAdapters in Spring bean through XML?

╄→尐↘猪︶ㄣ 提交于 2019-12-10 13:27:11
问题 I'm trying to define a Jaxb2Marshaller bean in Spring-WS to use a custom adapter that extends XmlAdapter . I have the following in an XML file: <bean id="jaxb2Marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller"> <property name="classesToBeBound"> <list> <!-- various classes to be bound... --> </list> </property> <property name="schema" value="myschema.xsd" /> <property name="adapters"> <list> <value>com.lmig.am.claims.clip.ContactAdapter</value> </list> </property> </bean>