Win a copy of Spring Boot in Practice this week in the Spring forum!

Shaan Shar

Ranch Hand
+ Follow
since Dec 27, 2005
Shaan likes ...
Spring Java Ubuntu
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shaan Shar

Ulf Dittmer wrote:It can be specified in the WSDL via WS-Policy, but that's not always the case:

Thanks Ulf, I also got a chance to read your article and I loved reading it. Let me go through these policies from IBM and come back with my questions. Meanwhile, as I requested earlier, would you recommend any complete reference for Web Services specifically for SOAP?

8 years ago
Thanks Ulf, so you mean by no way I can identify any security parameters from provided WSDL?
8 years ago
Sorry if I am posting this again but I am newbie in Web Services and recently been tasked to work upon SOAP Web services. Before even I create stubs, I would like to understand about various security mechanisms allowed for SOAP Web Services.

Like I said, WSDL has been provided to me from service provider and I need to understand, what kind of security I need to apply i.e. Transport level Authentication, Header based security tokenization etc? I am throwing these words since somebody told me something about it but how can I find and validate it with my WSDL?

If you can throw any pointers/book, it would be highly appreciable.
8 years ago
This is what I understand from Web Services.

Apache CXF(I am using Apache CXF) will unmarshal data it receives from Server(Service Provider) and convert it into already stubbed CXF Objects(from WSDL). Typically after that we transform these CXF objects into user defined objects to use it within our application. Now as originally problem has been depicted, since element type was "anyType", CXF objects(converted from WSDL) are by default java.lang.Object and in runtime(when I put my debugger on) it becomes instance of ElementNSImpl which I guess is from xerces.jar.

From the response, I can see that this tag can have multiple tags inside it and as of now, I am looking specifically 1 tag to use in my application. How to get to that tag in JAVA World, that's what my question is?

If my understanding is not correct, please let me know as I am newbie for Web Services.

+++++++++++++++++FURTHER UPDATE+++++++++++++++++++

After googling further, found following way to Read this object in String(though it's still not plain String, it's actually in XML format String) but still not getting any clear way to convert this String conversion into a hashtable with Key/Value pair. I am asking for Hashtable because as original problem depicts, it's "anyType" so I can't have pre-planned Java objects. Hashtable is the only way to get all tags under "Key" and value of those tags under "value" pair of hashtable.

Here is the snippet of WSDL defining this variable.

<xsd:element name="AnySampleObject" type="xsd:anyType" minOccurs="0" maxOccurs="1"/>

Here is the sysout for above code.

<?xml version="1.0" encoding="UTF-8"?>
<anySampleObject >
</anySampleObject >
</AnySampleObject >

Any help will be highly appreciated.
8 years ago
I just want to re-iterate this question though original post is quite old but I am in similar situation where as I don't have any control on WSDL. It's been provided by third party.

I also don't have very tight control on change the CXF objects because it could be overridden by any developer next time if there is any update in WSDL and developer is creating stubs out of it. DO we have any other clear solution idea for this problem?
8 years ago

Ulf Dittmer wrote:The WS provider should not turn off the previous version of a WS rigth when a new one is released. They should either use some kind of API versioning, or different URLs to separate the WS. And then they should give the client a certain amount of time (3, 6, 12, ... month) to upgrade the client before an older version of the service is turned off.

I think even if Service provider gives us that amount of time and provide different versioning for API's, Client needs to maintain different code for different version of Services.. and I guess that's what the major problem, to keep different code base for different versions...
8 years ago
So imagine if we are acting as a Web service client and our Web Service provider is making changes very frequently and somehow because of the complexity and size, not all the time, we can match with our server. There could be number of reasons because of which we may need to support multiple WSDL support at client side so that we can react accordingly.

Would like to seek advise from various people, how did they resolve this issue while Web services were picked up by Industry?
8 years ago

Tim Holloway wrote:If you are trying to use the sysdeo plugin like Maneesh suggested, that dialog doesn't have anything to do with sysdeo. The sysdeo configuration is done as a subtopic of the Help/Preferences/Tomcat menu.

Yes you are correct, basically I am not able to run it via my eclipse. Any help, now I have posted my error as well...

Maneesh Godbole wrote:You might want to consider using the sysdeo plugin

Thanks for direction but unfortunately didn't work....

Any idea guys to resolve this?

Or should I move back to previous version of Tomcat?
*** I don't intend to ask direct coding******

I am trying to understand Web services architecture and it's working. Basically I have so many Wev services in my application and very frequently we receive updated wsdl's from services. As of now, once we receive it, we create stubs on compile time and update in our code base. I was wondering, if there could be a way where I can create client-stubs on run time based on latest wsdl. This would also help me to not create multiple code bases depending on wsdl.

As I said, if you come across any tutorial/pointers towards it, please share.
9 years ago
I have Ubuntu using as OS and recently installed Eclipse JUNO.

I have installed Tomcat 7.0 on my eclipse but whenever I am starting Tomcat from eclipse and using http://localhost:8080/ it's not showing the main page. I remember when I was using Tomcat 5 in eclipse it was showing the same problem but when I changed tomcat configuration to enable "Use Tomcat Installation" option it just worked fine. In my current setup that option is also disable so don't know what to do?

Any help please?
Another note, almost all the tutorials, I found over the Internet, were expecting to be aware of MAVEN but as of this moment, I am little reluctant to use MAVEN.

Please guide if there is any tutorial for "Spring Batch - Programming" without MAVEN.
9 years ago
I have a basic idea of Spring IoC and AOP and kind of used it in our application.

Recently I started thinking about to migrating my old styled batch programs(reading data from database and writing in the file) to Spring Batch for understanding purposes and better maintainability. But the moment I started writing my first program, I couldn't figure out a single tutorial which can help me to write my first "Spring Batch - Hello World" program. Either all of them are assuming some basic configurations are already done or something else.

I have learned Spring IoC and AOP from the scratch but couldn't find anything similar for Spring Batch. Finally thought to check with my fellow ranchers if they have encountered similar issues and if there were able to get a "Spring Batch Hello world" example from the scratch. So far, I have gone through following tutorials but didn't get much help.. Since it's just for new learning purposes so let me know, if any other successful Batch framework is there apart of Spring Batch?
9 years ago
I spend time with my family..... no need of IRC or anything else...
9 years ago