web-services

CXF dynamic client API - getUnwrapperOperation, getWrappedOperation

QName opName = new QName("http://mycompany.com/soap/service", "Login"); BindingOperationInfo boi = binding.getOperation(lastOperation); boi = boi.getUnwrappedOperation(); boi = boi.getWrappedOperation(); Can anyone explain to me the difference between getUnwrappedOperation() vs. getWrappedOperation()? What is being wrapped? ...

WCF - client proxy config does NOT match service web.config

I have a simple WCF Service that needs to handle large datastreams, so I have the a lot of the config values bumped up above the defaults. I've recently been moving all of my code into a new, restructured solution, and I just moved over the service. However, when I try to generate a client proxy (using either WCFTestClient.exe or "Add ...

Best practices for handling a web service failure

In an Ajax web app, what do you do when a web service call from the browser to your server fails? Automatically retry, hoping it was an intermittent network failure or server error. (But when you have a real server issue, you may face further problems due to a multiplication of traffic from retries.) Fail, and show a message to the us...

How do web services and databases relate to each other?

The idea that web services are small bits of functionality or data that are bundled together and encapsulated as small, stand-alone entities is pretty clear, and makes good sense. But how do services relate to databases that they use or provide an interface for? For example, when moving from a monolithic, 2-tier architecture with a mass...

How to have the same type Message Structures from Live / Test Web Services

I have two separate web services, the first configured to extract data from a live database, the second from a test database. When consuming these web services from an application the object returned is a MyMessageData class which is defined in the web service. In the application I would like to instantiate a empty the MyMessageData (f...

How do I fix a "Request format is unrecognized for URL..." error in a web service running in IIS?

I am get the following error while running web service in IIS: Server Error in '/Inbox Sevice' Application. Request format is unrecognized for URL unexpectedly ending in '/GetMailsInfo'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more i...

Java naming clash between method variable and package names

I have some classes generated from WSDL files by the Axis Framework. In one of these classes, there is a generated method public com.initechsystems.www.initech7.initechbo.Organization createOrganization(com.initechsystems.www.initech7.initechbo.Organization org) throws java.rmi.RemoteException { //(... snip ...) _call.setProperty(org....

How does one go about breaking a monolithic application into web-services?

Not having dealt much with creating web-services, either from scratch, or by breaking apart an existing application, where does one start? Should a web-service encapsulate an entity, much like a class does, or should the service have more/less to it? I realize that much of this is based on a case by case analysis of what the needs are,...

How can I embed web service settings in a DLL?

Hi, I am writing a DLL in VB.NET which will be referenced by an ASP.NET website. The DLL project has a reference to a web service in it. When I added the web service to the project, a chunk of configuration information was added to the 'app.config' file. In order to get this to work in the host website, I had to copy the information ...

How to impersonate a user when calling a .NET web service from a SharePoint webpart?

What is the best practice for impersonating the current SharePoint user when accessing a web service that uses NTLM authentication? The webpart has the user name but not password, and apparently, passing the network credential from the webpart does not work. The remote web service uses NTLM to authorize the user. ...

Request format is unrecognized for URL unexpectedly ending in

This is not a question - posting it here for reference: When consuming a WebService, I got the following error: Request format is unrecognized for URL unexpectedly ending in /myMethodName ...

What's the difference between the W3 and xmlsoap.org schemas?

When creating a wsdl file in eclipse it sets the name spaces to: xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Why exactly is it using schemas.xmlsoap.org and not the relevant w3 schemas? ...

Java WebServiceException: Undefined port type with JBoss

I am new to Web Services with JBoss. A client is connecting to an EJB3 based Web Service With JBoss AS 5 and JDK 6 using JAX-WS. I am stuck with the following exception: Exception in thread "main" javax.xml.ws.WebServiceException: Undefined port type: {http://webservice.samples/}HelloRemote at com.sun.xml.internal.ws.client.WSServiceDe...

Web services that take and return XML documents - why?

Are there benefits of writing a web service interface whose methods all take and return XML documents, rather than the more usual parameter lists of native types and classes? We have some existing web services that are designed like this. The XML documents that are passed to their methods are typically large (as in they contain maybe 10...

Identifying whether a certificate is der encoded or base 64 encoded

HI, Is there a way by which i can know the encoding type of a certiicate file? ...

Installing Tomcat + Solr problem

Hi, I'm trying to install Tomcat + Solr on my Ubuntu machine. I was using ubuntu repo: http://packages.ubuntu.com/intrepid/web/solr-tomcat5.5 http://packages.ubuntu.com/intrepid/tomcat5.5 When i launch tomcat, solr do not work: sudo service tomcat5.5 start The webpanel do not find solr, and give me this error: HTTP Status 404 - /...

How do I add a <UsernameToken> header programatically to a SOAP message in JAX-WS?

I'm writing a simple proof-of-concept webservice client using the JBoss-WS library. I need to send messages to a remote service that requires a <Security> header with a <UsernameToken> element. I would like to add this header in the most JAX-WS-kosher way, without having to manually add XML elements by hand, without having to read in a ...

Returning Business Object from Web Service

Picture, if you will, the following scenario: BusinessObjects.dll contains a class "BusinessObject" WinClient references BusinessObjects.dll Web Service references BusinessObjects.dll Web Service has a method: public BusinessObject GetBusinessObject() { BusinessObject result = new BusinessObject; result.Name = "MyBusinessObjec...

How can I create a new application pool in a Web Setup Project?

I need to deploy my web service. It needs to run in a separate application pool in IIS with its own credentials. Is it possible to do this by using a Web Setup Project in VS 2008? By default, I seem to only be able to choose an existing application pool. ...

How do I reference a web service in another project using a ScriptManager?

I have a web application project and a web service application project. I'm using ASP.Net AJAX and I want to reference a service called Tickets.asmx from the web service project and call it with JavaScript. (I'm referencing it [or trying to] in a ScriptManager on the page) I've done this before with the web service being part of the asp...