Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Policy problems with a WSDL file I'm trying to use... (I'm receiving an error about a WSDL file I'm using in a Dynamic Web Project with issues surrounding "wsp:Policy"...)
Policy problems with a WSDL file I'm trying to use... [message #701707] Mon, 25 July 2011 09:24 Go to previous message
caseyburk is currently offline caseyburk
Messages: 5
Registered: July 2011
Junior Member
Here's what I have in my development environment:
- Ant 1.6
- Axis2 1.5.2
- Eclipse Indigo
- Tomcat 6.0
- Everything is installed in C:\Program Files\Apache Software Foundation\* and I'm using localhost:8888 for testing and development.
- The WSDL I'm trying to consume uses the PESC specification (for whatever it's worth).

(If you need anymore details involving the environment I have, please let me know.)


Here's the issue I'm having at the moment:
I'm trying to consume a WSDL file using a TOP-DOWN approach (found on a page I can't link to due to being new to the forum), but when I do this, I get the following "WSDL Problem" error in the "Markers" tab:

Quote:
cvc-complex-type.5.2: In element 'wsp:Policy', attribute 'Id' is a Wild ID. But there is already an attribute 'Id' derived from ID among the {attribute uses}.


In my inexperienced Eclipse mind, it seems there's some sort of issue with the use of an id somewhere in the WSDL file or an alignment of an XSD schema element, but if that's the case, I'm a bit unsure about how to go about fixing this. I've noticed that the complete removal of the policy section in question seemingly solves the error altogether, but with the minor exception of removing pertinent security code (ha). So obviously, if there's a way to preserve the meat-and-potatoes, so-to-speak, I would like to.

The code in question is as follows:
<wsp:Policy wsu:Id="UsernameTokenSecurityPolicyPasswordOptional"
      xmlns:wsu="<LOCATION>/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <wsp:ExactlyOne>
          <wsp:All>
            <wsse:SecurityToken wsp:Usage="wsp:Required"
            xmlns:wsse="<LOCATION>/oasis-200401-wss-wssecurity-secext-1.0.xsd">
              <wsse:TokenType>wsse:UserNameToken</wsse:TokenType>
              <Claims>
                <SubjectName MatchType="wsse:Exact" />
                <UsePassword wsp:Usage="wsp:Optional" />
              </Claims>
            </wsse:SecurityToken>
          </wsp:All>
        </wsp:ExactlyOne>
      </wsp:Policy>


So what gives? Any information to help me out with all this is greatly appreciated and if you need any further information about anything, again, let me know. I'm new to consuming WSDL files--very new to it all--so I may have inadvertently left out some sort of important detail you might need. If so, I do apologize.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Default XPath View
Next Topic:XPath Namespace Prefixes Problem
Goto Forum:
  


Current Time: Fri May 24 16:52:44 EDT 2013

Powered by FUDForum. Page generated in 0.01764 seconds