Retain session in java client , which invokes a dotnet webservice
Hello Forum,
I am invoking a dotnet webservice using a java client. But I am not able to maintain session in this java client. I googled this, I got many links for the above. But none of the solution was using pure sun api's. My need is to do the same only using sun api's. Please guide. Any help will be appreciated.
Best Regards,
Tejal Khatri
Apache HttpClient can do that.
Similar Messages
-
hi ,
I have to design a java client (which is basically a JMS message listener)which
is deplloyed to all the servers in the cluster. But as these are message listeners,
i want only one of the instance to be active at a time.
If the server on which the client is active goes down , I want the second server
to start listening to messages.
How do i design this ? Also is there a public api for multicasting that we can
use ?
Anybody has an idea on how to go about this..
Thanks
nisha
Hi Nisha,
Failover message listeners? Sounds like you want MDBs, which are deployed on all nodes in a
cluster. If your JMS destination is a queue, then only one MDB will pick up the message. And just
like any other ejb service, MDBs failover.
Gene
"Nisha" <[email protected]> wrote in message news:[email protected]..
hi ,
I have to design a java client (which is basically a JMS message listener)which
is deplloyed to all the servers in the cluster. But as these are message listeners,
i want only one of the instance to be active at a time.
If the server on which the client is active goes down , I want the second server
to start listening to messages.
How do i design this ? Also is there a public api for multicasting that we can
use ?
Anybody has an idea on how to go about this..
Thanks
nisha
-
Generic Java client to invoke web service
Hi,
1.We have a web service HelloWorld registered in UDDI registry (private) of weblogic.
2.We have written a client that returns the WSDL URL and it is inturn passed to another piece of code where it invokes the the remote method of webservice.
In the above case,our problem is that the client we wrote became specific to the webservice(HelloWorld port, HelloWorld everything specific to HelloWorld webservice).
But our intention os that we have to write a client which should be generic to access any webservice by providing the Service Name and business name.
The UDDI publishing and querying is going well with a code where it returns the WSDL url after this we have to write generic code to access the remote method on webservice.
I appreciate anyone give me a solution to solve.
Thanks
VRhi,
The WSDL is available at
http://www.webservicex.net/stockquote.asmx?WSDL.
This WSDL has multiple ports and bindings.How do I
now which port/binding I should use?Hmm, hard to find a general answer. Each <port> element is linked to a single <binding> element. So, if you want to handle a certain binding, you have to access the corresponding port. Talking about your WSDL example, if you want to access the web service over, let's say, HTTP/GET you must access the <port name="StockQuoteHttpGet"> element. If you want to send a SOAP message, you must access the <port name="StockQuoteSoap"> element, and so on.
So depending on what type of message you want/have to send to the server, you have to access the corresponding <port> element.
In my code I am fetching the list of ports using
service.getPorts().Then I am iterating thru the list
and fetching the last port available in the List.I am
using this port further in my program.Is this the
right way?Can I use any port among the ports
available in the service.Generally spoken no! As I explained above, the actual <port> element of interest depends on the type of service you want/have to call. Very seldom the Web Service provider will offer a HTTP version of a certain operation. Mostly you have to hit a SOAP endpoint to get your response.
When I use the above approach I have a problem with
the Ouput format.When executing the webservice
client,the output format received and the output
format mentioned in the WSDL for that portType are
different.I mean, I get an Output format defined by
some other portType than the portType my program is
binded to.
When parsing the above mentioned WSDL,my program
binds to the last port i.e., StockQuoteHttpPost,and
identifies the output format as "Body" tag.
But when I print the Output from the webservice it is
different.It is looks like thisOk, that looks strange indeed. I can't imagine that the web server would respond with a SOAP message to your HTTP/POST request. However, technically it is possible because everything defined in the corresponding WSDL section says that the response will contain an xsd:string. "Body" is the name of the part, to be able to identify it, and does not need to occur in the response. So, the response is probably ok...
<wsdl:message name="GetQuoteHttpPostOut">
<wsdl:part name="Body" element="tns:string"/>
</wsdl:message>Anyway, I would have expected a list of key-value pairs instead:
Symbol=SBYN
Last=3. 17
Date=6/22/2005
Time=3:59pm
Change=0.00
Open=N/A
High=N/A
Low=N/A
Volume=0
MktCap=2 72.0M
PreviousClose=3.17
PercentageChange=0.00%
AnnRange=2.53 - 4.20
Earns=0.04
P-E=79.25
Name=SEEBEYOND TECH COcheerz, r. -
Problem in updating a java client to invoke data-secured web service
hello
i'm following the document 'programming weblogic web services' to use ws-security
functionality to encrypt & digitally sign SOAP Request & Response
and I first made a client that calls a secure weblogic web service.
( using a keystore having RSA key pair. )
the code is like below -----------------------------------------------------------------
final KeyStore keystore = loadKeystore(CLIENT_KEYSTORE, KEYSTORE_PASS);
TestEJB_Impl service = new TestEJB_Impl("file:///C:/bea/user_projects/domains/FirstDomain/working/TestEJB_with_Security_surpport.wsdl");
WebServiceContext context = service.context();
System.out.println("passing context info to the client");
X509Certificate clientcert;
clientcert = getCertificate(CLIENT_KEYNAME, keystore);
PrivateKey clientprivate;
clientprivate = getPrivateKey(CLIENT_KEYNAME, CLIENT_KEYPASS, keystore);
WebServiceSession session = context.getSession();
session.setAttribute(WSSEClientHandler.CERT_ATTRIBUTE, clientcert);
session.setAttribute(WSSEClientHandler.KEY_ATTRIBUTE, clientprivate);
UserInfo ui = new UserInfo(AUTHENTICATION_USER, AUTHENTICATION_USER_PASS);
session.setAttribute(WSSEClientHandler.REQUEST_USERINFO, ui);
TestEJBPort port = service.getTestEJBPort();
String result = null;
result = port.firstMethodTest("A123");
System.out.println(result);
and there comes error stacktrace like below ------------------------------
<Info> <WebService> <BEA-220024> <Handler
weblogic.webservice.core.handler.WSSEClientHandler threw an exception from its
h
andleRequest method. The exception was:
weblogic.xml.security.SecurityConfigurationException: Failed adding encryption
t
o request - with nested exception:
[weblogic.xml.security.SecurityProcessingException: No keywrapping algorithm ava
ilable for DSA keys].>
Exception in thread "main" java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.so
ap.SOAPFaultException: Exception during processing: weblogic.xml.security.Securi
tyConfigurationException: Failed adding encryption to request - with nested exce
ption:
[weblogic.xml.security.SecurityProcessingException: No keywrapping algorithm ava
ilable for DSA keys] (see Fault Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webse
rvice/fault/1.0.0">
</bea_fault:stacktrace>weblogic.xml.security.SecurityProcessingException: No
ke
ywrapping algorithm available for DSA keys
at weblogic.xml.security.wsse.v200207.SecurityImpl.getWrappingAlgorithm(
SecurityImpl.java:200)
at weblogic.xml.security.wsse.v200207.SecurityImpl.addEncryption(Securit
yImpl.java:175)
at weblogic.xml.security.wsse.v200207.SecurityImpl.addEncryption(Securit
yImpl.java:153)
i am using RSA key pair but, when i use DSA key pair , the error message is same
as above.
what is problem? and what am i missing?Hello,
The current implementation only supports RSA key types as legal
wrapping. It is on the TODO list to expand this to other algorithms.
Regards,
Bruce
dolso wrote:
>
hello
i'm following the document 'programming weblogic web services' to use ws-security
functionality to encrypt & digitally sign SOAP Request & Response
and I first made a client that calls a secure weblogic web service.
( using a keystore having RSA key pair. )
the code is like below -----------------------------------------------------------------
final KeyStore keystore = loadKeystore(CLIENT_KEYSTORE, KEYSTORE_PASS);
TestEJB_Impl service = new TestEJB_Impl("file:///C:/bea/user_projects/domains/FirstDomain/working/TestEJB_with_Security_surpport.wsdl");
WebServiceContext context = service.context();
System.out.println("passing context info to the client");
X509Certificate clientcert;
clientcert = getCertificate(CLIENT_KEYNAME, keystore);
PrivateKey clientprivate;
clientprivate = getPrivateKey(CLIENT_KEYNAME, CLIENT_KEYPASS, keystore);
WebServiceSession session = context.getSession();
session.setAttribute(WSSEClientHandler.CERT_ATTRIBUTE, clientcert);
session.setAttribute(WSSEClientHandler.KEY_ATTRIBUTE, clientprivate);
UserInfo ui = new UserInfo(AUTHENTICATION_USER, AUTHENTICATION_USER_PASS);
session.setAttribute(WSSEClientHandler.REQUEST_USERINFO, ui);
TestEJBPort port = service.getTestEJBPort();
String result = null;
result = port.firstMethodTest("A123");
System.out.println(result);
and there comes error stacktrace like below ------------------------------
<Info> <WebService> <BEA-220024> <Handler
weblogic.webservice.core.handler.WSSEClientHandler threw an exception from its
h
andleRequest method. The exception was:
weblogic.xml.security.SecurityConfigurationException: Failed adding encryption
t
o request - with nested exception:
[weblogic.xml.security.SecurityProcessingException: No keywrapping algorithm ava
ilable for DSA keys].>
Exception in thread "main" java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.so
ap.SOAPFaultException: Exception during processing: weblogic.xml.security.Securi
tyConfigurationException: Failed adding encryption to request - with nested exce
ption:
[weblogic.xml.security.SecurityProcessingException: No keywrapping algorithm ava
ilable for DSA keys] (see Fault Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webse
rvice/fault/1.0.0">
</bea_fault:stacktrace>weblogic.xml.security.SecurityProcessingException: No
ke
ywrapping algorithm available for DSA keys
at weblogic.xml.security.wsse.v200207.SecurityImpl.getWrappingAlgorithm(
SecurityImpl.java:200)
at weblogic.xml.security.wsse.v200207.SecurityImpl.addEncryption(Securit
yImpl.java:175)
at weblogic.xml.security.wsse.v200207.SecurityImpl.addEncryption(Securit
yImpl.java:153)
i am using RSA key pair but, when i use DSA key pair , the error message is same
as above.
what is problem? and what am i missing? -
Java Client throws exception while sending NTLMV2 Response from WIN7 to W
We have written a Java client which connects to a webservices application using NTLM authentication against Windows 2008 R2 Server (using IIS7). This program works fine when running from Windows XP, Linux but failing when running from Windows 7.
Error encountered is: java.io.IOException: Authentication failure.
Here is what we have written to connect to HTTPS with credential using SSLContext as mentioned below.
SSLContext sc = SSLContext.getInstance( "SSL" );
sc.init( null, trustAllCerts, new java.security.SecureRandom() );
HttpsURLConnection.setDefaultSSLSocketFactory( sc.getSocketFactory() );
( ( HttpsURLConnection )( m_oHttpURLConnection ) ).setHostnameVerifier( this );
URL url = new URL("https://testsite...");
HttpsURLConnection m_oHttpURLConnection = (HttpsURLConnection) url.openConnection();
Following properties are set to HttpsURLConnection:
RequestMethod : GET
InstanceFollowRedirects : true
AllowUserInteraction : true
UseCaches : false
DoOutput : true
DoInput : true
After setting all the above parameters the following code is used to set credentials data and connect to site
Authenticator.setDefault(new MyAuthenticator ());
m_oHttpURLConnection.connect();
After connection is successful request XML is sent to server and expecting a response from the server. So when the below line is called exception is thrown.
m_oHttpURLConnection.getResponseCode();
Exception :
java.io.IOException: Authentication failure
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1173)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)
After changing LAN Manager Authentication level setting of Windows 7 from Send NTLMv2 response only to Send LM & NTLM use NTLMv2 session security if negotiated, application is working fine.
Local Security Settings àSecurity SettingsàLocal Policies à Security Optionsà Network security: LAN Manager Authentication level
By default in Windows Vista, Windows Server 2008, Windows 7, and Windows Server 2008 R2: Send NTLMv2 response only , Lowering the security level at the client end is bit risk and typically is not recommended.this subforum is about Kerberos and GSS and not about NTLM. Why are you hasseling with NTLM? Take Kerberos.
-
How to create a custom java client Security Policy File?
I have a stand-alone java client which invokes a .NET WSE 3.0 enabled web service. The web service SOAP header requires username token to be passed from my java client.
Could some one kindly provide a sample of a client-side Security Policy File?
Your help is very much appreciated.
MikeThis is still a workaround...
But if you put checks on all your forms to see if the user has accepted the terms (assumes there is an attribute tracking this) then you can redirect the user to the terms/conditions forms. Still not spoof-proof, but it would be bookmark proof. (and a pain if you have too many forms) -
Invoking a secure web service from a standalone java client
I am using stand alone java client to invoke a web service. This web service in turn invokes a jcs which is protected ( role based access ).
I am using a proxy at the client side for web service invocation
FileSubmission_Impl filesubmission_impl = new FileSubmission_Impl();
FileSubmissionSoap filesubmissionsoap = filesubmission_impl.getFileSubmissionSoap();
filesubmissionsoap.processFiles(...)
This works if there are no security constraints on any of the resources (@common:security).
I need to pass the username and password from the java client that will be authenticated and allowed to access the protected resources.
Please let me know as to how this can be achieved ( passing username and password from client )Paula,
I suppose you're using CFINVOKE (http://www.activsoftware.com/code_samples/code.cfm/CodeID/44/ColdFusion/Invoking_SOAP_Web_Services_with_ColdFusion_MX_CFINVOKE_Tag) or are you using a third party tool like CFX_SOAP (http://www.activsoftware.com/products/productdetail.cfm/id/1015)?
Are you working with WebAS 6.4 or 6.2?
It works with web services created with WebAS 6.4, but you should generate proxy classes. Check Thomas' weblog (second part of it)->https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1012. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
The WSDL generated by this method is more standard than the one generated when you just Remote enable an FM and look at the webservice browser.
Th core of CF MX is Java and that engine is rather strict in standards.
Eddy -
Java clients and IUserPrincipal class not working for authentication
I'm developing a Java client which talks to EJBs on the iAS server via
iiop.
I've already developed EJBs, and they work fine. I'm trying to do user
authentication per the examples in the Rich Client section.
Here are the steps I've taken:
1. I've created a class (achp.security.AchpPrincipal) which implements
com.netscape.ejb.client.IUserPrincipal.
2. I've added the class to the initial context via the following line:
env.put("com.netscape.ejb.client.PrincipalClass",
"achp.security.AchpPrincipal");
3. I do a home lookup with the above initial context when the
application starts, create a bean, and then invoke a method on the bean.
When I do the home lookup, according to the manual, my AchpPrincipal
class should be instantiated (which brings up a login window which then
records username and password for future use).
This never happens. The AchpPrincipal class is never instantiated,
although the home lookup occurs successfully and the bean method call is
also performed successfully.
I'm running server on my Win2K desktop, with SP3. And, of course, I've
properly installed the CXS server (as indicated by the fact that I can
communicate with the EJBs at all though the Java client).
Any help would be appreciated.
Thanks,
Douglas Bullard
Multnomah County ISDI'm developing a Java client which talks to EJBs on the iAS server via
iiop.
I've already developed EJBs, and they work fine. I'm trying to do user
authentication per the examples in the Rich Client section.
Here are the steps I've taken:
1. I've created a class (achp.security.AchpPrincipal) which implements
com.netscape.ejb.client.IUserPrincipal.
2. I've added the class to the initial context via the following line:
env.put("com.netscape.ejb.client.PrincipalClass",
"achp.security.AchpPrincipal");
3. I do a home lookup with the above initial context when the
application starts, create a bean, and then invoke a method on the bean.
When I do the home lookup, according to the manual, my AchpPrincipal
class should be instantiated (which brings up a login window which then
records username and password for future use).
This never happens. The AchpPrincipal class is never instantiated,
although the home lookup occurs successfully and the bean method call is
also performed successfully.
I'm running server on my Win2K desktop, with SP3. And, of course, I've
properly installed the CXS server (as indicated by the fact that I can
communicate with the EJBs at all though the Java client).
Any help would be appreciated.
Thanks,
Douglas Bullard
Multnomah County ISD -
Not able to receive the web service response to java client - jax-rpc
HI,
Have a wsdl and created the java client using wscompile and got the set of files (Port, Binding, ServiceLocator, Service and all related java files).
My java client sends the valid java request to the webserver and i could see the correct response coming back to my machine as the reply from the webserver.
But i couldnt get the response printed using System.out.println in my java client when i invoke call.invoke() method with needed input parameters.
Do i need to set any encoding or how do i get the response in the my java client which is returned from the webserver?The whole PL/SQL which fails in case it helps to solve the issue
declare
peticion VARCHAR2(32767);
env VARCHAR2(32767);
url varchar2(1000);
http_req utl_http.req;
http_resp utl_http.resp;
begin
url:='http://<HOST>:7778';
-- soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
-- <auth:BasicChallenge
-- xmlns:auth="http://www.soap-authentication.org/2002/01/">
-- <Realm>Oracle Calendar Web Services</Realm>
-- </auth:BasicChallenge>
peticion:='
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<auth:BasicAuth xmlns:auth="http://soap-authentication.org/2002/01/">
<Name>sysadmin</Name>
<Password>sysadmin1</Password>
</auth:BasicAuth>
</soap:Header>
<soap:Body>
<cwsl:Create xmlns:cwsl="http://www.oracle.com/WebServices/Calendaring/1.0/">
<CmdId>Testoraptor Command 31</CmdId>
<iCalendar>
<vcalendar prodid="-//Oracle//Calendaring//Calendarlet//EN" version="2.0">
<vevent>
<class>PUBLIC</class>
<description>a long description</description>
<dtstart>20061003T090909</dtstart>
<duration>60M</duration >
<location>my location</location>
<priority>2</priority>
<summary>a title</summary>
<uid>4567</uid>
<x-oracle-eventtype>APPOINTMENT</x-oracle-eventtype>
</vevent>
</vcalendar>
</iCalendar>
</cwsl:Create>
</soap:Body>
</soap:Envelope>';
http_req := utl_http.begin_request(url||'/ocws-bin/ocas.fcgi', 'POST','HTTP/1.0');
utl_http.set_header(http_req, 'Content-Type', 'text/xml');
utl_http.set_header(http_req, 'Content-Length', length(peticion));
utl_http.set_header(http_req, 'SOAPAction', '"http://www.oracle.com/WebServices/Calendaring/1.0/Create"');
utl_http.write_text(http_req, peticion);
dbms_output.put_line (length(peticion));
http_resp := utl_http.get_response(http_req);
utl_http.read_text(http_resp, env);
utl_http.end_response(http_resp);
end;
We have tried many different XML structures but we are not able to create an appointment. -
OutPut form UserTask to java client
HI All,
I have the following senario over here ..help me out :-(
1)Invoke a webservice
2)Reply Activity
3)UserTask-------------->If i approve this user task i will call an other webservice,
if i REJECT the user task the process comes to an end
I am calling this BPEL webservice from the java client,and i am able to get the out of the first invoke webservice activity from the result and my BPEL process moves to the UserTask and waits there for the human interaction.
I am using the Worklist API to APPROVE/REJECT the user task.If i APPROVE the user task from the java code(Worklist API) how can i get the otu put the other
WEBSERVIES i which is invoked after updating the usertask from java code.
Cheers,
Kalyan.Hi guys,
Any updates on the above post .
Doubt:How to get the out from the invoke activity to the java client which is invoked after the user task.
NOTE:I am invoking the BPEL process by creating a java client to the BPEL process.
Thanks
Patti. -
Using Portable datasource lookup for a java client in OC4J 10g
Hi,
I'm in the process of porting a standalone java client to j2ee. At the moment I have a thick java client which uses jndi to access a global datasource configured on the OC4J server (10.1.2.0.2) and it works fine.
Using the 'Services Guide' I decided the next step was to deploy the client as a J2EE application. At the moment the j2ee application only contains the descriptors (i.e application-client.xml and orion-application-client.xml packaged under META-INF in a .jar. This is, in turn, packaged in an .ear along with application.xml (again under META-INF.)
This is where I'm hitting problems. The following config produces a 'javax.naming.NameNotFoundException' error
application.xml
<application>
<display-name>appName</display-name>
<description>appDescription</description>
</application>
application-client.xml :-
<application-client>
<display-name>appName</display-name>
<resource-ref>
<res-ref-name>jdbc/MaptoTest</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</application-client>
orion-application-client.xml :-
<orion-application-client>
<resource-ref-mapping name="jdbc/MaptoTest" location="jdbc/Test"/>
</orion-application-client>
jndi.properties :-
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
java.naming.provider.url=opmn:ormi://<machine>:6004:<OC4J_INSTANCE>/appName
java.naming.security.principal=<USERNAME>
java.naming.security.credentials=<PASSWORD>
client.class
ctx = new InitialContext();
ds = (DataSource)ctx.lookup("java:comp/env/jdbc/jdbc/MaptoTest"));
"jdbc/Test" was configured through OAS and is present in data-sources.xml (it is the ejb-location property).
I'm running the client through Jdeveloper. I've used SJSAS previously and was use to configuring and deploying a application module through it's own tool. SJSAS also has a tool (appclient) for running the client. Is there something similar I should be using in OC4J?
The services guide only mentions web.xml and ejb-jar for portable datasource lookup but I assume it's also possible using application-client.xml.
It seems to me that my descriptors don't mention the j2ee application explicitly. Am I missing an entry in one of the xml descriptors. Any help would be appreciated this is driving me crazy!
Thanks in advance for any advice.Hi Geoff,
The configurations for your client.xml files look ok. Question: where did you configure the datasources.xml i.e. under j2ee/<OC4J_Name>/config or under the application-deployments/<appname>, kindly check and let us know.
Thanks,
Deepak -
ESB Webservice call from Java client
Hi,
i need to call webservice from Java client which inturn will call ESB
I tried creating proxy from the WSDL in jDeveloper and tried setting the following end points
My concrete WSDL path :http://10.237.25.63:8889/esb/wsil/SubroCaseESBSystem/InputRouter?wsdl
My EM -path:"http://10.237.25.63:8889/event/subrotest/SubroInputrouter"
When i call the concreteWSDL im getting
"HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 405 Method Not Allowed"
If i call the EM pathim getting
"javax.xml.rpc.soap.SOAPFaultException"
Any guess as how i need to call my ESB from client.Hello Venkat,
- I have created Java Proxy using Jdeveloper for ESB webservice and I usually use http://host:port/event/...?wsdl, and it creates stub which works without any modification. Let me know, may be I can try sending sample project
- I would like to verify if you are having issue with Java client or ESB itself, are you able to execute that ESB process/service from EM test page or from any other BPEL process?
Regards,
Chintan -
Jws source file not found (Java client proxy)
Hi,
I created a web service in Workshop, and generated a Java proxy from it using the test console. I then wrote a stand-alone Java client to invoke an operation on the web service based on the workshop examples. I'm able to first get the service proxy fine.
MyService_Impl proxy = new MyService_Impl("http://localhost:7001/MyProcesses/MyService.jws?WSDL=");
Then, the following line fails.
MyServiceSoap soapProxy = proxy.getMyServiceSoap();
Error is a SoapFaultException with message "Source file MyService.jws not found". I don't know where it's looking for the file to begin with. Is there a place where I can control that?
When I look at the WSDL in the workshop test browser, the soap:address location URL is different from the actual URL in the test browser address bar.
I'm new to this stuff. Any ideas will help.
Thankshello folks,
I have Windows XP home Firefox v1.0.6.
removed old java in Add/Remove programs.
cleared the "Temporary Internet Files" folder that contained C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5.
tried to load jre-1_5_0_04-windows-i586-p-iftw.exe for the third time, and the install still hangs up.
J2SE Runtime Environment 5.0 Update Installer Information : Error 1311. Scource file not found: C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5\2XFKL4VY\je150000[1].cab. Verify that the file exists and that you can access it.
and,
Error 1311. Scource file not found: C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5\EEIDPHGA\jp150040[1].cab. Verify that the file exists and that you can access it.
here's the thing, I cannot surf to "Content.IE5" folder in my "Local Settings\Temporary Internet Files" folder, but I can plug in the directory in the address bar of Windows Explorer & see the "Content.IE5" folder.
I do not see "je150000[1].cab" or "je150000[1].cab" in there.
Am I using the wrong program to fresh install Java for Firefox in XP?
Is there something wrong with my operating system?
monitoring this thread.....
thanx. -
Build soap client to invoke jax-rpc web services
Hi,
I would like realize a simple soap java client to invoke a web services starting from wdsl file configuration of my web services.
Thanks,
Enrico.Hi,
You can use jax-rpc to invoke the web services by creating stubs classes in your client side using wsdl. If you have ant ,then use wscompile command (in ant) or through dos command passing this wsdl file as parameter to create stubs classes automatically.And then set your classpaths accordingly when calling the web services from your client.
thanks
javaonlyjava -
The client is a pure-Java client, how to invoke session bean in oc4j server
I WOULD LIKE TO INVOKE MY SESSION BEAN FROM MY STRUT WEB PROJECT AS A PURE JAVA CLIENT . I SETUP THE JNDI INITIAL CONTEXT PROPERTY BUT I HAVE NO IDEA TO WHERE I SHALL PUT MY application-client.xml and orion-application-client.xml. MY APPLICATION THROW EXCEPTION
NamingException: StoreEJB not found
IF YOU ANY EXAMPLE PLEASE SEND ME
THIS IS MY CLIENT PROGRAME
package ejbs;
import java.io.*;
import javax.ejb.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.naming.*;
import javax.rmi.*;
import java.rmi.*;
import java.util.*;
public class StrutInt {
* @param args
public static void main(String[] args) {
//System.out.print("The application Checkup");
try
Hashtable env = new Hashtable();
env.put (Context.INITIAL_CONTEXT_FACTORY,
"oracle.j2ee.naming.ApplicationClientInitialContextFactory");
env.put (Context.SECURITY_PRINCIPAL, "oc4jadmin");
env.put (Context.SECURITY_CREDENTIALS, "admin");
//env.put (Context.PROVIDER_URL, "http://localhost:8888");
env.put (Context.PROVIDER_URL, "ormi://localhost:23791/EjbIntegrationEAR");
env.put ("dedicated.rmicontext", "true"); // for 9.0.2.1 and above
Context context = new InitialContext (env);
System.out.println("work up to this");
Object homeObject =
context.lookup("StoreEJB");
System.out.print("Hi Integration");
StoreHome storeHome = (StoreHome) PortableRemoteObject
.narrow(homeObject, StoreHome.class);
Store exa= storeHome.create();
String s =exa.foo("The foul guy");
System.out.print(s);
catch(NamingException e1) {
System.err.println("NamingException: " + e1.getMessage());
catch(RemoteException e2) {
System.err.println("RemoteException: " + e2.getMessage());
catch(CreateException e3) {
System.err.println("FinderException: " + e3.getMessage());
catch(Exception e4) {
System.err.println("FinderException: " + e4.getMessage());
}Create the object of InitialContest class. Then pass in hashTable put WLContextFactory.
then lookup to the sessionJNDI. then call the create method u will get the remote object, from the remote object u can call to the business method
Maybe you are looking for
-
How do I change the color of the background (working) space in Adobe Elements 11 from that awful olive green color to light gray or black or white?
-
Spry data set not displaying data in IE8
Ok probably sounds familiar to some of you - but I cant seem to get it to display the data in IE8 after everyone's suggestions on the Spry forum. When I load the page in FireFox it works, IE8 and Opera it doesn't. I am running CS5 and it looks fine
-
Hello all, We are receiving a failure code : # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # Error ID: 455843455054494F4E530E43505000D3 01 # Problematic Thread: prio=5 tid=0x
-
Can i design a logo in photoshop elements
can i design a logo in elements
-
ITunes moving files outside of the "music" directory.
I can't understand why, but whenever I open up iTunes it moves files outside of the "music" directory and into the "iTunes Media" directory. The files it decides to move are random and it does not matter if I try to play or edit any of them, it happe