Hi Amila, When i used your services.xml it generated following wsdl for the policy. <wsp:Policy wsu:Id="CustomToken"> <wsp:ExactlyOne> <wsp:All> <sp:SignedSupportingTokens> <wsp:Policy/> </sp:SignedSupportingTokens> </wsp:All> </wsp:ExactlyOne> </wsp:Policy>
Following is not in the wsdl. <sp:CustomToken sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient"> </sp:CustomToken> This happens to mine's also when i use standard rampart jars. So it should be a problem with my implementation of the custom token or deployment of custom rampart jars.Can u tell me what are the changes you did in standard distribution of axis in tomcat? shyameniw wrote: > > Hi Amila, > I'm using rampart trunk version. I have used your services.xml and > generated the wsdl without an error. So what could be the problem here? > > > Amila Jayasekara wrote: >> >> Hi Shyameniw >> >> I used attached services xml with a custom token and i was able to >> generate WSDL without an error. I used the rampart trunk version. What >> is the rampart version you are using ? >> >> Thanks >> AmilaJ >> >> On Mon, Mar 28, 2011 at 10:25 AM, shyameniw <shyame...@gmail.com> wrote: >>> >>> I have created a new Security Policy token for Rampart say <CustomToken> >>> of >>> type SignedSupportingToken. It successfully generates a request with >>> custom >>> tag in the policy.xml >>> >>> <sp:SignedSupportingTokens >>> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> >>> <wsp:Policy> >>> <sp:CustomToken >>> sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient" >>> /> >>> </wsp:Policy> >>> </sp:SignedSupportingTokens> >>> >>> Now i want to deploy a service which requests for Custom tokens from >>> clients. For that i added the custom jars to the axis/lib in >>> tomcat/webapps >>> and above part to the services.xml of the service and deployed it. >>> >>> But it does not generates the wsdl for the service and displays a >>> message >>> "Internal Error" . When i check the tomcat stack trace following >>> exception >>> was found. >>> >>> [INFO] getData request failed for dialect, >>> http://schemas.xmlsoap.org/wsdl/ >>> org.apache.axis2.dataretrieval.DataRetrievalException: >>> javax.xml.stream.XMLStrea >>> mException: No open start element, when trying to write end element >>> at >>> org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(WSDLD >>> ataLocator.java:135) >>> at >>> org.apache.axis2.dataretrieval.WSDLDataLocator.getData(WSDLDataLocato >>> r.java:73) >>> etc... >>> >>> What can be the solution for this. >>> Any suggestion is most welcome. >>> >>> Thanks and regards, >>> shyameniw >>> >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/Generating-WSDL-for-custom-rampart-policy-token-tp31260403p31260403.html >>> Sent from the Axis - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org >>> For additional commands, e-mail: java-user-h...@axis.apache.org >>> >>> >> >> <service> >> <!-- Engage rampart module --> >> <module ref="rampart"/> >> >> <!-- What is the class which service is implemented --> >> <parameter name="ServiceClass" >> locked="false">org.wso2.service.AddService</parameter> >> >> <!-- Service operations --> >> <operation name="add"> >> <messageReceiver >> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> >> </operation> >> >> <!-- Actual service policy --> >> <wsp:Policy wsu:Id="CustomToken" >> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" >> xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" >> xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"> >> <wsp:ExactlyOne> >> <wsp:All> >> <sp:SignedSupportingTokens> >> <wsp:Policy> >> <sp:CustomToken >> >> sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient"> >> <!--wsp:Policy> >> <sp:WssUsernameToken10/> >> </wsp:Policy--> >> </sp:CustomToken> >> </wsp:Policy> >> </sp:SignedSupportingTokens> >> >> </wsp:All> >> </wsp:ExactlyOne> >> >> </wsp:Policy> >> >> </service> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org >> For additional commands, e-mail: java-user-h...@axis.apache.org >> > > -- View this message in context: http://old.nabble.com/Generating-WSDL-for-custom-rampart-policy-token-tp31260403p31264337.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org