logoon  windows
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Forum Register Log in  RSS Apache Lounge


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored by anyone.

Your donations will help to keep this site alive and well, and continuing the building of the binaries.




Apache HTTPD Server with Axis2/C and Rampart issue MEP issue

 
Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner



View previous topic :: View next topic  
Author Message
Psychoboy



Joined: 29 Sep 2011
Posts: 2

PostPosted: Thu 29 Sep '11 19:16    Post subject: Apache HTTPD Server with Axis2/C and Rampart issue MEP issue Reply with quote

Not sure I am posting this in the right location. I had a web service working and introduced Rampart which is when this issue came about.

Here is the message I am sending:
Code:
<soapenv:Envelope xmlns:itr="http://www.itracs.com/WS/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken wsu:Id="UsernameToken-7" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:Username>a</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">6AkYWCxaCOoiBT7QqLC/R0bIM68=</wsse:Password>
            <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">qKcdLrqAOYsZojFzapXDdg==</wsse:Nonce>
            <wsu:Created>2011-09-29T16:05:59.146Z</wsu:Created>
         </wsse:UsernameToken>
      </wsse:Security>
   </soapenv:Header>
   <soapenv:Body>
      <itr:GetEquipmentRoot/>
   </soapenv:Body>
</soapenv:Envelope>

Message Received:
Code:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Client</faultcode>
         <faultstring>Could not map the MEP URI to an Axis2/C MEP constant value</faultstring>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


services.xml:
Code:
<!-- This file was auto-generated from WSDL -->
<!-- by the Apache Axis2 version: 1.5.4  Built on : Dec 19, 2010 (08:18:42 CET) -->
<service name="DataModelWS">
<parameter name="ServiceClass">TestWS</parameter>
<description>Some Server Service
            </description>
<operation name="GetEquipmentRoot" mep="http://www.w3.org/ns/wsdl/in-out">
<parameter name="wsamapping">http://www.itracs.com/WS/GetEquipmentRoot</parameter>
</operation>

<!-- Security Stuff -->
<module ref="rampart"/>
 
  <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
        <wsp:ExactlyOne>
            <wsp:All>
                <sp:AsymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
                    <wsp:Policy>
                        <sp:InitiatorToken>
                            <wsp:Policy>
                                <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
                                    <wsp:Policy>
                                        <sp:WssX509V3Token10/>
                                    </wsp:Policy>
                                </sp:X509Token>
                            </wsp:Policy>
                        </sp:InitiatorToken>
                        <sp:RecipientToken>
                            <wsp:Policy>
                                <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
                                    <wsp:Policy>
                                        <sp:WssX509V3Token10/>
                                    </wsp:Policy>
                                </sp:X509Token>
                            </wsp:Policy>
                        </sp:RecipientToken>
                        <sp:Layout>
                            <wsp:Policy>
                                <sp:Strict/>
                            </wsp:Policy>
                        </sp:Layout>
                    </wsp:Policy>
                </sp:AsymmetricBinding>
                <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
                <wsp:Policy>
                    <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always"/>
                </wsp:Policy>
                </sp:SignedSupportingTokens>
                <rampc:RampartConfig xmlns:rampc="http://ws.apache.org/rampart/c/policy">
                    <rampc:PasswordType>Digest</rampc:PasswordType>
                    <!--rampc:AuthnModuleName>AXIS2C_HOME/bin/samples/rampart/authn_provider/libauthn.so</rampc:AuthnModuleName-->
                    <rampc:PasswordCallbackClass>AuthenticatorCallBack.dll</rampc:PasswordCallbackClass>
                </rampc:RampartConfig>
            </wsp:All>
        </wsp:ExactlyOne>
    </wsp:Policy>
</service>


Any help would be appreciated
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 4984
Location: Germany, Next to Hamburg

PostPosted: Fri 30 Sep '11 10:54    Post subject: Reply with quote

Anything in the Axis Log about this?

In the mean while try this
Back to top
Psychoboy



Joined: 29 Sep 2011
Posts: 2

PostPosted: Fri 30 Sep '11 18:17    Post subject: Reply with quote

I figured it out actually. SoapUI was sending an additional security portion for the header. Figured that out from running RawCap and looking at the output in WireShark. Thanks for the help!
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner
Page 1 of 1