Problems to build a Java Client to consume a C# WebService
Hello Fellows,
I'm having a big trouble with a WebService written in C#. I made one client in C# and it works fine, I just have to instantiate the objetct CookieContainer and call the Logon method, after this, I can call the other methods with no problems.
But, whit a Java client, I don't have the object cookieContainer. So I can logon sucessufuly, but I can't call any other methods, because I get a error message that I have to logon first, I realize that the error is because I don't have the cookieContainer, so I can't maintain the session with the WebService.
There is some object similar to cookieContainer in Java?
Re: Problems to build a Java Client to consume a C# WebService - to resolve this
Set this code prior to call thing the service:
// Preserve session cookie
((BindingProvider) port).getRequestContext().put(BindingProvider.SESS ION_MAINTAIN_PROPERTY, Boolean.TRUE);
Re: Problems to build a Java Client to consume a C# WebService
lorien, welcome to the forums. Please take note of the date of the original post - this is over four years old! What many call a zombie thread which typically - as is the case here - get locked after resurrection.