Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Parameter mit übergeben

Empfohlene Antworten

Hi

Also ich habe meinen Webservice fast fertig und wollte diesen jetzt mit SoapUI

Test. Habe das alle reingeladen und den Jboss angemacht, aber es funktioniert nicht so richtig. Bekomme immer eine Fehlermedung die ihr unten bei der Response mal anschauen könnt.

Mein WebService, der es ermöglich soll dokumente nach begriffen zu durchsuchen.


package web.service;


/**

 * WebServiceSearch

 * 

 * @author Denni Nußbaum

 */



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()

		{

	    }

}

Meine SoapUI Request

<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>
der 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>

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.