Oracle WebLogic Server JAX-WS Error Codes - java

We are trying to consume a Java Web Service hosted on Oracle WebLogic Server (implemented following JAX-WS specifications) from a C# WCF 4.0 Client.
The error codes thrown on Server Side Trace is
Error codes: 3001 3201 4008 4208 6408 Error code:3001
We are unable to figure out what these means ? It seems these are not documented. (We might be wrong or looking at a wrong place).

Related

Talend : SOAP fault error while calling a secure webservice in Talend

We are using Talend (Data Integration Platform)in our project.
We are facing an issue calling a secured SOAP webservice through a code routine in Talend.
Here is the error :
Client received SOAP Fault from server: The server was unable to process the request due to an internal error
We tried 2 approaches
Writing the SOAP web service client code directly in the code routine of Talend
Bundle the SOAP client code as an external jar in Talend
Both approaches are failing with above SOAP Fault error.
We have set up KeyStore and TrustStore(JKS) for authentication.
If we run the bundled jar standalone on the Linux machine that hosts Talend, it works fine.
But same jar when packaged inside Talend does not work
If you have any suggestions, Please let us know.

WebService Soap call with client authentication using LoginModule with Certificate in Payara Server 5.2021.10

I have a WebService and I use client authentication validating certificates. I created a .jar, which serves to authenticate my service, added the property “jaas-context” and configured my login.conf. My authentication works, but every time a method of my service is invoked, a warning is thrown in the Payara console. Used the same service on Glassfish and no warnings were generated on the console.
Warning
Problem:
The service works fine, the problem is that this warning will clog the client’s server logs, preventing important information from being easily viewed.
Questions:
What does this log mean?
How can I supress it?
How can I change the form of authentication so that the warning log no longer appears?
Settings:
- Server: Payara Server 2021.10
- Java: OpenJdk Zulu 17.0 LTS

SSL exception when calling web service from server

I'm consuming a web service in a java class standalone and it works fine.
I deployed that class as a part of a web-app in tomcat apache and it works fine.
Then, I deployed it in a glassfish server and I get this error:
WSS1601: Transport binding configured in policy but incoming message was not SSL enabled
I have several weeks stuck here. Seems like some glassfish setting doesn't accepts that my web-app uses a web service that works through HTTP (this is, and has to be the case).
The webservice client was made with the web service client wizard tool of netbeans (it uses wsimport-JAX-WS). More details on the error trace from the server:
com.sun.xml.wss.impl.XWSSecurityRuntimeException: WSS1601: Transport binding configured in policy but incoming message was not SSL enabled
at com.sun.xml.wss.impl.policy.verifier.MessagePolicyVerifier.verifyPolicy(MessagePolicyVerifier.java:125)
Has anybody else faced this issue?
Any help or ideas appreciated.
EDIT: I tried generating the stubs using the axis2 tool and it works great, so i'm sensing some kind of error in jax-ws when used in glassfish.
I guess you are trying to access the service enables with SSL. Try invoking the service with https also you have to install the valid SSL certificate in the client JDK.
The following link explain how to obtain and install a signed certificate :
https://docs.oracle.com/cd/E19798-01/821-1794/aeogl/index.html
Good luck :)

Commons HttpClient - PutMethod Socket error -- Tomcat 7

Using apache commons httpClient PutMethod to upload a doc to sharepoint 2010 as it was a large it is taking time and after sometime i am throwing by an exception.
Socket Error: Connection Reset by peer : socket write error
as peer means share-point is closing socket or socket just failing to write where is the error, can fix for this issue from java side.
Update:
After troubleshooting the class its working has standalone java class, but it is failing when it is running in Tomcat server. I think some configuration of tomcat server will fix this issue.
My understanding the tomcat server is a web server deals with http protocol and my java class is implementation of apache HttpClient 3.1 so this java class is works as individual class and failing in tomcat server means tomcat is overriding my httpclient params which is causing this issue
You will find below link use full in your case.I resolved same issue by reading below details.
http://jce.iaik.tugraz.at/sic/Products/Communication-Messaging-Security/iSaSiLk/documentation/Secure-Renegotiation

Issue with Connecting to WCF Service using Metro - HTTP Works, HTTPS does not

I am connecting to a WCF web service with a Java client I am constructing. Someone else has already successfully built WCF clients to connect to this service. The WSDL available via HTTP provides Message Level Security. The WSDL available via HTTPS uses both TLS and Message Level Security. I understand that using TLS on top of Message Level Security is basically dual-encrypting, but that is a key requirement.
Since I can connect to the HTTP service correctly, I believe I have all the trust store and key store issues resolved.
I am connecting to the service using Metro 2.1.1. I have built the client in both Eclipse and Netbeans. I fetch the WSDL from the HTTP site, and using wsimport (with the -extensions flag) I build and execute the clients successfully.
When I fetch the WSDL using the HTTPS site I can again build both clients successfully. But when I execute them - I get the following error:
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: An error occurred when verifying security for the message.
at com.sun.xml.ws.fault.SOAP12Fault.getProtocolException(SOAP12Fault.java:225)
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:122)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:140)
at $Proxy43.request(Unknown Source)
The only difference between the two WSDLs (the one fetched via HTTP and the other via HTTPS) is the reference in the WSDL to HTTPS:// vs. HTTP://.
I do not have easy access to the WCF service logs - normally there is a 3-6 hour delay between when I request a set of logs and when I can view them.
My question is has anyone encountered a similar circumstance - and is there something I am blatantly missing here? Is there something in a NetMon or Wireshark trace I can look for to see that the issue is? I have been struggling with this for days - any help would be most appreciated.
If you have access to the service configuration try disabling security context on the endpoint you're using:
<message establishSecurityContext="False" clientCredentialType="UserName"/>
You can read more about security context token (SCT):
Security Context Token
Message security knobs
Java client for WCF service with wsHttpBinding over SSL

Categories