Java Webservice client slow compared to dot net client
we have DotNet webservice which is being called by two clients , one a dotnet client and other a javaclient
The problem is java client is taking longer time in processing the results when compared to dotnet client and affecting the performance greatly , i'm using axis in java
Is there any know issue with axis regarding my situation here.
also the same java client when run on linux platform still longer time to process.
please provide me some pointer here
I would test the general performance difference between the 2 platforms on the same machine.
I have the feeling that Java is generally slower on windows than .NET
Microsoft has their secrets after all.
Similar Messages
-
Non Java Webservice client Authentication
I see in the Weblogic docs many examples of Java webservice clients. Including
one that passes a user id and password through the getXXXPort(userid, password)
call for authenticating the user at runtime. My question is, can a non Java webservice
client authenticate itself in somewhat the same manor? A non Java client wouldn't
have the client jar file available containing the stubs and all.
If someone has a code snippet they could send me it would be most appreciated.
Thanks,
Craig LindleyHi Craig,
An partial example using .NET is attached; in this environment you need
to use their NetworkCredential class.
Hope this helps,
Bruce
craig lindley wrote:
>
I see in the Weblogic docs many examples of Java webservice clients. Including
one that passes a user id and password through the getXXXPort(userid, password)
call for authenticating the user at runtime. My question is, can a non Java webservice
client authenticate itself in somewhat the same manor? A non Java client wouldn't
have the client jar file available containing the stubs and all.
If someone has a code snippet they could send me it would be most appreciated.
Thanks,
Craig Lindleyusing System;
using System.Net;
namespace SecurityBasicClient
class AuthClient
[STAThread]
static void Main(string[] args)
SoapInteropBaseService ws = new SoapInteropBaseService();
ws.Url = "http://webservice.bea.com:7001/base/SoapInteropBaseService";
Console.Write("User:");
string strUser = Console.ReadLine();
Console.Write("Password:");
string strPassword = Console.ReadLine();
ICredentials credentials = new NetworkCredential(strUser,strPassword);
try
ws.Credentials = credentials;
Console.WriteLine(ws.echoString("Hello World"));
catch (Exception err)
Console.WriteLine(err.Message);
finally
Console.ReadLine(); -
Java webservice client with windows domain authentication
I'm writing (well attempting to) a Java web service client using netbeans that consumes a web service written in C#, that uses NTLM authentication.
If I consume the webservice from a .NET client, authentication isn't a problem; I can just pass the crediantails in on an engine object.
eg engine.Credentials = System.Net.CredentialCache.DefaultCredentials.
Upon consuming this webservice in java the Credentials method doesn't appear on the engine object like it doesn't with it's C# counterpart.
I assume that Java goes about a different way of doing windows domain authentication?
Cheersfor what ever reason it just seemed to start working.
-
Exception in Java WebService Client
Hi,
I am using RAD7.0 with WAS6.1, I have generated client from wsdl, I am trying to invoke one of the operation in webservice. I am getting the following error.
The same code is working in local environment, but its getting failed delivary environment.
Error:
2009-05-19 10:25:30,ERROR,com.hbos.dimsarchival.dimsclient.ArchivalBatchJob,WebSphere_EJB_Timer_Service_WorkManager.Alarm Pool : 0 Error while ArchivingDocument
WebServicesFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultString: WSWS3713E: Connection to the remote host 10.164.1.19 failed.Received the following error: Async IO operation failed, reason: RC: 32 There is no process to read data written to a pipe.
faultActor: null
faultDetail:
WSWS3713E: Connection to the remote host 10.164.1.19 failed.Received the following error: Async IO operation failed, reason: RC: 32 There is no process to read data written to a pipe.
at com.ibm.ws.webservices.engine.transport.http.HttpOutboundChannelConnection.connect(HttpOutboundChannelConnection.java:820)
at com.ibm.ws.webservices.engine.transport.http.HttpsOutboundChannelConnection.connect(HttpsOutboundChannelConnection.java:210)
at com.ibm.ws.webservices.engine.transport.http.HTTPSender.invoke(HTTPSender.java:530)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:228)
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:336)
at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java:929)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:722)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:673)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:495)
at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:948)
at com.hb.dimsarchival.dimsentities.DIMSServiceEndpointBindingStub.archiveDocuments(DIMSServiceEndpointBindingStub.java:1136)
at com.hb.dimsarchival.dimsclient.ArchivalBatchJob.archiveDocuments(ArchivalBatchJob.java:106)
at com.hb.dimsarchival.archivescript.ArchiveSchedulerBean.ejbTimeout(ArchiveSchedulerBean.java:130)
at com.ibm.ejs.container.TimedObjectWrapper.ejbTimeout(TimedObjectWrapper.java:90)
at com.ibm.ejs.container.TimerTaskHandler.doWork(TimerTaskHandler.java:265)
at com.ibm.ws.scheduler.AlarmListener.executeTaskWithNotification(AlarmListener.java:795)
Service is available, and its running successfully. I have checked the endpoint url.
Can any one help me on this topic.
Edited by: javausers07 on May 20, 2009 7:45 AMHi, I Found the solution.
Its mistake in SSLConfiguration. End point url is given in IP but in SSL configuration we have give workstation name.
So instead of getting SSLConfiguration issue we got this issue.
Thanks alot. -
DES Encryption compatibility between Microsoft dot Net and Java
Hi,
I have a situation that a Secret key is shared between two components like Core and the Customer. The customer encrypts a particular data using DES algorithm using the shared secret key. The customer uses Microsoft dot Net framework to do this. The encrypted data comes to core part which has been developed in Java. I want to know whether it is possible to decrypt the data value using DES algorithm which is coming from Dot Net platform. By the way I am getting different values. I want to know whether the byte[] in Java and Dot Net are same. Please provide me relevent answers to this question. Is it possible to make interaction with the cryptography between two differnet environments like Java and Microsoft Dot Net. I mean only DES algorithm.DebadattaMishra wrote:
Hi,
I have a situation that a Secret key is shared between two components like Core and the Customer. The customer encrypts a particular data using DES algorithm using the shared secret key.Yuk! That is what SSL is for.
The customer uses Microsoft dot Net framework to do this. The encrypted data comes to core part which has been developed in Java. I want to know whether it is possible to decrypt the data value using DES algorithm which is coming from Dot Net platform. Yes though there are many pitfalls. The devil is in the detail of the .NET code. I would not tackle this without access to the full .NET encryption code.
By the way I am getting different values.This is not surprising since, as I said above, there are many pitfalls. The.NET documentation is poor at best and in some cases is very very misleading. Some of the .NET methods involved in key generation have obscure semantics and only after a very careful reading of lots of MS documentation did I start to understand the semantics.
I want to know whether the byte[] in Java and Dot Net are same. You should compare the 'bits' of each byte and not the numeric values since Java uses signed bytes.
Please provide me relevent answers to this question.This is not your call. Anyone is free to post answers as long as they follow the forum code of conduct.
Is it possible to make interaction with the cryptography between two differnet environments like Java and Microsoft Dot Net. I mean only DES algorithm.Of course! -
Problem while Consuming Java Webservice from WCF client
Hi,
I am trying to Consume Java Webservice from WCF client.The webservice main functionality is digital data management.The client can Query Digital data and upload digital data by calling webservice methods.Problem is when i am trying to call webmethod from WCF client its giving "Unrecognised message versions".I have no idea about how the message objects are processed at serverside.but at server side they have used JAXP for XML document parsing.
The response content type is Multipart/related and applicatio/XOP+XML.
Can u plz help me how to handle this situation.I have minimum knowledge in Java WS architecture.Basically i am .Net programmer.
Can U please guide me in a proper way to resolve the problem.Hi Abinash,
I have the same problem. Have you solve that problem?
I am using a java program to call a webservice too. And I have generated the client proxy definition for Stand alone proxy using NWDS. When I call the method of the webservice I am getting the correct result but along with the result I am getting one error and one warning message in the output.
The java code to call the webservice is as follows.
MIDadosPessoaisSyncService service = new MIDadosPessoaisSyncServiceImpl();
MIDadosPessoaisSync port = service.getLogicalPort("MIDadosPessoaisSyncPort");
port._setProperty("javax.xml.rpc.security.auth.username","xpto");
port._setProperty("javax.xml.rpc.security.auth.password","xpto");
String out = port.MIDadosPessoaisSync("xpto", "xpto");
System.out.println(out);
The result I am getting is :
Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
Error Message is :com/sap/guid/GUIDGeneratorFactory
<b>The result of the WS is correct!!!</b>
The Java project does not have any warning. But the stand alone proxy project has following warnings associated with it.
This method has a constructor name MIDadosPessoaisSync.java
The import javax.xml.rpc.holders is never used MIDadosPessoaisSyncBindingStub.java
The import javax.xml.rpc.encoding is never used MIDadosPessoaisSyncBindingStub.java
The constructor BaseRuntimeException(ResourceAccessor, String, Throwable) is deprecated MIDadosPessoaisSyncBindingStub.java
It is very similar with your problem, could you help me?
Thanks
Gustavo Freitas -
thanx
mohan2see wrote:
oh thanx for the reply....actually i was worked in information technology sector company...i worked on java and mainframe platform....so if i buy an apple macbook pro and if it doesn't supports those developer programs i need to buy an pc......so i need to be confirmed....if u know abt this please explain me detailed...thanx again...:)
Are you being serious?
If you've done any programming in Java then I'd really have hoped you already realised it is a platform independent programming language, that was Sun's original intention when they created it , to be able to run compiled code on any Java Virtual Machine regardless of the platform:
http://en.wikipedia.org/wiki/Java_%28programming_language%29
And as for "dot net" - do you not realise that this is purely a MS Windows development framework?!!
http://en.wikipedia.org/wiki/.NET_Framework
Just to be clear, (and I realise I'm being picky here, given that English isn't likely to be your first language), they are not "developer programs", they are programming languages or frameworks.
And for further clarification, the Mac operating system does support Java development, and does not support .Net (unless you install Windows on it!)
I can't comment on the 'mainframe' bit you're referring to without more detail. -
Consuming XI webservice in Dot net application.
I have created a Xi webservice and hosted it on a server.Now I want to consume this webservice in a dot net application. But while consuming it I get a binding error from the webservice.Does anyone has a solution fron this. Do I have to do some XI settings while creating web service.
have you used the WSDL created in XI - u can find it from http://<server>:<port>/wsnavigator/enterwsdl.html
Also use the link in soap:address location for your test purposes.
If proxy is involved in your network you will have to consider tht too and finally u sud use a XI user id to connect. -
Problem using VB Client with a JAVA Webservice
Hi people!
I'm using JDeveloper (9.0.3) to create a JAVA Webservice on OC4J container. I followed tutorial of Oracle and I got to execute my webservice, including I can invoke my methods by HTTP using HTML forms.
I need to invoke my methods using a VB Client with MIcrosoft SOAP ToolKit. My VB code is:
Function autenticar(login As String, senha As String)
Dim ObjWS As New MSSOAPLib30.SoapClient30
Dim retorno As Variant
Call ObjWS.MSSoapInit("http://10.71.200.40:8888/iSimp-Web-Root/br.gov.anp.isimp.controleVersao.ControleVersaoEJB?WSDL")
retorno = ObjWS.autentica(login, senha)
autenticar = retorno
End Function
My webservice publish a method called autentica that receives two parameters (a login and a password) and authenticates to obtain access to my system.
When I try to execute this function, I got this message error:
No deserializer found to deserialize a ":login" using encoding style "http://schemas.xmlsoap.org/soap/encoding/". [java.lang.illegalArgumentException]
Anyone knows what is this error?If you could post what solved your problem that would be useful for others that run into the same issue. Thanks if possible!
Mike. -
Help me in the issue, Asp dot net exe which run from server in IE 8 window 7 32 bit client machine show security file save download message. This app was running fine if we don't apply any window 7 or IE8 patches. same issue when running in
IE9. I already run the caspol, add the server link to trusted site with low security. I wonder why it was working fine without any patches.
I just found that client machine win 7 32 bit has dot net 4.5.1 installed when updated all the patches. after uninstall the dot net 4.5.1. the application worked fine. now I wonder what are the settings need to change to run the application with dot net 4.5.1
installed on machine. as Microsoft always has these things in window updates. thanks in advance.Hi Gparhar,
In case you are posting on .NET setup forum, I suspect it is not the right forum for your issue, we talks about "setup and deployment of .NET Framework.", if you have problem on installing and uninstalling .NET 4.5.1, we can share you some advice.
For your specific case, I recommend you consult ASP.NET forum instead:
http://forums.asp.net/
Regards,
Barry Wang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Problems using a VB Client to access a JAVA Webservice
Hi people!
I'm using JDeveloper (9.0.3) to create a JAVA Webservice on OC4J container. I followed tutorial of Oracle and I got to execute my webservice, including I can invoke my methods by HTTP using HTML forms.
I need to invoke my methods using a VB Client with MIcrosoft SOAP ToolKit. My VB code is:
Function autenticar(login As String, senha As String)
Dim ObjWS As New MSSOAPLib30.SoapClient30
Dim retorno As Variant
Call ObjWS.MSSoapInit("http://10.71.200.40:8888/iSimp-Web-Root/br.gov.anp.isimp.controleVersao.ControleVersaoEJB?WSDL")
retorno = ObjWS.autentica(login, senha)
autenticar = retorno
End FunctionMy webservice publish a method called autentica that receives two parameters (a login and a password) and authenticates to obtain access to my system.
When I try to execute this function, I got this message error:
No deserializer found to deserialize a ":login" using encoding style "http://schemas.xmlsoap.org/soap/encoding/". [java.lang.illegalArgumentException]Anyone knows what is this error?Thanks guys! I'm already solve my problem.
-
Can you call a SAP java Portal Service from the Dot Net code?
Is there a link to a document or snippet of code to call a customized Portal Service in a Dot Net code?
Hi Steve,
yes.,u can call a java portal service in .net.,the only thing what u need to do is to establish that portal service as web service and use that web service in ur code..
Regards,
Vinoth -
How to use Delphi Client in Java WEBSERVICE
I am building a Webservice Application. In client side I use Delphi to import WSDL from a Java Webservice Server ( literal WSDL ). By using WSDL Importer Control I successfully imported the WSDL file but when I called the impoted method the system returned an error :
"Project sendEmail.exe raise exception class ERemotableException with message ' Unable to find a matching Operation for this remote invocation <SOAP-ENV: send xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> </SOAP-ENV:send>.Please check your Operation Name.'
I think when i call send method in Client side the request is sent to Webservice Server but in server side ( build in Java ) that method doesn't match with the original method ( although the method in client side is imported from Webservice Server )
( When I use Delphi client to invoke methods from Delphi Webservice Server ( with rpc WSDL ) the result is OK and Java client also sucessfully invoke that method from Java Webservice )
Can you show me how i resolve this problem. ThanksHi Robin,
At some point, you can expect that the Web services frameworks will be implementing some of the plumbing related to WS-* for you. For example, you can rely on the framework to deal with WS-sec for you with the current Developer Preview of OC4J. For WS-Adressing specifically, you have to handle this in the application layer today, and there is very little the framework can do for you, other than converting the WS-Addressing SOAP header into some java object model for you. The business logic related to the use of the ws-addressing headers has to be implemented at the application level, with some handler. The same applies today for any JAX-RPC based Web services framework, including Axis. Now, if you are using some 'advance' framework like BPEL PM, they can do a lot of heavy lifting for you, under the cover.
Hope this helps,
Eric -
Oracle Dot Net Connectivity without oracle client
Hi,
I am using dot net 2005 and Oracle 9.2. I need to connect to the oracle database without oracle client being installed. Is this possible?Hi,
I think is not possible. See if these links below help you:
Build a .NET Application on the Oracle Database
http://www.oracle.com/technology/pub/articles/cook_dotnet.html
.NET Developer Center
http://www.oracle.com/technology/tech/dotnet/index.html
Cheers -
Java Webservice Developer Pack client code generation
Hi,
I am working on Weblogic Webservices, i am trying to generate client code using 'xrpcc' tool.
Client code has been generated, and i am able to invoke webservices on the server. But i am not able to receive return value from the server and getting follwing error.
D:\TMP\java\webservices\wsdl\test\checkfree\nawf>java test.checkfree.nawf.NAWFCl
ient
java.rmi.RemoteException: Runtime exception; nested exception is:
java.lang.NullPointerException
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:234
at test.checkfree.nawf.GateWayPort_Stub.receiveAccountInfo(GateWayPort_S
tub.java:60)
at test.checkfree.nawf.NAWFClient.main(NAWFClient.java:10)
Caused by: java.lang.NullPointerException
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:354)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:95)
... 2 more
Please, can any one tell immdly?
Thanks
Shivacould u post more info !!! like your wsdl ?
Maybe you are looking for
-
Something was hidden in a download and now these double green underlined hyperlinks show up everywhere, and pop ups too whenever I click on ANYTHING. I can't figure out how to find it and get rid of it.
-
Is there any limitations in regards of CAL with Microsoft SQL Server 2012 developer edition?
-
Installation of Enterprise Manager Grid Control 11g Video
Posted a video on Wednesday of the install of Grid Control 11g here: Video See masterschema for more details and further postings... Will put together a series from bare VM to GC 11g tonight. Let me know what you think... Would be nice if you voted i
-
Hi, I am trying to create project through sales order(VA01) for a specific material(whose strategy group is ZB -auto project creation in mm01-> MRP 3).At the last a popup window(related to Network: Header Data) should open after doing all the configu
-
I was just given a G4 from work currently running 10.3.9 and I've got a Tiger disc but when I click "restart" it won't begin installing 10.4 -- any idea why?