Expose Java class as SOAP WebService - how? [closed]

I am looking for a framework to turn given Java class into WebService (may be with some limitations on method parameters etc)

Thanks


Asked by: Chloe359 | Posted: 28-01-2022






Answer 1

You can use axis2, or xfire. I'm sure there are other ways also, but these are the two that I've used.

Answered by: Jack984 | Posted: 01-03-2022



Answer 2

The de-facto standard for this is Apache Axis: http://ws.apache.org/axis/ and http://ws.apache.org/axis2/

Answered by: Edward832 | Posted: 01-03-2022



Similar questions

web services - how to expose a .net webservice method to a java client

I have webservice in .Net, i exposed to some external system. That system have only java. Then how it will access that .net method to java. vice versa.


web services - Using complex data types from Java in Axis webservice

I am currently developing a Java app which handles a SOAP webservice. The problem lies after I parse the WSDL [the Parser object from Apache Axis does it for me], and I create the call. When I try to invoke it, I have to pass a Object[] to assign the parameters [taken from the Action of the WSDL]. A normal action is easy, but when I have custom datatypes, I can't get it to fill it out for...


web services - Java: using endpoint to publish webservice to tomcat server

i am creating a simple SOAP web service. i am to ensure that it runs on a tomcat web service. im trying to implement this with JAX-WS (see code) my question is: does the Endpoint.publish use the tomcat server to host this or is it a mini glassfish kind of server? should i be extending UnicastRemoveObject or something similiar instead? ideally it would be able to be packaged into a .WAR and...


web services - get client IP for webservice on java 6 embbeded http server

I am implementing web service on java 6 weight light (embbeded) HTTP server jax-ws-web-services-without-java-ee-containers - for testing purposes - I want to get the client IP for each request. I tried to declare web service context in my web service class: @Resource W...


web services - Can't consume webservice from Java

I created the webservice stubs using axis2-1.5's wsdl2java.bat. This created a src folder with the following structure in it: src/net/mycompany/www/services/SessionIntegrationStub.java The package of the SessionIntegration.java file is: package net.mycompany.www.services; Now, I am trying to use this stub in my java code. I placed my java file in the same services folder. I set the...


web services - Java Webservice with generic methods

I was wondering if it is possible to make a generic webservice method in java like this: @WebMethod public <T extends Foo> void testGeneric(T data){ However when I try to consume this with a Java client I get an error stating: [ERROR] Schema descriptor {http://####/}testGeneric in message part "parameters" is not defined an...


web services - java webservice - wsgen

I've got a task to create a webservice for school. The problem is for some reason I won't get wsgen to work correctly. I've got a class named Warehouse, which is in the package: com.horstmann.corejava. Now I build this project named Warehouse, and after this I go into commandprompt(cmd) and type "cd C:\Program Files (x86)\Java\jdk1.6.0_20\bin" where wsgen.exe is. Next line I type is: "wsgen -cd C:\Users\Jul...


web services - Java RMI via Webservice?

I'm searching for a possibility to run a java RMI application via webservice or an internet protocol. is there any framework or solution that says "I can run RMI as WebService with WS-Security" or "I can run RMI via HTTPS" etc. or is tunneling RMI over HTTP or SSH the only way?


web services - Vector of Vector in a Java webservice

I am writing a webservice method to return the values of a table.I am using two Vectors one for the column and another for the values of the table.The Vector used for Values of the table contain each row as a Vector.These methods are written inside an EJB and the webservice is deployed in Weblogic 10.3. I am able to hit the webservice and call the methods and able to fetch the columnnames Vector.However when I fetch the va...


web services - Can I change the Java package of a WebService Client?

So, my JAVA application is connected to different WebServices that were developed inhouse and all 3 of them are packaged under org.tempuri This is the default namespace I believe and when the wizard creates the Java packages it places them under org.tempuri.. I wanted to change them to give them meaningful names but then my app exploded :( Can I just go into the .wsdl and change the namespace and repackage ...


web services - Java Webservice URL in JSF

I created a JSF application which also offers some Webservices. The webservices are created via annotations. Now I want to create a webserviceInfo.xhtml Page , where I get all the needed webservice Information. When I go to the address http://our.server.com/application/OurWebserviceName, I get all the information needed to access the webservice (this info page is generated automatically by ...


web services - Using complex data types from Java in Axis webservice

I am currently developing a Java app which handles a SOAP webservice. The problem lies after I parse the WSDL [the Parser object from Apache Axis does it for me], and I create the call. When I try to invoke it, I have to pass a Object[] to assign the parameters [taken from the Action of the WSDL]. A normal action is easy, but when I have custom datatypes, I can't get it to fill it out for...


java - Generated equals in Webservice Stub

All the generated webservice-stubs from our backend have an equals-method similar to this one: private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof PropertyData)) return false; PropertyData other = (PropertyData) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { re...


java - Eclipse plugin for Apache Axis2 to create webservice

please give me the link to download plugins for apache axis, i tried in some sites but the link was not current so i was not able to download. thanks in advance, Mahesh


java - Adding fields to a WebService

I have a SOAP service that exposes a method TradeDetail getTradeDetail() TradeDetail stores 5 fields, transaction number, dates etc I need to add a couple of fields to TradeDetail. I want to keep backward compatibility (for a while) and it looks as if my options are limited to creating a new class with the extra fields TradeDetail2 getTradeDetail2()


java - How to abort the call to webservice at both client and server end?

I can abort the web service call from client by calling ABORT method of web service proxy. However at server where web service is hosted, the call only ends when it completes the processing. As server doesn’t expect any other inputs related to already called web method while processing it, I am not able to close it from client. Is there any way I can also abort the call at server i.e. stop the large calc...


Java Webservice and .NET client dropping DateTime objects

Seeing something strange between a Java web service and the .NET client talking to it. We are sending an object back and forth with a DateTime property on it. Sort of like this (generated from the WSDL): [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCa...


Construct a SOAP Request to a WebService using Axis2 Library in Java?

I need to be able to construct a SOAP request using Apache Axis2 and provide the IP address and user agent in the SOAP header to the webservice. Is there a code sample that describes how to do that? Thanks in advance for the help! Best wishes Ruchi Kaur.


java - How to call a web service from within a webservice

I am trying to create a web service which is a consumer to another webservice. Here is the layout. I developed a Java class and created a webservice out of it. Then I used Eclipse tools to generate a client side stub and other files. I packed these files in a jar and used it in another project. I tested the files in the jar I was able to access the first webservice. Now I created another w...


c# - Library to create java stubs for webservice

I would like to know if anyone can recommend a good library to generate java webservices stubs as clients. Currently I'm using a product which has embedded a generator which only needs the WSDL and then creates the needed classes and methods. My problems is it throws warnings and doesn't create any method for some webservices I'm trying to use. The real problem is it doesn't explain what the pro...


java - Why does a webservice specify all request and response types as a string?

I am working with a legacy webservice, and they supplied us their WSDL to work with. Now my problem is, that every function specifies the same argument and return type. And this type is then specified as being string! Example: <definitions targetNamespace="java:the.custom.namespace" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="java:the.custom.namespace" xmlns:xsi=...






Still can't find your answer? Check out these amazing Java communities for help...



Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)



top