java-ws

namespace issue on web service with Apache CXF

て烟熏妆下的殇ゞ 提交于 2019-12-03 13:50:53
问题 I'm using Apache CXF 2.7.3, and running into a namespace issue that I really don't understand. I've tried extensively to search on this, but most of the results that I find are for different behaviors. The issue is when invoking the web service, it will fail if the parameter element is namespace qualified. All the rest of the elements in the message are qualified, and it accepts that, just not the parameter element. Here is the precise behavior: request WITHOUT parameter element qualified:

XSD and WSDL in different directories

有些话、适合烂在心里 提交于 2019-12-03 08:12:57
At my work used jaxws-maven-plugin for code generation. I have two projects are "common" and'' client ". Structure roughly as follows: app/ common/ resource/ some.xsd client/ resource/ some.wsdl How can I generate classes from wsdl in the project "client", using the xsd from the project "common"? pom.xml: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxws-maven-plugin</artifactId> <executions> <execution> <goals> <goal>wsimport</goal> </goals> <configuration> <verbose>true</verbose> <bindingFiles> <bindingFile>${project.parent.basedir}/common/resource/some.xsd</bindingFile> <

Java Webservice Client UsernameToken equivalent to PHP

巧了我就是萌 提交于 2019-11-30 01:01:27
I have a webservice build in PHP that uses UsernameToken as authentification mechanism. I have PHP client side code that can access this web service. Now I need to do this in Java. Maybe you can help me! This service can be accessed using the following php code: $password="super_secure_pass"; $timestamp=gmdate('Y-m-d\TH:i:s\Z'); $nonce=mt_rand(); $passdigest=base64_encode(pack('H*',sha1(pack('H*',$nonce).pack('a*',$timestamp).pack('a*',$password)))); $nonce=base64_encode(pack('H*',$nonce)) These values get parsed into this Soap header. <wsse:Security SOAP-ENV:mustUnderstand="0" xmlns:wsse=

Java Webservice Client UsernameToken equivalent to PHP

女生的网名这么多〃 提交于 2019-11-28 22:33:36
问题 I have a webservice build in PHP that uses UsernameToken as authentification mechanism. I have PHP client side code that can access this web service. Now I need to do this in Java. Maybe you can help me! This service can be accessed using the following php code: $password="super_secure_pass"; $timestamp=gmdate('Y-m-d\TH:i:s\Z'); $nonce=mt_rand(); $passdigest=base64_encode(pack('H*',sha1(pack('H*',$nonce).pack('a*',$timestamp).pack('a*',$password)))); $nonce=base64_encode(pack('H*',$nonce))