Forum Discussion

Denni's avatar
Denni
Occasional Contributor
16 years ago

does not contain operation meta data??

hello
Ok I've got a problem by programming a webservice.
I installed SoapUI and JBoss and than deployed my project.
I was starting Jboss and SoapUI. Then I made a new Project.
Down ther is my Code for my Webservice.
The problem is, that when I start SoapUI and tryed to test the
webservice I allway get an error. Mabye you can help me.
I want that the Webservice is able to search dokument after a word
and give out these dokuments in a list.
But I don't know how to send parameters.
I hope you know what I mean.

My Webservice


package web.service;

/**
* WebServiceSearch
*
* @author ....
*/


import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.naming.InitialContext;

import ejb.search.*;


@WebService(name = "SearchService", serviceName = "SearchService", targetNamespace = "http://www.test.de")
public class WebServiceSearch {

@EJB
SearchLocal searchBean;

SearchLocal getSearchBean() {

if (searchBean == null) {

try {
searchBean = (SearchLocal) new InitialContext()
.lookup("java:comp/env/ejb/SearchEJB");
} catch (Exception a) {
throw new RuntimeException(a);
}
}
return searchBean;
}


//@WebMethod
//public java.util.ArrayList<String> getItems(java.lang.String searchTerm) {
  // new java.util.ArrayList<String>();



@WebMethod
public void searchInDocumentFieldsForSimpleSearch(final String and_search, final Long userId)
{
return;
}


@WebMethod
public void createIndex()
{
    }
}




this is the XML Request in SoapUI



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.pumacy.de/kmmaster/2.0">
  <soapenv:Header/>
  <soapenv:Body>
      <ns:greet>
        <!--Optional-->
        <s>?</s>
      </ns:greet>
  </soapenv:Body>
</soapenv:Envelope>



and this is the response



<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  <env:Header/>
  <env:Body>
      <env:Fault>
        <faultcode>env:Client</faultcode>
        <faultstring>Endpoint {http://www.pumacy.de/kmmaster/2.0}SearchServicePort does not contain operation meta data for: {http://www.pumacy.de/kmmaster/2.0}greet</faultstring>
      </env:Fault>
  </env:Body>
</env:Envelope>