jax-ws

jax-ws regarding endpointinterface

蹲街弑〆低调 提交于 2020-01-22 09:29:12
问题 have defined a Java Interface with the annotation @WebService Compiled the code which went fine Example: @WebService public interface HelloWorldIfc{ Now I tried to define an endpointinterface as @WebService (endpointInterface = "com.ws.HelloWorldIfc") public interface HelloWorldIfc{ This compiled fine too So - should I be defining the endpoint interface on the interface or on implementing class ? is this attribute of any use - what is its purpose ? what happens if I dont define it - what do I

Maven: extract files from jar

旧街凉风 提交于 2020-01-21 11:47:06
问题 I'm developing a client application of a WebService and I have the corresponding WSDL file inside a jar. I'm using ant to generate the java code from the wsdl with the following build.xml: <project name="wsimport" default="wsimport" basedir="."> <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport" /> <target name="wsimport"> <echo message="Starting wsimport"/> <mkdir dir="target/generated-sources/jaxws-wsimport"/> <wsimport wsdl="???" sourcedestdir="target/generated-sources

Create Enveloped Signature with CXF and WSS4J

 ̄綄美尐妖づ 提交于 2020-01-16 12:23:50
问题 I am currently creating a SOAP-Client in Java with help of Apache CXF. I've generated the Service classes from a given WSDL and configure the client programmatically.(Just to make clear, that I'm not using Spring configuration). The service I'm calling has the requirement that each Request I send, needs to be signed. What I did so far is creating my client and add the WSS4JOutInterceptor in order to sign the message. Client client = ClientProxy.getClient(soapService.getRawSoapInterface()); /

Create Enveloped Signature with CXF and WSS4J

妖精的绣舞 提交于 2020-01-16 12:22:43
问题 I am currently creating a SOAP-Client in Java with help of Apache CXF. I've generated the Service classes from a given WSDL and configure the client programmatically.(Just to make clear, that I'm not using Spring configuration). The service I'm calling has the requirement that each Request I send, needs to be signed. What I did so far is creating my client and add the WSS4JOutInterceptor in order to sign the message. Client client = ClientProxy.getClient(soapService.getRawSoapInterface()); /

Mule - Schedule a flow to consume a web service

≯℡__Kan透↙ 提交于 2020-01-16 08:48:18
问题 I'm new to Mule, and wanted to do one "simple" thing : Every X seconds, call a soap webservice operation and store the result in a file. My Flow looks actually like this : <?xml version="1.0" encoding="UTF-8"?> ... <custom-transformer class="net.cpy.samples.webservices.SampleMessage" name="MessageWs" doc:name="MessageWs"/> <flow name="csvPublisher" doc:name="csvPublisher"> <quartz:inbound-endpoint jobName="job1" repeatInterval="5000" responseTimeout="10000" doc:name="Quartz"> <quartz:event

Mule - Schedule a flow to consume a web service

a 夏天 提交于 2020-01-16 08:48:11
问题 I'm new to Mule, and wanted to do one "simple" thing : Every X seconds, call a soap webservice operation and store the result in a file. My Flow looks actually like this : <?xml version="1.0" encoding="UTF-8"?> ... <custom-transformer class="net.cpy.samples.webservices.SampleMessage" name="MessageWs" doc:name="MessageWs"/> <flow name="csvPublisher" doc:name="csvPublisher"> <quartz:inbound-endpoint jobName="job1" repeatInterval="5000" responseTimeout="10000" doc:name="Quartz"> <quartz:event

Retrieve plaintext WS-Security password at service endpoint with Metro + WSIT?

烂漫一生 提交于 2020-01-14 14:39:10
问题 I'm writing a SOAP service (let's call it X) that acts as a "forwarding proxy" of sorts, replacing several elements in the body, then calling another SOAP service (Y). I would like to use the same WS-Security credentials ( plaintext username and password) that I receive in X when I call Y, but I am having trouble retrieving the value of the Password element. The policy that I declare in my wsit-package.service.xml file references an implementation of com.sun.xml.wss.impl.callback

Weblogic webservice clients.(clean references)

泪湿孤枕 提交于 2020-01-14 09:37:28
问题 I created a pool of ports (webservice clients) because creating on the fly on each request the client lead to a bottleneck Now I noticed that the webservice clients hold references to the request and response... Is that normal... ? Unfortunately the payload is quite big for this websevice and like this even if not used for a while the pool holds references to some not anymore used responses...increasing heap .. Is there a way to clean those references after receiving the response ? Update:

CXF code first webservice is creating wsdl with xs:element form=“unqualified” not picking up namespace

安稳与你 提交于 2020-01-14 04:06:12
问题 I'm creating webservices with CXF using the code first approach. I want to use namespaces, and therefore elementFormDefault is set to true . The WSDL is fine, except for the elements embedded in the complextypes, i get following xs:element having a form="unqualified" tag. But I want to get rid of the form=unqualified tag <xs:element form="unqualified" name="LikeSearch" type="xs:boolean"/> My package-info.java looks like this: @javax.xml.bind.annotation.XmlSchema(namespace="http://registry

Simple curl failing from linux command line

╄→尐↘猪︶ㄣ 提交于 2020-01-14 01:40:34
问题 we have a simple REST request that I can use manually on my Mac with RESTClient (from wiztools). The url is http://ws-argos.clsamerica.com/argosDws/services/DixService?getXml and the body is below: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:typ="http://service.dataxmldistribution.argos.cls.fr/types"> <soap:Body> <typ:xmlRequest> <typ:username>******</typ:username> <typ:password>******</typ:password> <typ:platformId>62518,62688,62520,62602,62608</typ:platformId>