Hei

an example from  AXIS 2.1.5 examples distro illustrates you need to 
addMessageReceiver e.g.

//an example from org.apache.axis2.deployment.ServiceBuilder
// processing Default Message receivers
OMElement messageReceiver = service_element.getFirstChildWithName(new 
QName(TAG_MESSAGE_RECEIVERS));

if (messageReceiver != null) 
{
  HashMap mrs = 
processMessageReceivers(service.getClassLoader(),messageReceiver);
  Iterator keys = mrs.keySet().iterator();
  while (keys.hasNext()) 
  {
                    String key = (String) keys.next();
                    service.addMessageReceiver(key, (MessageReceiver) 
mrs.get(key));
  }
}

hjelpe?
Martin Gainty 
______________________________________________ 
Note de déni et de confidentialité
 
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




Date: Wed, 5 Aug 2009 15:28:51 +0200
Subject: Creating a service using AxisService
From: hakon.sageh...@bccs.uib.no
To: axis-user@ws.apache.org

Hi all

I'm seting up a test environment and in that first I create my test service 
using AxisService#createService, giving the impl class, axis configuration, 
target ns, map of message recivers, schema ns and classloader, this works fine. 
Burt what I really want is to create a service based on my WSDL using the 
AxisService class. The only method I found that takes in a wsdl in the 
AxisService#createClientSideAxisService, but when I use the created service I 
always get 


Message Receiver not found for AxisOperation: 
{http://www.bccs.uib.no/EchoService.wsdl}SayHi

Even I've configured the message reciver for the operation. Any tips on how to 
solve this. 


cheers, Håkon
-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1

Reply via email to