Ive been digging into the code and i think SimpleSoapClient.send() is the
method that does all the http transport. So if i want muse to post the
messages to AXIS2 instead of directly HTTP i should modify this class.
this is in package org.apache.muse.ws.addressing.soap
public Element[] send(EndpointReference src,
EndpointReference dest,
String wsaAction,
Element[] body,
Element[] extraHeaders)
So i need to remove all the code there and do a AXIS2 "send" call
Following the sample code on rampart it should be something like this:
--CODE--
public Element[] send(EndpointReference src,
EndpointReference dest,
String wsaAction,
Element[] body,
Element[] extraHeaders)
{
if (dest == null)
throw new
NullPointerException(_MESSAGES.get("NullDestinationEPR"));
if (wsaAction == null)
throw new NullPointerException(_MESSAGES.get("NullActionURI"));
if (body == null)
body = _EMPTY_ARRAY;
if (extraHeaders == null)
extraHeaders = _EMPTY_ARRAY;
ConfigurationContext ctx =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(REPOPATH,
REPOPATH + "/conf/axis2.xml");
ServiceClient client = new ServiceClient(ctx, null);
Options options = new Options();
options.setAction(wsaAction);
options.setTo(dest);
options.setFrom(src); // is this ok¿?
client.setOptions(options);
OMElement response = client.sendReceive(body);
System.out.println(response);
}
--CODE--
The problem is i have a "silly and newbie" problem with the maven pom.xml
file because i dont know how to add the axis2 and axiom libraries i need for
this to compile...
Vinh Nguyen (vinguye2) wrote:
>
> The steps I suggested would allow you to send out WSSE properties using
> just Muse and no Rampart. It's probably best that you actually download
> the Muse source code to see how to customize the code further to fit into
> your Rampart design. I don't know much about Rampart, so I don't know how
> it can be integrated with Muse.
>
--
View this message in context:
http://www.nabble.com/axis2-deployment-and-configuration-tp9736934p14419446.html
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]