its in the foreign namespace wsp. Am I missing something? please help.
Main Topics
Browse All TopicsI have Axis2 webservice, using Eclipse...Trying to implement WS security.. getting the following error in WSDL.
cvc-complex-type.2.4.a: Invalid content was found starting with element 'wsp:PolicyReference'. One of '{"http://schemas.xmlsoap.
at line.....
<wsp:PolicyReference URI="#xyz" wsdl:required="true" />
I have following in my wsdl.
<wsdl:definitions xmlns:wsdl="http://schemas
xmlns:soap="http://schemas
xmlns:tns="http://mysite.c
xmlns:xsd="http://www.w3.o
xmlns:sp="http://schemas.x
xmlns:wsp="http://schemas.
xmlns:wsu="http://docs.oas
utility-1.0.xsd"
name="SecureService"
targetNamespace="http://my
<wsp:Policy wsu:Id="xyz">
<sp:AsymmetricBinding>
<wsp:Policy>
<sp:InitiatorToken>
<wsp:Policy>
<sp:X509Token sp:IncludeToken="http://sc
ws/2005/07/securitypolicy/
<wsp:Policy>
<sp:WssX509V3Token10 />
</wsp:Policy>
</sp:X509Token>
</wsp:Policy>
</sp:InitiatorToken>
<sp:RecipientToken>
<wsp:Policy>
<sp:X509Token sp:IncludeToken="http://sc
ws/2005/07/securitypolicy/
<wsp:Policy>
<sp:WssX509V3Token10 />
</wsp:Policy>
</sp:X509Token>
</wsp:Policy>
</sp:RecipientToken>
<sp:AlgorithmSuite>
<wsp:Policy>
<sp:TripleDesRsa15 />
</wsp:Policy>
</sp:AlgorithmSuite>
</wsp:Policy>
</sp:AsymmetricBinding>
<sp:Wss10>
<wsp:Policy>
<sp:MustSupportRefEmbedded
<sp:MustSupportRefIssuerSe
</wsp:Policy>
</sp:Wss10>
<sp:SignedParts>
<sp:Body />
</sp:SignedParts>
</wsp:Policy>
any ideas?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
found the solution, the position of <sp:X509Token sp:IncludeToken="http://sc
Business Accounts
Answer for Membership
by: shivaspkPosted on 2008-03-25 at 19:24:28ID: 21208443
How are u trying to invoke the web service?
your web service is expecting a WS-SecurityPolicy Reference.