abhishek kunal

Ranch Hand
+ Follow
since Jul 27, 2009
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 abhishek kunal

Hi all, i am new to webservices, and i am stuck with an apprantly simple thing (now it has become a nightmare for me )! What i am doing is that, i am generating java files from a given WSDL, this WSDL has same targetnamespace in its root element as well as in <wsdl:types> element!

<wsdl:definitions
name="ProductInterfaceDefinition"
targetNamespace="http://www.mywebservices.com/webservices/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.mywebservices.com/webservices/"
xmlns:cmgt="http://www.mywebservices.com/webservices/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Exposes all product related interfaces.</wsdl:documentation>

<wsdl:types>
<xsd:schema elementFormDefault="qualified"
targetNamespace="http://www.mywebservices.com/webservices/"
xmlns:cmgt="http://www.mywebservices.com/webservices"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">

.......
......


When generating class through axis-wsdl2java ant tool, we can give mapping tag for packaging classes in a specified package, like this...

<mapping namespace="http://www.comergent.com/webservices/" package="com.product.ws"/>

the problem is same targetnamespace at two levels, i want to package the classes defined in <wsdl:types> in a different package and the generated stub classes in a different package, but as the targetnamespace is same for both, so only one package can be followed by axis-wsdl2java. I dont know whether we can have any hiearchy in targetnamespace also, so that we can name the second level targetnamespace differently than the one at root level... please suggest me any workaround .. I really need expert's help! Thanks in advance :)
11 years ago
Hi all, i am new to webservices, and i am stuck with an apprantly simple thing (now it has become a nightmare for me )! What i am doing is that, i am generating java files from a given WSDL, this WSDL has same targetnamespace in its root element as well as in <wsdl:types> element!

<wsdl:definitions
name="ProductInterfaceDefinition"
targetNamespace="http://www.mywebservices.com/webservices/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.mywebservices.com/webservices/"
xmlns:cmgt="http://www.mywebservices.com/webservices/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Exposes all product related interfaces.</wsdl:documentation>

<wsdl:types>
<xsd:schema elementFormDefault="qualified"
targetNamespace="http://www.mywebservices.com/webservices/"
xmlns:cmgt="http://www.mywebservices.com/webservices"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">

.......
......


When generating class through axis-wsdl2java ant tool, we can give mapping tag for packaging classes in a specified package, like this...

<mapping namespace="http://www.comergent.com/webservices/" package="com.product.ws"/>

the problem is same targetnamespace at two levels, i want to package the classes defined in <wsdl:types> in a different package and the generated stub classes in a different package, but as the targetnamespace is same for both, so only one package can be followed by axis-wsdl2java. I dont know whether we can have any hiearchy in targetnamespace also, so that we can name the second level targetnamespace differently than the one at root level... please suggest me any workaround .. I really need expert's help! Thanks in advance :)
hii. i am simply trying to access a deployed bean in IBM websphere,but i don't want to embed the naming server details in the client code,i want it to be there in a jndi.properties file...and i have done so.... the contents of jndi.properties are as follows.....

Context.INITIAL_CONTEXT_FACTORY=com.ibm.websphere.naming.WsnInitialContexDirecotory
Context.PROVIDER_URL=corbaloc:iiop:localhost:2809

and i have added the location of this file into the classpath, but the jre does'nt seem to finding this...and here is what i get as error message....

javax.naming.NoInitialContextException cannot instantiate class: org.jboss.iiop.naming.ORBInitialContextFactory[root exception is NoClassFoundException]......


please help...

hii,i am new to EJB, i want to register my first session bean with a name of helloworld. off course i will register it with my home object,suppose, my home interface's name is HelloHome and bean class's name is HelloBean and remote interface's name is Hello, then how to register the home object in jndi,so that my client can get the stub to the home object and then call the remote methods...

and also tell me , what classes will be required at the client side,i think client must have classes for home stub and EJBObject stub... please , kindly explain it to me..that will be a great help foe a newbie like me..!!
suppose i have two interfaces ... interface i1 and i2 and both have method of exact signature.....

public void called(), so if i am implementing both of them,then how to override(define) two different methods(one for interface i1 and another for interface i2 ). as compiler will not allow two method of exact signature in a class or other entities...so how we gonna give two methods for these two interfaces,as a single method cannot suffice the needs of two interfaces....
13 years ago
means you agree with the logic,ok...

now as static fields are initialized as soon as a class is loaded even before an object of that type is created(by class loader of jvm), now as it will load an outer class and do static initialization for that class, at the same time it could load the inner class as well, and initialize the static variables....so y to wait for any outer object's creation for the inner class object's static data ??(that was the reason for not having static fields in an inner class according to the logic made above..)?? so we jvm cd initialize the static member just after it initialized the outer static variables.......what say??? hope you getting me ...!! ..


if you would say that you access an inner class object with the help of only outer class object, so no sense of static variables..agreed but wat abt if i want to do something like this....

outer.inner.mystatic;//where mystatic is the static variable (Assuming if i wanted to do this)
13 years ago
someone may say that, as inner objects cannot exist without outer objects, so an inner object cannot exist independently. they are contained in some objects(outer objects). and as static variables cannot be there in an object, hence an inner class cannot have static variables?? if you agree with the logic made above then i have few points to discuss and if dnt agree then please tell your point ....
13 years ago
thank you very much!! ..it works,now i have another problem, would you suggest me??

now i created another package in pkcheck package and in that package i have one java file,utility2.java , package name is another, now i want to compile all the classes directly in pkcheck package and in all of it's subpackages , here another...

obviously i will run javac from the parent directory of pkcheck and i want classes to be stored in same directory(package) structure in some other directory..so i thought...this command should work...

javac pkcheck/*/*.java , but that didn't work anyway....so please tell the correct command for that..i used other combination's as well....
13 years ago
my project have a package and i have two java files

1. abstractcheck.java



and the 2. myabstract2.java



now as utility class (which is in myabstract2.java,non-public )is in package pkcheck, so that should be accessible in abstractcheck.java, bevause both are in same package, however this runs well in netbeans, but when i run it from command prompt, then it says cannot find symbol, utility and other non-public classes. what may be the problem..please help!!

i tried even classpath flag also...
13 years ago
hey! thank you naveen, that solves my problem, but why that facility was not given in DataInputStream??
13 years ago


i want to read a boolean and then read a byte(entered by the user), so what happens here is it reads the boolean and does'nt give the chance to enter the byte...perhaps it reads the existing stream as byte ..so what to do? please suggest.... thanks in advance!!
13 years ago
ya right, even i felt so, as i was learning in conjunction with java...in context with jdbc,so it appeared relevant to me to ask here... ..anyways thanks...i am giving it try on oracle forums...
13 years ago
i want to do oracle certification..oca , i am always confused about which version to take?? 9i or 10g or 11g?? if 11g is the latest, then why 9i is still available as certification exam?? please kindly share your information about this
13 years ago
hii, thanks to all of you for your valuable advices... by the way,i am not newbie in database applications! now i can figure out, what really i have to do... and yes there are differences(a little, i had witnessed while i was using MySql).will tell ya later....
i am often confused about which dbms to use for jdbc. learning it specifically for any dbms is certainly a limitation to that particular dbms. or in layman words i don't know how to study jdbc, please suggest me some way...i believe there are dbms specific issues and methods.so how to do an independent but still comprehensive study of jdbc....