Mittal Vishal

Greenhorn
+ Follow
since Nov 13, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mittal Vishal

Hi,

I am new to web services, I have parsed the web service & have the Definition object with me

Now I want to get all the schemas defined in the WSDL.
Schemas can have import/include statements.
Is there any way to get the complete schema information

So that I can iterate on the individual Schema & get the Element, Complex Types, restriction from it.


Thanks
Vishal
11 years ago
Hi,

If L2 does not have any active references then it is eligible for garbage collection irrespective of whether it has references to objects which are still active.

Thanks
Vishal
11 years ago
Shashank,

I guess you are asking for the objects eligible for garbage collection after the line 19 is executed.
And the answer is 1 because only those Objects are eligible for garbage collection which are not accessible by any active reference.
As per your program, you have created 2 objects at line 17 & 18 but after assigning b2 to b1, original b1 object does not have any active reference so it will be eligible for garbage collection

Thanks
Vishal
Hi,

I am new to web services, I have parsed the web service & have the Definition object with me
From Definition I got the Types object & then list of Schemas from it.
List<Schema> list = types.getExtensibilityElements();

Now I want to iterate on the individual Schema & get the Element, Complex Types, restriction from it.
How I can I do it

Thanks
Vishal
11 years ago
Hi Tim,

I know that WSDL provides all the information but...

For e.g. In the following web services

http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

I have to map GetWeatherInformationResponse to ArrayOfWeatherDescription which is again mapped to WeatherDescription which actually have the output elements

I can write my own logic which can map them, all I want to know is, is there any in build logic which can provide me a mapping which maps GetWeatherInformationResponse to WeatherDescription or to its child

Thanks


12 years ago
Thanks Tim,

My application is a core Java application
It takes URL of web service as input
I have used WSDL jar to parse it .

I am able to get the operation names from the service
But I need to know the schema information of the service

so that I can parse the response based on the schema
Please suggest

Thanks
12 years ago
Hi,

I am new in web service

Can you please tell me how to get the metadata from web service e.g. operation Names, parameters, schema information

Thanks
12 years ago
Hi Ibragim,
following piece of code will help

Integer maxValue = Collections.max(list);
Integer halfMax = maxValue / 2;
for (Integer value : list)
{
if (value > halfMax)
{
System.out.println(value);
}
}
12 years ago

Campbell Ritchie wrote:

mittal vishal wrote: . . . Final means reference cannot point to some other memory space, but the instance variable residing at that space can be changed.

That is confusing. What does it mean?



Every reference point to a memory space in heap. When any object is created, it is created on heap & the reference points to that memory space.
Step1) Object obj1 = new Object();
It means new objects is created on heap at some memory space. obj1 is pointing to that memory space
Now, if it is not declared as final then
Step2) Object obj2 = new Object();
Step3) obj1 =obj2; is a valid statement i.e. obj1 is now pointing to memory space where obj2 is pointing

but this is not a valid statement if obj1 was declared as final i.e. it is not allowed to point to some other memory space if it has already assigned a memory space.
In our case at step 1 it is pointing to a memory space so after that it cannot point to some other place
12 years ago
Static methods are known as class methods. They belong to the class in which they are declared, and are not part of any instance of the class.
So to invoke them, object of the class is not required.
That's why main method is declared as static so that JVM can invoke it
12 years ago
Hi,
OutofMemory is something which can happen at any place, so to avoid them one has profile the application using profiling tools available in the market.
One should find out the places where memory is not released & try to fix them
Application should not hold the objects if they are not required
12 years ago
When reference which is constant (final) points to an object, then it means it is pointing to a Heap Space where the object was created.
Final means reference cannot point to some other memory space, but the instance variable residing at that space can be changed.
12 years ago
John,
Thanks for your reply
Yes you are right that its not really feasible to answer this question
Actually I was just looking whether there is any API or in built feature in JDK's latest releases, but there is nothing of that sort

And also we cannot trace all the references as local variables are also allocated on STACK, which can be GCed after completion of methods.
Our application have a thread pool
Now, we want to know while serving the request, how much memory the thread is consuming
Is there any way to find it out

I want to access OLAP objects defined in Ms SQL Analysis Services
How can I do this
Please provide some direction
16 years ago