Jump to content

RESTful Web Service

- - - - -

  • Please log in to reply
No replies to this topic

#1
aakinn

aakinn

    Newbie

  • Members
  • PipPip
  • 24 posts
Hi guys,

I have a WS which I have created in .NET which just searches the database based on parameters determined by the user.

I have started to implement the RESTful WS in java by adding the WSDL of the .NET service to my new REST WS in java. Here is my code thus far

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jsr311;

import javax.jws.WebService;

/**
 *
 */
@WebService(serviceName = "SearchService", portName = "SearchServiceSoap", 
                    endpointInterface = "pdccw1.SearchServiceSoap", targetNamespace = "http://pdcCW1/", 
                    wsdlLocation = "WEB-INF/wsdl/NewWebServiceFromWSDL/SearchService.asmx.xml.wsdl")
                    
public class NewWebServiceFromWSDL {


    public pdccw1.Result searchWithStringParamters(java.lang.String name, java.lang.String desc, java.lang.String categ, java.lang.String startDate) {
        //TODO implement this method

        
    }

As you can see my method is bare as I do not know what to do in order to delgagte searchers to the other Web service.

Could anyone help me out

Thanks

Edited by aakinn, 13 April 2010 - 06:23 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users