Interoperability: WSDL-based Java client with MS SOAP server
Does anybody have the experience with a Java client communicating with Microsoft
SOAP server based on the WSDL protocol? My initial experiece shows a lot of problems.
Any information in this regard is appreciated.
Thanks
I'm experiencing the same sort of problem too.
I downloaded Bea Web Service Broker in order to test some MS Soap-based web services
before developing some Weblogic EJBs which are to use them, since both of them
(WS Broker and Weblogic EJBs) are said to use the same underlying package of Java
classes to access any web service.
Most of the MS web services won't work with this tool. I have problems with remote
methods that have one or more parameters (the remote methods seem not to get them)
and also with some web services that raise FileNotFoundExceptions from URLs (rather
odd to me) on the Broker, despite the fact those URLs are valid.
Any hint or suggestion will be very appreciated.
Similar Messages
-
Connecting a Java Client with a VB Server (problem in recieving messages)
Hi all, i have a VB based Server through which i am trying to connect a VB Server through Sockets
The Connection is Successfull but the problem i am unable to recieve all the messages from VB Server,
but all the messages on the Server Side is coming properly, i want to know do we have a secure connection between Vb and JavaYour answer is here.
-
Probelm client auth from jsse client with open ssl server
I tried to connect jsse client with a openssl server.. with clientAuth
This is what i did ..
Using openssl req comand i created a X509 certificate for server and imported the same to java keystore..
The communication works fine without client authentication.
To enable client auth i create client private/public key pair using keytool and exported the public key to a file client.public. and used it in open ssl server .
This is how i invoke the client ..
java
-Djavax.net.debug=all
-Djavax.net.ssl.trustStore=cacerts
-Djavax.net.ssl.trustStorePassword=changeit
-Djavax.net.private -Djavax.net.ssl.keyStorePassword=password EchoClient
After which i get following error in server
SSL3 alert write:fatal:handshake failure
SSL_accept:error in SSLv3 read client certificate B
SSL_accept:error in SSLv3 read client certificate B
ERROR
17246:error:140890C7:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:peer did not return a certificate:s3_srvr.c:1666:
shutting down SSL
CONNECTION CLOSED
The client debug says it is recieving a certificate request.. what could be the problem.. can anybody help...i also have that problem. I was trying to configure SSL in apache in Win XP machine, but this error occurs. Is there anyone, who can help on it?
-
Unable to connect the crm client with the IPC server
Hi,
I am unable to connect with one CRM client with the IPC server.
my Dispatcher and all the IPC servers are working all.
Plz helpme out.
With thanks and Regards,
Yusuf.Hi Muhammed,
Check in the file dispatcher.properties if the RFC names are correctly maintained.
Regards,
Patricia
PS Your post was in the wrong forum. I moved it to the correct one where the chance of an answer is much higher.
Hope you understand and good luck.
Regards,
Patricia
SDN Moderator -
Advantages and Disadvantages of Using Oracle 7 Client with Oracle 9 Server
Hello,
I was wondering what are the advanatges of using Oracle 7 client with Oracle 9 Server versus using Oracle 9 Client with Oracle 9 server.Some years ago I used 7.3 Client with 9i DB, and I don't remember of particular problems, but I'm speaking of Sql*Plus only. Are there specific problems ?
Of course the best thing is to install one 9i Client (did you already do it ?) : if there are same problems, then that's not compatibility issue.
And what are advantages of using 9 Client with 9 server other than 7 is no longer supported.You're sure you won't have compatibility problems.
If you have access to Metalink have a look at [url http://metalink.oracle.com/metalink/plsql/ml2_documents.showFrameDocument?p_database_id=NOTE&p_id=207303.1]Note 207303.1 -
Managing 10.4 clients with 10.5 Server
Before I jump in....any feedback on managing 10.4 clients with 10.5 server (will post the vice-versa in the 10.4 server forum) from those who are doing it currently?
Thanks,
kI checked out the link you mentioned. It's really dealing w/ managing the client. I'm have weird issues w/ clients logging in. Today I had a grade level try to log in. Ten of the computers would let that grade level in, two would not. Of the Ten computers approx 5 wouldn't let them log in the first time, but once they were restarted they were able to log in. All of the computers are on a wired network as well as a wireless backup. Of the two that would not let them login I had just restored one and set the settings up the same as the others.
I'll be damned, this is the weirdest I have had with Apple client management. -
How to use standalone java client with an enterprise bean in J2EE 1.4
Hi All,
I am have deployed a stateless session bean in Sun's J2EE 1.4 Application Server. i am trying to call the bean using a standalone java client. but the client cannot access the bean.
The error coming is:
Jan 21, 2004 7:48:27 PM com.sun.corba.ee.impl.legacy.connection.SocketFactoryCo
nectionImpl <init>
WARNING: ORBUTIL.connectFailure
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(
RBUtilSystemException.java:1739)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(
RBUtilSystemException.java:1757)
at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.
init>(SocketFactoryConnectionImpl.java:74)
at com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl
createConnection(SocketFactoryContactInfoImpl.java:88)
at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.begi
Request(CorbaClientRequestDispatcherImpl.java:146)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(Corba
lientDelegateImpl.java:121)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaCli
ntDelegateImpl.java:212)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.jav
:69)
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.ja
a:58)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:12
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at StatelessSessionClient.main(StatelessSessionClient.java:17)
Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection re
used: connect
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSoc
etFactory.java:390)
at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.
init>(SocketFactoryConnectionImpl.java:58)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:457)
at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSoc
etFactory.java:381)
... 11 more
javax.naming.CommunicationException: Can't find SerialContextProvider
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.ja
a:66)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:12
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at StatelessSessionClient.main(StatelessSessionClient.java:17)
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed
No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(
RBUtilSystemException.java:1739)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(
RBUtilSystemException.java:1757)
at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.
init>(SocketFactoryConnectionImpl.java:74)
at com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl
createConnection(SocketFactoryContactInfoImpl.java:88)
at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.begi
Request(CorbaClientRequestDispatcherImpl.java:146)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(Corba
lientDelegateImpl.java:121)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaCli
ntDelegateImpl.java:212)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.jav
:69)
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.ja
a:58)
... 3 more
Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection re
used: connect
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSoc
etFactory.java:390)
at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.
init>(SocketFactoryConnectionImpl.java:58)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:457)
at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSoc
etFactory.java:381)
... 11 more
My java client uses the following code to access the bean:
Hashtable props = new Hashtable();
String URL="iiop://localhost:3700";
props.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
props.put("java.naming.provider.url", URL) ;
InitialContext ctx = new InitialContext();
Object ref = ctx.lookup("ejb/StatelessSessionHome");
StatelessSessionHome home = (StatelessSessionHome)PortableRemoteObject.narrow(ref,StatelessSessionHome.class);
StatelessSessionRemote statelessSession = home.create();
plz help me to locate the error.
Regards,
MohitHi Amol,
thanks for your suggestion.
i have deployed the converter application in J2EE1.4 tutorial in Sun AppServer J2EE1.4. the deployment process works smoothly. but accessing the deployed converter bean using standalone client as given in the tutorial gives the following error.
Caught an unexpected exception!
javax.naming.NoInitialContextException: Need to specify class name in environmen
t or system property, or as an applet parameter, or in an application resource f
ile: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
40)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav
a:280)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at ConverterClient.main(ConverterClient.java:14)
I have set the InitialHost and InitialPort as suggested by you in the client code. the client gets successfully compiled but gives error when executed.
The client code is:
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
import java.math.BigDecimal;
public class ConverterClient {
public static void main(String[] args) {
System.setProperty("org.omg.CORBA.ORBInitialHost","localhost");
System.setProperty("org.omg.CORBA.ORBInitialPort","3700");
try {
Context initial = new InitialContext();
Object objref = initial.lookup
("java:comp/env/ejb/SimpleConverter");
ConverterHome home =
(ConverterHome)PortableRemoteObject.narrow(objref,
ConverterHome.class);
Converter currencyConverter = home.create();
BigDecimal param = new BigDecimal ("100.00");
BigDecimal amount =
currencyConverter.dollarToYen(param);
System.out.println(amount);
amount = currencyConverter.yenToEuro(param);
System.out.println(amount);
System.exit(0);
} catch (Exception ex) {
System.err.println("Caught an unexpected exception!");
ex.printStackTrace();
Please suggest so that i can run the standalone client successfully.
Regards,
Mohit Kapoor -
Advice please: how to link java client with oracle AS
Dear Sirs...
how can i link java swing application with oracle application server? do i have to develop web service and then deploy it on the AS? or i should use another methodology? what exactly should i provide or should i use?
thanks for any help
best regardsThere are a number of approaches you can take. A webservice would work well. You may also consider using EJBs and calling them via RMI or a webservice.
Either is a viable option depending on your requirements. -
A good (multilingual) Web Based FTP Client for OS X Server?
Hi,
I currently have an SFTP server running and would like to also add a Web-Based SFTP client to the server (via web services).
Does anyone know of a good Web Client that I could add to this server so that users do not have to have a standalone app (Like CyberDuck or FileZilla?)
THanks,
J... still searching
-
Request sending client to client with in single server
hi
i have created one request, how do i transport this request from one client to another client within the same server
i have created already 200 and 300 clients, now my question is , how to transport this customises request from 200 to 300 client in the same server..
Rgds
Soumyahi
in SCC1, I entered 200 client in source client , i selected request then it showing error that is source client is same as the logon client..how to proceed on..
Rgds
Soumya -
Windows 7 Client with Windows 2000 server
Hi ,
We are having an application developed in Delphi 6 and hosted in Windows 2000 server(sp4) .Recently we have migrated all our clients to windows 7 from XP. Since then we are getting Access Violation error whenever we are using the application.
We are accessing the application through RDP (Remote Desktop ) from Win 7 Clients to Windows 2000 server.
Could any body help me how to resolve this issue as this is stopping the business.
Regds
Vignesh Krishnan BHi,
As Windows 7 uses NTLM2 by default, please try to set it to “Send LM & NTLM – Use NTLMv2 session security if negotiated”
How to:
Open secpol.msc -> local policies -> security options -> Network security: LAN Manager authentication level.
Best Regards.
Jeremy Wu
TechNet Community Support -
How use to simple Java client with Https ?
Experts,
I am having some difficulties to call a https webservice on DataPower.
The following simple client has no problem to call HTTP webservice but HTTPs different story. SoapUI works just fine with Https request.
Can any one make a suggestion ? Appreciate any help !
public final static String DEFAULT_SERVER
= "https://123.123.123.123:443/Wsp";
// = "https://123.123.123.123:2048";
public final static String SOAP_ACTION
= "http://mycompany.com/Inquiry";
public static void main(String[] args) {
String server = DEFAULT_SERVER ;
String input1 = "123";
String input2 = "hello";
try {
URL u = new URL(server);
URLConnection uc = u.openConnection();
HttpURLConnection connection = (HttpURLConnection) uc;
connection.setDoOutput(true);
connection.setDoInput(true);
connection.setRequestMethod("POST");
connection.setRequestProperty("SOAPAction", SOAP_ACTION);
OutputStream out = connection.getOutputStream();
Writer wout = new OutputStreamWriter(out);
wout.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
wout.write("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sam=\"http://aglc.com/sampleDp\">\r\n");
wout.write("<soapenv:Header/>\r\n");
wout.write("<soapenv:Body>\r\n");
wout.write("<sam:AcordRequest>\r\n");
wout.write("<sam:TRANSID>" + input1 + "</sam:TRANSID>\r\n");
wout.write("<sam:TRANSBODY>" + input2 + "</sam:TRANSBODY>\r\n");
wout.write("</sam:AcordRequest>\r\n");
wout.write("</soapenv:Body>\r\n");
wout.write("</soapenv:Envelope>\r\n");
wout.flush();
wout.close();
String hhResponse ="";
InputStreamReader isr = new InputStreamReader(connection.getInputStream());
BufferedReader in = new BufferedReader(isr);
String inputLine;
while ((inputLine = in.readLine()) != null){
//AIGTraceLog.log(componentName,Level.INFO,inputLine);
hhResponse = hhResponse+inputLine+"\n";
System.out.println(hhResponse);
in.close();
catch (IOException e) {
System.err.println(e);
}Thanks for the reply. I think I am close, based on your instruction, I did the following but still got the same error.
C:\Program Files\Java\j2re1.4.2_13>java com.mypack.testdpws.TestDPWS
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
C:\Program Files\Java\j2re1.4.2_13>keytool -import -alias testDPWS -file TestDpClSsl.crt
Enter keystore password:
Enter keystore password: password
Owner: CN=TestDpClSsl
Issuer: CN=TestDpClSsl
Serial number: 2dd2d12e
Valid from: 12/1/10 4:37 PM until: 12/1/11 4:37 PM
Certificate fingerprints:
MD5: 3A:89:FE:76:BC:30:BF:F0:87:31:F5:14:29:07:60:91
SHA1: 40:71:51:4C:84:BD:08:40:A6:7D:60:A8:A8:04:BA:09:B7:E5:C9:A4
Trust this certificate? [no]: y
Certificate was added to keystore
C:\Program Files\Java\j2re1.4.2_13>java com.mypack.testdpws.TestDPWS
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
Any idea ? or do I need to add something in the test program ? -
Mixing 10.4 and 10.5 clients with 10.5 Server
This is the question of a neophite, but in looking through documentation and these boards I do not see a definitive answer to the following:
I am starting the process of installing a 10.5 server in an office environment that to date has consisted of standalone desktop clients. Some of these machines are running 10.5, others are still running 10.4. This is a low-budget operation, so we'd like to keep it that way unless absolutely necessary. I am trying to understand how the issue of preferences, etc. will work once users are logging into a server with centralized home directories. In particular, if a single user sometimes logs in from a 10.4 based client and sometimes logs in from a 10.5 based client, is there a version conflict between preferences saved in ~/Library, or any other files stored there? Is there inherent backwards and forwards compatibility so it is not an issue? Or, are these preferences separated somehow within the home directory tree? Or, does it blow up in the user's face?Silvester wrote:
Yes you want to setup an Open Directory.
Server Admin -> Open Directory currently says the Role is Standalone Directory. Is that OK or should it be an Open Directory Master?
Try these things Open Terminal on the Server and type "sudo changeip -checkhostname" without the quotes
If that all comes back good then DNS should be fine
It was fine.
On the client machine in a local administrator account open terminal and type "host yourserver.dnsname"
the name you type there is the one that got returned from the changeip -checkhostname command
the ip address that it give you back should be the IP address of the server (either a 10.x.x.x or 192.168.x.x) iff all is good jump down 1 step to the Directory Utility step below
Reported an error.
if it is not then
Open system preferences on the client and select network then in the Ethernet or Airport whatever one you use in the DNS Sever section type the servers IP address (10.x.x.x or 192.168.x.x)
Done. Now the "host yourserver.dnsname reports the correct IP address.
Open Directory Utility and delete whatever server is in the list and add a new one using the DNS name ie. yourcomany.private not an ip address
RESTART the machine
Here's where it fails, same as before. I get the error:
There was no response from server.stpeterspress.private. Please check that the address you entered is correct. -
Instant Client with SQLServer2005 Linked Server
I have successfully installed Instant Client 11.2.0.1.0 on my Windows Server2008. I am able to create an ODBC data source selecting the driver "Oracle in instantclient_11_2". I have also been able to link tables from Access to Oracle. I can logon to Oracle through SQLPlus and execute a query against the Oracle database. I am unsure how to set a Linked Server object in SqlServer 2005. When I use "Microsoft OLE DB Provider for ODBC Drivers" and supply the Product - DBName and Data Source - ODBC data source previously created here is the error I receive:
TITLE: Microsoft SQL Server Management Studio
"The linked server has been created but failed a connection test. Do you want to keep the linked server?"
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "DB1".
OLE DB provider "MSDASQL" for linked server "DB1" returned message "Specified driver could not be loaded due to system error 1114 (Oracle in instantclient_11_2).". (Microsoft SQL Server, Error: 7303)
Thanks!Although the 10.1.0.3 instant client for windows doesn't appear to be "officially out", if I try to download
http://download.oracle.com/otn/nt/instantclient/instantclient-basic-win32-10.1.0.3.zip and similar files, the files do exist.
Unfortunately this version still can't connect to my corporate Oracle database:
Oracle8i Enterprise Edition Release 8.1.6.0.0, 64 bit - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production
Oh well, back to a full client install of Oracle 9i.
Perhaps the official release when its documented on the Instant Client download page will work.
Jamie -
Oracle 8i client with oracle 9i server
hi friends..
i have oracle 8i server and clients..my oracle 8i server crashed.
so i am planning to install oracle 9i server.
will i be able to connect oracle 8i clients on to oracle 9i server? is there any procedure for getting this connection.?
Please helpLook up the documentation for questions like this, under 'backwards compatibility'
You can't configure a client to work with a higher release, it works or it doesn't work.
This one will work.
Sybrand Bakker
Senior Oracle DBA
Experts: those who wave their head at newbies not reading anything and yet continue to use desupported trash.
Maybe you are looking for
-
Well....i need to write a progr tat transfers filename from client to server asnd then the server coies that file(in a directory)....but im not able to do it...im unable to write to files...i dont know y?.... import java.io.*; import java.net.*; publ
-
Automatic File Sync aka "use it and forget it"
Is it possible to invoke File Sync in a non-interactive way. I want file syncing to be automatic and done "under the covers" for one of our user groups. Failing that, is there any APIs that could be used to build some custom code? John Oakley
-
Displaying legends on the bar in chart
Hi, In webi report, can we display the value of the legend directly on the bar instead of displaying it on the x- axis or y-axis Requirement is highlighted in the attached image.Is it possible in webi reports? Any work around? Thanks, Divya
-
"Checking Midi Drivers" message in Logic 9.1
Hi!!! I have a new MacBook Pro 2.66 GHz intel Core 2 Duo. My MAC OS X is a Snow Leopard 10.6 and I use a Logic Pro 9.1 Today I tried to connect my TC Electronics Studio Konnekt 48 Sound Cart but I have a big problem with this. When the Logic trying t
-
Impossible to modificate the reception number in iMessage
Hi everyone, I have a problem, I bought an Iphone 4 S and I can't activate iMessage. When I check the configuration in Settings/Messages/Receive at, the phone number is from my old sim card which I never use and never been in this phone. And it's imp