wsdl2java

org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name:

痴心易碎 提交于 2019-12-12 19:19:17
问题 I am trying to create client project from WSDL file using Axis 1.4 (I don't have other choices, even cannot use Axis 2) and getting following error. Can any one suggest me how can I resolve it? The WSDL file is provided by vendor. org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: C:\Documents and Settings\My Documents\CalculateTax\com\NewProj\CompanyCodeType.java. Hint: you may have mapped two namespaces with elements of the same name to the same package name. at org

Apache CXF wsdl2java: WSDL file returned different from the original one

半腔热情 提交于 2019-12-12 06:19:06
问题 I received a WSDL file from a customer describing a web service they wanted me to offer. Using Apache CXF 3.0.4 and wsdl2java the WSDL file was translated into fully annotated Java code from which I implemented the service. Everything went well until the customer started testing the service using the WSDL file returned from my server via a URL of the following pattern: http://never.mind/SomeService?wsdl When this WSDL URL is loaded in SoapUI I see request XML looking similar to this: <soapenv

SSL Connection for consuming web services

时光总嘲笑我的痴心妄想 提交于 2019-12-12 03:57:15
问题 I've some questions about establishing SSL connection for my web service. So I generated a java web service project with CXF's tool "WsdlToJava". Now I wan't to consume my web service, which is hosted on my server with SSL protocol access. When I try to follow this page How to configure the HTTPConduit for the SOAP Client I get some SSL issues. I replaced this part: URL wsdl = getClass().getResource("wsdl/greeting.wsdl"); SOAPService service = new SOAPService(wsdl, serviceName); Greeter

WSDL to Java -client creation error

删除回忆录丶 提交于 2019-12-12 02:12:51
问题 I am trying to create a web service from the WSDL but is repeatedly giving me the following error. Tried refreshing axis.jar in the build path but is still giving same error whereas I have another WSDL and client is very well being generated for the same. Anyone here who has encountered something similar? IWAB0399E Error in generating Java from WSDL: WSDLException (at /definitions/types/xsd:schema): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at '@sp.schema

Exception when sending big soap request

前提是你 提交于 2019-12-11 23:39:07
问题 There is a web-service deployed on tomcat 6 and exposed via apache-cxf 2.3.3. A generated sources stubs using wsdl2java to be able to call this service. Things seemed fine until I sent big request(~1Mb). This request wasn't processed and failing with exception: Interceptor for {http://localhost/}ResourceAllocationServiceSoapService has thrown exception, unwinding now org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader. ... com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in

When using a WSDL-first approach to generate java stubs, is there a way to make exceptions extend RuntimeException instead of Exception?

做~自己de王妃 提交于 2019-12-11 15:12:55
问题 Is there a way to force JAXB to generate exceptions which extend java.lang.RuntimeException instead of Exceptions when using a WSDL-first approach? I'm using a WSDL-first approach for my Java web services project. The stubs are generated with CXF's "wsdl2java" Maven plugin, which is driven by JAXB. It's able to generate stubs from my WSDL, including generating ~150 different exception classes based on the faults defined in my WSDL. However, all of these exceptions extend java.lang.Exception.

axis2 fails to generate java from wsdl with inline schema

為{幸葍}努か 提交于 2019-12-11 10:33:07
问题 I want to generate Java classes from a WSDL. I'm invoking wsdl2java from within an ant task. The commandline would look like this: java -cp ... org.apache.axis2.wsdl.WSDL2Java -o generated_dir -S . -R . -l java -p "com.make.me.rich" -d adb -or --noBuildXML -uri MakeMeRich.wsdl The MakeMeRich.wsdl contains inlined schemas from Micrsosoft, e.g.: <xsd:schema elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:tns="http://schemas

Interface is not visible from class loader

扶醉桌前 提交于 2019-12-11 09:50:09
问题 I'm new to play! framework and using wsdl2java tools. I'm developing a play! application that needs to interact with a SOAP webservice. I have the WSDL and created objects from it using jaxws. It's creating a bunch of java classes and 1 interface. As soon as I try to make a webservice call, I get an error that the interface cannot be found by the classloader. This is my code: MyWebserviceBeanService service = new MyWebserviceBeanService(); MyWebserviceRemote mwr = service

Why wsdl2java generated code use CXF dependencies at will?

微笑、不失礼 提交于 2019-12-11 09:03:58
问题 I use Apache CXF 3.0.4 wsdl2java to generate code from this wsdl with following command: ./wsdl2java -client -exsh true -d weather -p weather -verbose url As far as I know wsdl2java generates pure java code using only JAX-WS. Generated code works fine without any additional library/dependency. I've grepped it to find any CXF classes, but it seems to be free from CXF. The problem flows out when I add specific CXF dependency to my pom.xml . This dependency is: <dependency> <groupId>org.apache

Apache CXF wsdl2java: make service return original WSDL file

巧了我就是萌 提交于 2019-12-11 08:46:51
问题 I am struggling big time offering a web service based on some WSDL file received from a customer. As described in details here, the WSDL file returned when appending a ?wsdl to the service URL like http://never.mind/SomeService?wsdl seems to be misinterpreted by SoapUI and this again prevents the customer from using the service! I was now hoping that someone could help me understand if it is possible to make the get WSDL endpoint return the original WSDL file instead of some Apache CXF