Hi,

I'm trying to generate a java service using wsdl2java from latest axis2
svn, but I'm getting always the following exception.

As far as I understand all this, the element RequestSecurityToken has a
type. I tried to generate client code with axis 1.3 and that worked though.

Any help appreciated.

Thanks
Carsten

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.d
atabinding.UnmatchedTypeException: No type was mapped to the name
RequestSecurityToken with namespace
http://schemas.xmlsoap.org/ws/2005/02/trust
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:235)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axi
s2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the
name Reque
stSecurityToken with namespace http://schemas.xmlsoap.org/ws/2005/02/trust
        at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:796)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:217)
        ... 2 more
Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No
type was
 mapped to the name RequestSecurityToken with namespace
http://schemas.xmlsoap.o
rg/ws/2005/02/trust
        at
org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingNa
me(TypeMappingAdapter.java:73)
        at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:1855)
        at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:1713)
        at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1454)
        at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.createDOMDocumentForSkeletonInterface(AxisServiceBasedMultiLanguageEmitter
.java:1384)


-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
  targetNamespace="http://www.test.net/namespace";
  xmlns:tns="http://www.test.net/namespace";
  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";
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";>
  <wsdl:types>
    <xs:schema>
      <xs:import namespace="http://schemas.xmlsoap.org/ws/2005/02/trust";
        schemaLocation="http://schemas.xmlsoap.org/ws/2005/02/trust/ws-trust.xsd"; />
    </xs:schema>
  </wsdl:types>

    <wsdl:message name="RequestSecurityTokenRequest">
      <wsdl:part name="request" element="wst:RequestSecurityToken"></wsdl:part></wsdl:message>
    <wsdl:message name="RequestSecurityTokenResponse">
      <wsdl:part name="response"
        element="wst:RequestSecurityTokenResponse">
      </wsdl:part></wsdl:message>
    <wsdl:portType name="SecurityTokenService">
    <wsdl:operation name="RequestSecurityToken">
      <wsdl:input message="tns:RequestSecurityTokenRequest" />
      <wsdl:output message="tns:RequestSecurityTokenResponse" />
    </wsdl:operation>
  </wsdl:portType>

  <wsdl:binding name="AuthenticationBinding" 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"; style="document"/>
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="test-auth_0.95.1.0">
    <wsdl:port name="test-auth-service" binding="tns:AuthenticationBinding">
      <soap:address
        location="http://localhost:8080/axis2/service/test-auth"; />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to