RE: [AXIS2] Using OperationContext in a web services implementation class

2007-01-29 Thread Kent Schmidt
If your service implementation class specified in your *.aar file has a
method setOperationContext, that method will be called automatically
with the Operation Context. I simply do

public void
setOperationContext(org.apache.axis2.context.OperationContext
pOperationContext)

{

org.apache.axis2.context.OperationContext  myOperationContext =
pOperationContext;

}

 

 



From: Vasil Benov [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 29, 2007 1:34 AM
To: axis-user@ws.apache.org
Subject: [AXIS2] Using OperationContext in a web services implementation
class

 

Hi all,

Is it possible to access the OperationContext in a services
implementation class?

Thanks in advance

Regards, Vasil

-- 
Vasil Benov, 
Mobile: +359(0)889/202682 
@-mail: benovv at gmail dot com 
ICQ: 140269988

GPG Fingerprint: 2CDC 5DA0 4C0A 7C06 5259  DE12 ACF3 177C 8906 0908
Public Key URL:
*) http://random.sks.keyserver.penguin.de/ 



How to Configure SOAP Response to Web Service Call?

2006-11-22 Thread Kent Schmidt
How do I define the format of the SOAP response to the incoming web
service call? I determined how to use WSDL and services.xml to correctly
define the format of the incoming message, but the outgoing response has
several elements I didn't ask for. My Axis2/AXIOM web service looks like
this

 

public static synchronized OMElement response( final OMElement
pRequest )

{

// do some processing on pRequest

 

OMElement soapResponse = null ;

MyKindOfObject myResponseObject = new MyKindOfObject() ;

jaxbContext = ... ;

SAXOMBuilder builder = new SAXOMBuilder();

Marshaller marshaller = jaxbContext.createMarshaller();

marshaller.marshal( myResponseObject, builder );

 

soapResponse = builder.getRootElement();

 

return soapResponse;

}

 

The SOAP response I get back is:

http://schemas.xmlsoap.org/soap/envelope/";>

  

  

 

http://services.paxonix.com/integration

Server">

  

 

http://servi

ces.paxonix.com/integrationServer">



  001





 

  



 

  



 

 

The basic format of the SOAP response is correct, but there are
extraneous elements  and ; where are
they coming from and how do I remove them?

 

 

Thanks!

 

Kent Schmidt

Paxonix, Inc.