java-ws

How to cache a WSDL with Java-WS

I've created an app that interacts with a SOAP service using java WS. I generate classes and manage the WSDL using the built in netbeans functions. Every time I run the application, it has to download the WSDL and parse it again. The WSDL is frozen at each version so I don't think this is necessary. I've tried to reference it as a lo...

Can you view the XML generated by .Net when using a JavaWS service?

Does anyone know how I can view the XML being sent to a Java Web Service from a C# based ASP.NET page? I've created a disco object web ref in .Net from my Java WSDL but when I use the likes of Fiddler to view the XML attached to the HTTP request, instead I see the form parameters being passed. Is there anyway I can view the serialized X...

Delphi 2007 isn't generating the XML I want to send to my Java-WS web service

I have a Java web service to which I've linked from a Delphi 2007 app using the WSDL Importer. Setting it up has been a rocky road but I'm almost there! I now have the situation where my arrays aren't being serialized in a way that my Java web service can consume. I've written the same app in .Net to test it out (it works fine) and the ...

How can I use Java WebService to push data to client

I have some CMS. and have a requirement that these CMS can send article together whenever needed. I think I can use WebService to solve my problem by do following: 1/ CMS-01 invoke WS by sending data(article and received CMS(s)) when it want to send an article 2/Webservice receive data and push to other CMS(s) which CMS-01 have selected....

what is a singleton class? Can it help me running single instance of a class for two related services?

This might sound complex but i will ask anyway: I am running a service A which uses class X. I want to start another service B which uses classes A besides new classes. Service A is already running. I do a hot deployment of Service B. Here is the real question - Will Service B use the same instance of class X or a separate instance....

How to secure Java webservices with login and session handling

I'd like to secure my (Java metro) webservice with a login. Here's how I'm planning to do that: Steps required when calling a webservice method are: call login(user,pwd), receive a session token 1.1 remember the token call servicemethod (token, arg1, arg2...) webservice checks if the token is known, if not throw exception otherwise p...

ASP.NET client to stateful java webservice client (metro)

Hi I have a webservice with the following annotations: @WebService @HttpSessionScope @Stateful @Addressing Now I created a ASP.NET (c#) client for this webservice, but when I call a method the following error is returned: This is a stateful web service and {http://jax-ws.dev.java.net/xml/ns/}objectId header is required. How can I...

.NET client calling HTTPS Java web service

I have a HTTPS Java Web Service, I am trying to access the web service with .NET[.NET 2.0 style client / WCF client]. I am getting back this error from WS. "HTTP Status 401 - This request requires HTTP authentication ()." How do I find out what kind of security this WS has? Besides SSL, I have user name and password to send it to WS, ...