If i want to add the axis2 libraries and axiom libraries to my pom.xml i have
to add the following lines or others?
<dependency>
<groupId>axiom</groupId>
<artifactId>axiom-api</artifactId>
<version>1</version>
<scope>system</scope>
<systemPath>/home/canal/Desktop/axis2-1.2/lib/axiom-api-1.2.4.jar</systemPath>
</dependency>
I always get a compiler error like this:
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to
/home/canal/Desktop/muse_code/muse-2.2.0-src/muse-wsa-soap/target/classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
/home/canal/Desktop/muse_code/muse-2.2.0-src/muse-wsa-soap/src/org/apache/muse/ws/addressing/soap/SimpleSoapClient.java:[42,27]
package org.apache.axiom.om does not exist
alfredo.s.g_uam_spain wrote:
>
>
> 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-tp9736934p14434064.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]