Karthik Mohan

Greenhorn
+ Follow
since Sep 29, 2004
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 Karthik Mohan

That does not solve the problem. The table row's color is not changing at all.
Eric, my JS function is



I call the JS function like



where matInd_1_1 is the "id" for that table row ..

[double quotes are omitted due to errors while posting .. the spaces for the onclick event also for similar reasons]

thanks
karthik

[ August 08, 2005: Message edited by: Karthik M ]
[ August 08, 2005: Message edited by: Karthik M ]
I have a table for which its width, background color etc., are defined using CSS styles and applied using the <div> tag.

There is a checkbox in one of the columns and upon clicking the checkbox I would like to change the color of the selected/unselected ROW in the table. I am not able to override the initial styles specified using CSS. how can i do this ?? If i do not apply the table styles using CSS, I am able to change the color depending on the checkbox state, but when the styles are applied, there is no effect.

TIA
karthik
This has been covered a lot of times in this forum. Please do check the other threads or search for them before asking the question. Please do not take this in the wrong way (no offence intended)

The links you requested for:

Best book out there: J2EE Web Services

For all other related materials check: http://www.valoxo.ch/jr/SCDJWS_Links.html
The WSDL file retrieved from the URL is not a valid XML file. I tried to validate it using XMLSPY and validation failed. A WSDL file that was generated by weblogic's ant tasks validates fine with XMLSPY. So i guess there is something wrong with the way .NET generated the WSDL file (or it does not conform to STANDARDS .. adhering to MSFT's long standing traditions .. :-))
Hi Everyone,

I have a webservice implemented on Weblogic 8.1 SP3 and I am writing a java standalone client which calls this webservice over SSL. There is a webserver infront of the appserver (firewall kinda) which forwards all the requests to the appserver.

The setup works without any problems over HTTP, but I am not able to get HTTPS working. A .NET client works fine over HTTPS on the same setup.

I basically get a Connection timeout error. I am using the client proxy stub classes generated by weblogic itself.

The command that I am using to execute my client is :



D:\tmp_programs>java -cp "myService.jar;D:\bea\weblogic81\server\lib\web logic.jar;D:\bea\weblogic81\server\lib\webserviceclient+ssl.jar;%CLASSPATH%" -Dweblogic.se curity.SSL.ignoreHostnameVerify=true -Dweblogic.webservice.security.verbose=true -Dweblogi c.webservice.client.verbose=true -Dweblogic.webservice.client.ssl.strictcertchecking=false -Dweblogic.security.SSL.trustedCAKeyStore=cacerts test
Test SSLAdapter verbose output enabled
Strict cert checking disabled by default
Disabling strict checking on adapter weblogic.webservice.client.WLSSLAdapter@1f1fba0
Set TrustManager to weblogic.webservice.client.BaseWLSSLAdapter$NullTrustManager@1901437
Set HostnameVerifier to weblogic.webservice.client.WLSSLAdapter$NullVerifier@145c859
Got new socketfactory javax.net.ssl.impl.SSLSocketFactoryImpl@10b9279 Connecting to:xxxx.com port:443 socket:Socket[addr=xxxx.com/xx.xx.xx.xx,port=443,localport=2294]com.certicom.tls.interfaceimpl.TLSConnectionImp l@18166e5 Warning: cert chain untrusted Warning: subject (xxxx.com, OU=Terms of use at www.verisign.com/rpa (c)0 0, OU=xxxx, O=xxxx, L=xxx, ST=xxx, C=US) does not match server name (null) <May 19, 2005 4:24:36 PM EDT> <Info> <WebService> <BEA-220048> <May 19, 2005 4:24:36 PM EDT> <Info> <WebService> <BEA-220034>



The warning messages say that the server name does not match, but actually they match. Using the same name i am able to retrieve the WSDL through the browser without any problems. (using HTTPS)



The code snippet inside my program is:

System.setProperty("javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl"); System.setProperty("java.protocol.handler.pkgs", "weblogic.webservice.client"); SSLAdapterFactory adapterFactory = SSLAdapterFactory.getDefaultFactory(); WLSSLAdapter adapter = (WLSSLAdapter) adapterFactory.getSSLAdapter(); adapter.setStrictChecking(false); adapter.setTrustedCertifcatesFile("mycert.pem"); adapterFactory.setDefaultAdapter(adapter); adapterFactory.setUseDefaultAdapter(true); MyService service = new MyService_Impl("https://xxxx.com/webservice/test?WSDL"); MyServicePort port = service.getMyServicePort();

Any suggestions would be really helpful.

TIA karthik

[ May 19, 2005: Message edited by: Karthik M ]
[ May 19, 2005: Message edited by: Karthik M ]
19 years ago
A good way of attacking this problem would be to use an API such as XMLBeans or JAXB (XMLBeans has more advs than JAXB, i think).

Design a Schema file for your input request message and output response message and generate the appropriate serializers/de-serializers using XMLBeans and it is very easy to use also. You can use the same classes to program your client also. As the whole schema is represented as a Java Object, it is very easy to retrieve data and construct the response also.
19 years ago
I am not sure about XMLBeans, but the "autotype" ant task of weblogic can generate the necessary type mapping information to be included in your WSDL file.

If you do not have weblogic installed and want a quick solution, PM me and i can generate it and mail it back to u.
let's say that the web service is located at:

http://somesite.com/webservice/GetQuote

then, you can get the WSDL from:

http://somesite.com/webservice/GetQuote?WSDL

Try and see if you can get the WSDL using the above URL pattern. If you can then using that WSDL you can generate client stubs or program the client yourself.

Chapter 7 & 8 (Not sure about numbers though .. [its under the JAX-RPC section i think]) of the J2EE tutorial on the Sun site also gives you detailed explanation on how to program your own client.

hope this helps

karthik
19 years ago
our specifications have custom error messages and error numbers. So i need to return custom error messages. Also i am using weblogic and not Axis.

Thanks
karthik
19 years ago
hi everyone,

I am returning a custom data type from my webservice. At the same time when there is an error in the business process, I need to return an error message which is not part of the Response (custom data type).

How do i deal with this situation, and how can i implement this ? (My response data type and the error message format are different). I am using weblogic, so my serialization classes are generated by weblogic tools.

I tried setting the return type of my webservice to be java.lang.object and on my client side appropriately typecast it, but when i receive the response back on my client side, a serialization error is raised.

TIA
karthik
19 years ago
hi everyone,

do we need to create a handler for every service or can we use a single handler for multiple services ?.

TIA
karthik
19 years ago
if you use an api like XMLBeans, you can validate the data very easily.
19 years ago
Hi kumar,

i would like to hear more about your XKMS framework implementation. What did you primarily use it for ?? encrypting the whole document or just specific nodes ?

also, if you have a bookmark of resources that you had referred to, can you please send them to me ?, i can PM you my email address.

Thanks
karthik
19 years ago