Shaan Shar

Ranch Hand
+ Follow
since Dec 27, 2005
Shaan likes ...
Spring Java Ubuntu
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
3
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 Shaan Shar



When I tried to enable second "with tag" and run it in Python, it was throwing following error in console. Any idea, where I am doing incorrect indentation.

 File "C:\Users\shaan\Desktop\Python Utility\Excel.py", line 57
   with tag('Trigger'):
TabError: inconsistent use of tabs and spaces in indentation
3 months ago
Here's an example of the Excel sheet
3 months ago
Hello Everyone - I was trying to use a very basic excel (literally very basic) to create a well formed XML. I was able to create 90% of XML but where there multiple tags in XML, at that point of time, I was failing.

Request you to review it and let me know, if I am doing something terribly wrong or any help/suggestions? I am attaching sample excel and XML which I am trying to created with this program.

This is how my excel looks like



3 months ago

Ulf Dittmer wrote:It can be specified in the WSDL via WS-Policy, but that's not always the case: http://www.ibm.com/developerworks/opensource/library/j-jws18/index.html



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 >
<sampleKey1>301441</sampleKey1>
<sampleKey1>02840005842</sampleKey1>
<sampleKey1>299894</sampleKey1>
<sampleKey2>02840000717</sampleKey2>
<sampleKey2>02840000026</sampleKey2>
<sampleKey3>300102</sampleKey3>
<sampleKey3>02840004922</sampleKey3>
<sampleKey3>301733</sampleKey3>
</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?