web-services

Consume webservice from a .NET DLL - app.config problem

Hi, I'm building a DLL, let's call it mydll.dll, and in it I sometimes need to call methods from webservice, myservice. mydll.dll is built using C# and .NET 3.5. To consume myservice from mydll I've Added A Service in Visual Studio 2008, which is more or less the same as using svcutil.exe. Doing so creates a class I can create, and add...

Does JAXWS client make difference between an empty collection and a null collection value as returned value ?

Since JAX-WS rely on JAXB, and since I observed the code that unpack the XML bean in JAX-B Reference Implementation, I guess the difference is not made and that a JAXWS client always return an empty collection, even the webservice result was a null element: public T startPacking(BeanT bean, Accessor<BeanT, T> acc) throws AccessorExcepti...

Is that right if I treat web service in this way?

The web service is the main logic of a program. The web service is the back-end, and other programs / UI is the front-end. The communication between back-end and front-end is communicated via XML. ...

How to generate the proxy in .net application by consuming java web services?

I am developing smart device application. In that I am consuming the java web services in .net window application ( C# ). The java web services resides on the another machine. I am able to add the web reference in .net application. It is showing the list of web methods. But I am not getting the proxy class in my .net application. I am no...

Integrating applications with projects in Visual Studio 2008?

We need to integrate our application with a client's applications, and this integration will happen through WebServices. We will have to instantiate different classes depending on which release the client is on. The thing is, I don't know how other companies do that, we were thinking about some dynamic assembly loading for code readabi...

Question about Request and Session with CXF, JAX-RS webservice

I have a webservice set up using CXF, JAX-RS and Spring. I have the following method: @GET @Path("/getPayload") @Produces("application/XML") public Response makePayload(){ Payload payload = new Payload(); payload.setUsersOnline(new Long(200)); return Response.ok().entity(payload).build(); } How can I get access to the Htt...

The directory App_WebReferences\net\webservicex doesn't exist !

Hi, I'm trying to run a webservice using Visual Studio, but it doesn't load. After verification, it seems that Visual Studio created only these 2 directories : App_Code & App_Data but no trace of : App_WebReferences. Is there any problem with my installation of Visual Studio or is it because something else ? Thank you ! ...

Public property missing from WSDL served by IIS 6

This is very odd, and I'm just wondering if anyone can explain this to me. I have a web service run by traditional old asmx style web services. We had a public property that was used in a internal method that was not displayed to consumers like this: public class User { public string EmployeeID; protected override void DoSomethin...

Converting JBOSS annotations to xml

Good Morning, I was just hoping that someone could point me to a reference that defines about what JBOSS annotations are equivalent to what xml tags. I am particularly interested in these tags: @WebContext in org.jboss.ws.annotation.WebContext and @SecurityDomain in org.jboss.annotation.security.SecurityDomain ...

Invoke webservice using jaxws when the wsdl has more than one service

I'm trying to get hold of the FindService on this wsdl using jaxws. I generated the classes just fine using wsimport. But when i do: FindService findService = new FindService(); i get the exception: Exception in thread "main" javax.xml.ws.WebServiceException: {http://s.mappoint.net/mappoint-30/}FindService is not a valid service. Va...

Add assembly reference to Web Service

How do I configure a web service put in a IIS folder to reference a DLL that is not in the GAC? ...

SharePoint GetPermissionCollection Web Service missing role name information

Hey everyone, I am using the following SharePoint WS calls GetPermissionCollection GetRolesAndPermissionsForCurrentUser And in all of them, I am missing the rolenames. Am I missing something here? Thanks ...

What is the best Java based ESB Solution available?

I know there are similar questions on this topic, but none of them answers my particular questions correctly. We are in the phase of choosing a new ESB provider for our enterprise, our main purpose of choosing a ESB will be for using it as B2B with partners Messaging Orchestration Transformation Messaging and scheduling And other ge...

Integrating two systems to talk to each other - how can web services decouple the integration?

Hi, I am trying to integrate TFS 2010 with DotSvn. I need to fool Svn into thinking I have checked into it when I make a checkin into TFS. So I need to make a windows service which executes the main method every 5 minutes, get all the checkins commited into TFS, and then make checkins into DotSvn. The typical C# approach would be to wr...

Add Web Reference prompts for credentials with "Discovery Credential" dialog but won't accept valid credentials

I'm attempting to add a web reference to my ASP.Net 3.0 project. This is a reference to the SQL Server Reporting Services web service. I have verified the service is up and running, but when I try to add the web reference in my project, I am prompted for my credentials, which I enter, and then prompted again and again and again. I have t...

How does Google Maps secure their API Key? How to make something similar?

Currently Google requires you to create an API Key that is specific to the domain of where the map will be served from. How does Google enforce this? I want to do the same thing. I expose an API for my service but want to allow clients to embed calls to the API via javascript and not just from the server. I could secure it with just a r...

How to Access web service method Asynchronously ?

I am consuming a web service. I wanna call its method asynchronously. I called method asynchronouly but results are not returned. I call the method like: search.BeginGetData("DEMO", 1, 1, 0, 200000, 1, New AsyncCallback(AddressOf Responder), search) My method is: Private Sub Responder(ByVal Result As IAsyncResult) Dim s As Prop...

How to get principal name from HTTPRequest in CXF JAX-RS webservice method called from android app.

How can I get the principal name, session and ideally check if the principal is authenticated with the Spring Security context inside a CXF JAX-RS webservice method receiving a call from an Android client? This is the code I am currently working with. I have commented where and what I am trying to get. Android code to call webservice: ...

Accessing a SOAP WebService

I have not found any convinient way to create something like a jaxws wrapperclass for an existing Soap Webservice - like in full Java. Jaxws is unfortunately not avaliable in the sdk. Is there any was to do this without using any external libs? Are there any external libs at all yet? ...

WebService Member Variables and Thread Safety

I fear this is obvious, but would someone mind confirming that the private fields of WebServices are thread safe? Specifically, 1) In the code below, each thread will get a new instance of the ReportService class protected void Page_Load(object sender, EventArgs e) { // Client side scripting ScriptManager scriptManager = Scrip...