Thanks you very much for your work and your speed. I ll report you since I ve a little time to test.
-----Original Message----- From: Tomek Sztelak [mailto:[EMAIL PROTECTED] Sent: 12 June 2007 12:19 To: [email protected] Subject: Re: [xfire-user] SoapAction Ok, i published snapshot at http://snapshots.repository.codehaus.org with 1.2-20070612.101111 version. - Fixed AeagisServiceConfiguration java 1.4 compatibility ( also service configuration can be set via <service> tag. - Support for setting WSDLWriter within <service> tag (so you can specify wsdl from filesytem instead of generated one) Code isn't very well tested, so let me know how testing is going. On 6/12/07, MattJax <[EMAIL PROTECTED]> wrote: > > > Ankur Shah wrote: > > the link doesn't work BTW > I think it does! It's not hyperlinked though... > > > Ankur Shah wrote: > > More than likely the action is going to be same as method/operation name. > > If you want to use the operation name dynamically using this method, then > you'll need to do 2 things: > > 1) add a DOMOutHandler > > Client.getInstance(service).addOutHandler(new DOMOutHandler()); > Client.getInstance(service).addOutHandler(new SOAPActionHandler()); > > 2) Change the invoke method to extract the operation name from the SOAP > message: > > public void invoke(MessageContext context) throws Exception { > if(context != null && context.getCurrentMessage() != null) { > Document document = > (Document)context.getCurrentMessage().getProperty(DOMOutHandler.DOM_MESS AGE); > // Extract the 'operation' - this is the name of the first child of the > body element > String soapAction = null; > if(document != null) { > Node soapEnvelope = document.getFirstChild(); > if(soapEnvelope != null) { > Node soapChild = soapEnvelope.getFirstChild(); > while(soapChild != null) { > if("body".equalsIgnoreCase(soapChild.getLocalName())) { > Node op = soapChild.getFirstChild(); > if(op != null && op.getLocalName() != null) { > soapAction = op.getLocalName(); > } > break; > } else { > soapChild = soapChild.getNextSibling(); > } > } > } > } > if(soapAction != null) { > > context.getExchange().getOutMessage().setProperty(SoapConstants.SOAP_ACT ION, > soapAction); > } > } > } > > > -- > View this message in context: http://www.nabble.com/SoapAction-tf3703322.html#a11074912 > Sent from the XFire - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > -- ----- When one of our products stops working, we'll blame another vendor within 24 hours. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email This email was sent to you by Reuters, the global news and information company. To find out more about Reuters visit www.about.reuters.com Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Limited. Reuters Limited is part of the Reuters Group of companies, of which Reuters Group PLC is the ultimate parent company. Reuters Group PLC - Registered office address: The Reuters Building, South Colonnade, Canary Wharf, London E14 5EP, United Kingdom Registered No: 3296375 Registered in England and Wales --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
