Problem generating Java SOAP web services client with JDK tool wsimport from a WSDL generated by a .NET 2.0 application

前端 未结 4 2046
夕颜
夕颜 2021-01-30 08:49

I\'m trying to generate a client for some SOAP web services using the JDK 6 tool wsimport. The WSDL was generated by a .NET 2.0 application. For .NET 3.X applicatio

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-30 09:29

    For anyone reading this using maven, this is how to add it to the .pom file. Note the args in the configuration section. This is not very easily found in documentation. Many thanks to Isaac Stephens for his help with this.

    
    
      ERPStandardWorkService
      
        wsimport
      
      
        
        
           -B-XautoNameResolution
        
        ${basedir}/src/main/resources/META-INF/wsdl
        
            ERPStandardWork.wsdl
        
          ${basedir}/src/main/resources/META-INF/wsdl/ERPStandardWork.wsdl
        
        ${project.build.directory}/jaxws/ERPStandardWork/.staleFlag
        
      
    
    

提交回复
热议问题