Can not establish connection to SOAP WebService after WSDL2Java Axis [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a problem to connect to an existing WebService (SOAP) through Java generated files from WSDL2Java tool from Axis 1.4.
I've automatically generated the following Java files:
ILIASSoapWebservice.java
ILIASSoapWebserviceBindingStub.java
ILIASSoapWebserviceLocator.java
ILIASSoapWebservicePortType.java
IlOperation.java
IlUserData.java
And now, I can't establish any connection.
How to achieve this to call the RPC's?

As you have already generated the Stubs, you can use the ILIASSoapWebserviceLocator to get a reference to the service and then invoke the operations on the service via the stub.
ILIASSoapWebserviceLocator service = new ILIASSoapWebserviceLocator();
URL portAddress = new URL("http://host:port/yourWebservice" );
ILIASSoapWebservicePortType stub = service.getILIASSoapWebservicePort(portAddress);
stub.<operations>();
You can find here a complete server side and client side web service implementation tutorial on Axis 1.4.

Related

Is maven necessary to create web sockets in java? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
As i m new to the web sockets i want to clarify that is there any simple methods to create web sockets in java without using maven.
please help me friends.
There might be different ways to create web sockets,but if your question is whether you can create web sockets without including maven as a build ,then the answer is yes.
but let me clarify maven is not the one which you need to create web sockets,its just a build tool.
For better understanding ,go through following link
http://www.mkyong.com/tutorials/maven-tutorials/

Call Axis2 client from spring java application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have to call a web service from my web application, and show the response from the web service in my view. Any suggestions?
Thanks in advance
I am using Spring MVC for my web app and Axis2 for the web service.
[EDIT 1]
I was Asking about the posibility to do that since It seemed to me preaty strange to use it that way. (The client generates a web app, so I was like "A web app into another")
You need to generate a client (I suppose you use axis2/soap) using the axis2-tools (wsdl2java). Then you can simply instantiate the client in one of your business logic classes and consume the result.
Using wsdl2java can be quite tedious to run, if you have maven, there is a wsdl2java converter plugin.
Also, I suggest you put the wsdl2java in it's own project, as it should not change regularly.
Spring may be handy to configure the axis server URL and inject a client into your code, but is not required to run the axis2 client.

How to request to Server in ANDROID [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How to Send request to server and read the response from the server in android. Not Coding. Just little explanation i want.
I suppose you mean making a http request, check out this thread:
Make an HTTP request with android
You should avoid this kind of questions which are already available on google and stackoverflow.!!.
You can create a webpage in php or any web technology and host it on server.
Full guidance you can get from here

how i can return json in rest web service developed in java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
From the server I am sending just normal JSON data, but on client I am expecting JSONP. The response from server is not JSONP and browser does throw exception as syntax is wrong.
can somebody explain me how i have to do this using java
mi web service is the type restful
If the client expects JSONP, then that's what the server needs to send. How exactly to have the server send JSONP depends on the type of server you use. If you use Jersey for example, then you can use the answer to this question: Returning JSONP from Jersey

How to integrate Java with Tally application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need to integrate my java web application with Tally software.
Is it possible? Please provide some idea.
Well, Tally doesn't support SOAP, but does support a basic XML/HTTP interface, as one of the integration options. Some of my experiments with Tally is captured here: http://subbaraman.wordpress.com/2010/07/01/playing-with-tally-software/.
Hope this helps
Tally ERP 9 implements SOAP web services. More here. Accessing an application using SOAP is common technique in Java and is supported by many libraries.

Categories