Tagged Questions
0
votes
0answers
4 views
How does Glassfish generate wsdl and xsd
I have implemented a web service code-first and deployed it to Glassfish. Which rules/libraries uses glassfish to generate wsdl and xsd?
Thanks in advance!
0
votes
0answers
7 views
Axis 1.4 How to modify soap envelope attributes?
This is envelope which i wanna to send to service:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ger="http://www.more.com.br/MC/Geral" ...
1
vote
2answers
33 views
Java String to JSON conversion
i am getting data from restful api in String variable now i want to convert to JSON object but i am having problem while conversion it throws exception .Here is my code :
URL url = new URL("SOME ...
0
votes
1answer
10 views
How to Delegate the Session from One service to another Service
i am new to service and java.i will explain my workflow.
Client will call one synchronous service to service 1. service 1 do some operation and will delegate the session to service 2.then service 1 ...
1
vote
1answer
44 views
Java - Exposing a DAO Class that implements an interface as a Web Service
I have this project where I want to expose a DAO Class as a web service. Unfortunately it seems that a class that implements an interface (or extends an abstract class) can't be exposed.
The ...
0
votes
1answer
22 views
User failed to be authenticated in WebLogic
I'm having problem with authenticating my weblogic server, i assigned correct username and password, what went wrong with my project? Is there any configuration that i need to be configure with my web ...
0
votes
0answers
13 views
Can't run application with WebServiceContext in JAX-WS + Spring in Glassfish
I have a web service that use the WebServiceContext to handle session information. This web service use Spring + JAX-WS. The web service work in a Apache Tomcat 6 / 7 server, but not start in a ...
-9
votes
0answers
31 views
Download file from web server [on hold]
I have no experience in web programming, but currently I have following task for my Java client program:
1 Login to server
2 Send to server several params about client configuration
3 Download ...
1
vote
0answers
12 views
Offline Weblogic 12c fails to deploy webservice with MTOM
we have recently experienced a strange behavior when trying to use web service with MTOM. When Webservice method is annotated @MTOM, application fails to deploy with strange message:
Certificate ...
2
votes
1answer
27 views
Glassfish basic auth error
I have next method:
@RolesAllowed("basicUser")
@Override
public boolean LogOn(String UserName, String Password) {
...
}
This my web.xml:
...
0
votes
1answer
15 views
What is the max size of String parameter in web service?
I need to create web service in java (for generating reports) that receives a String with JSON format for the tables' information. May be will be a large amount of characters but I don't know for sure ...
0
votes
0answers
10 views
@XmlIDREF and @ManyToMany for entity marshalling/demarshalling
Issue
I am having a big problem with marshalling and demarshalling entities to XML for REST webservices purpose. I am using standart javax.xml and the objects are finally marshalled just fine. But ...
1
vote
1answer
42 views
Developing REST APIs using Java for IPad application [on hold]
I am currently in the process of analyzing the work of developing REST APIS for an Iphone Application using Java:
Firstly, Has anyone worked on development of REST APIs for iPad app or any other ...
1
vote
2answers
33 views
WDSL2Java exception when I run it on https URL
I am trying to run wsdl2java command on https webservice, but I am getting this exception:
C:\axis2-1.6.2\bin>wsdl2java.bat -uri https://myserver.ad:8443/PAS/services/WSCentralService?wsdl
Using ...
0
votes
2answers
24 views
converting resultset to multidimensional string array
I am trying to convert ResultSet to String[][] in Java webservice. It sounds very stupid to convert the Resultset to Strin[][]. The reason I am trying to do this is because Java webservice is called ...
0
votes
1answer
24 views
Large data is not sending in android through webservice
I am using the following code in android to send data to a server through a web service
call.When i am sending small amount of data it is hitting the server.When i am sending large data it is not ...
0
votes
0answers
24 views
Glassfish - VERY strange ClassCastException
I get this exception when try to call remote web service...
Strange - because we have this exception ONLY in Glassfish 2.1/3.1 environment...
When im start code from command line (JDK 1.6.0_16-b01) ...
0
votes
1answer
33 views
RESTful Web Service - Taking data from a form and grabbing info from MySQL database
I have a database of Students that have to log into a course advisor website using their email and password. I've hard-coded some students in the database to test this and I have the Facade doing ...
0
votes
1answer
22 views
How to generate SOAP client code that uses dynamic location for WSDL?
I am using wsimport to generate client code for several WSDLs that are served by my application. I have to run the app in several different places. I am trying to simplify my client code ...
-2
votes
3answers
44 views
Defensively checking inputs in client. Is this a good practice? [on hold]
Is it a good practice to defensively check for null/empty inputs in client ? In the server this check is happening of whether or not input is null and an exception is thrown accordingly, should client ...
0
votes
1answer
34 views
Java web service only responds on localhost, not by hostname (Apache Tika)
It's easier to show than to tell. This is from the Apache Tika web service:
http://pastebin.com/jrCsVVtt
On line 89 of that file, localhost is hard-coded:
sf.setProviders(providers);
...
0
votes
0answers
22 views
How to get data from a url that returns XML or JSON in Android
I'm new in Android, but before I worked with XML parsers to parse RSS in my android app.
Now I want to send and receive new app-data to/from my server.
I developed server side of my web API, tested ...
0
votes
0answers
7 views
How to create “enveloped signature” using framework like Apache Axis2 + Rampant?
I need to protect SOAP messages integrity using signatures for "Body", "Timestamp" using "X509" certificate. There is no problem with that so far.
Along with it I need that any "Object" ...
0
votes
1answer
65 views
RESTful Webservices Integration With Spring and Hibernate
I am in the process of learning RESTful Webservice.
I am using Hibernate 4 and Spring 3. I would like to know if I need to implement REST services, I call the service implementation class ...
0
votes
0answers
23 views
Through Webeservice : org.xml.sax.SAXParseException: Premature end of file
I am able to generate the stubs from the Axis command.But when I am trying to fetch/request the API from java code,its failing and giving org.xml.sax.SAXParseException: Premature end of file.
ERROR:
...
1
vote
0answers
28 views
Testing Spring web services end point at server side?
I am using Spring WS 2.0 . I have seen below end point and and test case to test the end point.
@Endpoint
public class ...
0
votes
0answers
14 views
How to get the Service Mode from WSDL file?
I need to create the dynamic client to call web services, which can call web services with Service Mode as Service.Mode.PAYLOAD as well as Service.Mode.MESSAGE. I have created the Dispatcher as:
...
0
votes
0answers
22 views
get data from webservice wsdl in android
There is not generate data.when run AndroidWSClient only there main.xml file run but not connected with webservice wsdl file and not generate output.what I have to do??
**Hello.java----**
...
0
votes
1answer
25 views
Parsing ksoap2 response into array of int
I get a response from the web service:
GetMonthsResult=anyType{int=1; int=2; int=3; int=4; int=5; int=6; int=7; int=8; int=9; int=10; int=11; int=12; };
How can I parse it into an array of int?
0
votes
0answers
24 views
How to send XML to web services from android application and how web services come to know that xml data is came?
I am creating xml by following way:
public class SendXmlToWebServices extends AsyncTask<Void, Void, String> {
@SuppressLint("SdCardPath")
@Override
protected String ...
1
vote
1answer
54 views
How to Accept JSON input in Spring Restful Webservice?
I am having hard time accepting JSON input into my Spring Restful Webservice. Basically my purpose is to accept a JSON and return a zip file. But I am not being able to cross first step itself.
...
-3
votes
0answers
68 views
Alternatives to socket programming for real time updates?
Suppose I want to create a mobile client which should be connected to my server 24 hours (or as long as the application is running), to send or receive data.
I do not want a webservice because then ...
0
votes
0answers
15 views
Sending SOAP response back and then continue executing the method?
I have a Ruby application which consumes a web service that is implemented in Java. The Ruby application basically invokes a method in my web service, and returns a string after its completion.
I ...
-3
votes
1answer
28 views
Need to create a restful client using Java and request an response in XML [on hold]
Hi I am assigned to work with Restful Webservices but I am new to webservices and I need some idea how to work on it.
The work assigned to me is creating a restful client to consume an API which is ...
0
votes
0answers
11 views
Java webservice NoClassDefFoundError PortType
Hi I'm using OpenESB (netbeans) with GlassFish. I have created a web application with a WSDL and a web service created from the WSDL. I can Run and clean & build my web application with success, ...
0
votes
0answers
16 views
Expose WCF 4.0 Custon SOAP Header to Java Client
Tbh this should be easy but I cannot find a simple solution anywhere. Anyway this is what i want to do, any pointers would be good.
Allow a java client running the latest JRE to pass a token(string) ...
0
votes
0answers
18 views
How to integrate tess4j with Glassfish?
I have successfully integrated tess4j in my java project. It was working fine. I followed the same setup in my jave web project ,text extraction from image found to be empty .
I have placed ...
0
votes
0answers
14 views
Issue with java1.7 for Apache wink framework restful service when setting response entity in byte[] format and media type = image/jpeg
I am having a RESTful webservice which was created with Apache WINK framework(version 1.1.3) with a resource method which is annotated as @produces("image/jpeg"). From that method, I am building ...
1
vote
2answers
42 views
java WebService request timeout
I'm hanging on a webservice post timeout. In short: I call a remote webservice method that requires more than 60 seconds to response and this causes timeout exception but I don't want any timeout ...
0
votes
0answers
20 views
Initialization (JDBC and other things) within a Jersey WebService
I just developed a WebService with the Jersey implementation of the JAX-RS API.
Independently of the WebService, my DAO objects implement the proxy pattern (delegation) and the singleton pattern, same ...
0
votes
0answers
11 views
Web service, object mappings
How to map POJO to generated object in web service client (jaxws) which is derived from the same object (but it has different location/package, so original object cannot be used) in order to call web ...
2
votes
2answers
29 views
Parsing SOAP Response in Java
I do not succeed in parsing a SOAP Response in Java (using Bonita Open Solution BPM).
I have the following SOAP response (searching for a document in the IBM Content Manager; the SOAP Response returns ...
0
votes
0answers
23 views
I want invoke SAP function module web service from Java [closed]
I want to invoke SAP ABAP function module web service from Java and create a report in crystal report. Can you please help me how to do this one I am very new to SAP.
0
votes
1answer
13 views
Multiple Authentication in JEE Application
Currently I have a requirement from a client where the user may belong to an LDAP server for authentication, or they may belong in an authentication database table.
I want to implement authorisation ...
0
votes
1answer
21 views
parsing XML and show it into table using SOAP
im getting query result in Web Service and sending it to Client Service I've converted the result to XML by using this:
try {
Class.forName("com.mysql.jdbc.Driver");
Connection ...
0
votes
0answers
42 views
Consuming a JAX-WS webservice in enterprise environment
The task:
I am working on a J2EE application in an Enterprise environment with WAS runtime. I have to consume the already developed JAX-WS web service by the organization and I have been provided just ...
0
votes
1answer
14 views
web-service Ksoap2 Complex objects error
I can´t solve this problem and go on...
I have a big problem in my app. Any help would be really appreciated, I will try to put all the code.
Thank you very much!
The main error is this one:
...
0
votes
1answer
19 views
web-service Ksoap2 Complex objects
I can´t solve this problem and go on...
I have a big problem in my app. Any help would be really appreciated, I will try to put all the code.
Thank you very much!
The main error is this one:
...
0
votes
1answer
18 views
Exchangeable targetnamespace in Apache CXF
I want dynamically exchange the webserive targetnamescpace (host) in the cade generated by Apache CXF.
Why? Each customer has its own wsdl file.
The current situation is that there is one project, ...
0
votes
1answer
60 views
How to resolve java.net.ConnectException: Connection timed out error when requesting webservice using URLConnection [closed]
Can any body explain java.net.ConnectException: Connection timed out.when running below code get exception on this line:
OutputStreamWriter infWebSvcReqWriter = new ...