Hi

any hints on how to solve this, below is the wsdl that I'm trying to
generate the xmlbeans binding, tried with both axis2 1.3 and 1.4, here is.

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://no.plab/hakont/sts";
    xmlns:tns="http://no.plab/hakont/sts"; xmlns:wst="
http://schemas.xmlsoap.org/ws/2005/02/trust";
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xs="
http://www.w3.org/2001/XMLSchema";
    name="EsysbioStSService" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/";>
    <!-- this is the WS-I BP-compliant way to import a schema -->
    <wsdl:types>
        <xs:schema  xmlns:xs="http://www.w3.org/2001/XMLSchema";>
            <xs:import namespace="
http://schemas.xmlsoap.org/ws/2005/02/trust";
                schemaLocation="ws-trust.xsd" />

        </xs:schema>
    </wsdl:types>

    <!-- WS-Trust defines the following GEDs -->
    <wsdl:message name="RequestSecurityTokenMsg">
        <wsdl:part name="request" element="wst:RequestedSecurityToken" />
    </wsdl:message>
    <wsdl:message name="RequestSecurityTokenResponseMsg">
        <wsdl:part name="response"
element="wst:RequestSecurityTokenResponse" />
    </wsdl:message>
    <wsdl:message name="RequestSecurityTokenResponseCollectionMsg">
        <wsdl:part name="responseCollection"
element="wst:RequestSecurityTokenResponseCollection" />
    </wsdl:message>

    <!--
        This portType models the full request/response the Security Token
        Service:
    -->

    <wsdl:portType name="WSSecurityRequestor">
        <wsdl:operation name="SecurityTokenResponse">
            <wsdl:input message="tns:RequestSecurityTokenResponseMsg" />
        </wsdl:operation>
        <wsdl:operation name="SecurityTokenResponse2">
            <wsdl:input
message="tns:RequestSecurityTokenResponseCollectionMsg" />
        </wsdl:operation>
        <wsdl:operation name="Challenge">
            <wsdl:input message="tns:RequestSecurityTokenResponseMsg" />
            <wsdl:output message="tns:RequestSecurityTokenResponseMsg" />
        </wsdl:operation>
        <wsdl:operation name="Challenge2">
            <wsdl:input message="tns:RequestSecurityTokenResponseMsg" />
            <wsdl:output
message="tns:RequestSecurityTokenResponseCollectionMsg" />
        </wsdl:operation>
    </wsdl:portType>

    <!-- These portTypes model the individual message exchanges
-->
    <wsdl:portType name="SecurityTokenRequestService">
        <wsdl:operation name="RequestSecurityToken">
            <wsdl:input message="tns:RequestSecurityTokenMsg" />
        </wsdl:operation>
    </wsdl:portType>

    <wsdl:portType name="SecurityTokenService">
        <wsdl:operation name="RequestSecurityToken">
            <wsdl:input message="tns:RequestSecurityTokenMsg" />
            <wsdl:output message="tns:RequestSecurityTokenResponseMsg"/>
        </wsdl:operation>
    </wsdl:portType>

    <wsdl:binding name="STSBinding" type="tns:SecurityTokenService">
        <soap:binding style="document"
            transport="http://schemas.xmlsoap.org/soap/http"; />
        <wsdl:operation name="RequestSecurityToken">
            <soap:operation
                soapAction="
http://schemas.xmlsoap.org/ws/2005/02/trust/wsdl/RequestSecurityToken"; />
            <wsdl:input>
                <soap:body use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="EsysbioStSService">
        <wsdl:port name="EsysbioSTS" binding="tns:STSBinding">
            <soap:address location="http://localhost:8080/axis2/services/STS";
/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>


2009/1/26 Håkon Sagehaug <hakon.sageh...@bccs.uib.no>

>
>
> ---------- Forwarded message ----------
> From: Håkon Sagehaug <hakon.sageh...@bccs.uib.no>
> Date: 2009/1/26
> Subject: Failed when creating xmlbeans binding from WS-Trust.wsdl
> To: axis-user@ws.apache.org
>
>
> Sent it to the wrong list
>
>
> ---------- Forwarded message ----------
> From: Håkon Sagehaug <hakon.sageh...@bccs.uib.no>
> Date: 2009/1/26
> Subject: Failed when creating xmlbeans binding from WS-Trust.wsdl
> To: axis-...@ws.apache.org
>
>
> Hi
>
> I wanted to make a STS service and copied the WS-Trust.wsdl from the
> ws-trust specification and added binding and service description, but when I
> want to create an xmlbeans binding I  get this error
>
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
> http://schemas.xmlsoap.org/ws/2004/08/addressing/:61:1: error:
> cvc-enumeration-valid: string value 'none' is not a valid enumeration value
> for type of processContents attribute in xs:wildcard
>
>
> I use this command
>
>  wsdl2java.sh -uri wsdl/WS-Trust.wsdl -ss -d xmlbeans -sd -p
> no.plab.hakont.sts -s
>
> and running axis2 1.4.1
>
> Any hits on this, since I 've not done anything else then adding a binding
> and service to the wsdl I dont get what's wrong in this case.
>
> I can compile the schema on it's own using xmlbeans, but not when I want to
> create ws stub classes using the xmlbeans binding.
>
>
> cheers, Håkon
>
> --
> Håkon Sagehaug, Software Developer
> Parallab, Bergen Center for Computational Science (BCCS)
> UNIFOB AS (University of Bergen Research Company)
>
>
>
> --
> Håkon Sagehaug, Software Developer
> Parallab, Bergen Center for Computational Science (BCCS)
> UNIFOB AS (University of Bergen Research Company)
>
>
>
> --
> Håkon Sagehaug, Software Developer
> Parallab, Bergen Center for Computational Science (BCCS)
> UNIFOB AS (University of Bergen Research Company)
>



-- 
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

Reply via email to