You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2007/04/16 10:22:15 UTC
[jira] Assigned: (AXIS2-2398) Generation of Client Stubs with WSDL
having WSSecurity (Username token) created with Weblogic9.2
[ https://issues.apache.org/jira/browse/AXIS2-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe reassigned AXIS2-2398:
----------------------------------------
Assignee: Amila Chinthaka Suriarachchi
> Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2
> ------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2398
> URL: https://issues.apache.org/jira/browse/AXIS2-2398
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.1.1
> Environment: client wsdl2java ant script with jdk1.5.0_07
> WSDL created with weblogic92 having wssecurity(username token)
> Reporter: Babu Kanumuri
> Assigned To: Amila Chinthaka Suriarachchi
> Priority: Blocker
>
> I am trying to generate client stubs using axis2.1.1 wsdl2java ant task, but it is throwing Runtime Exception.
> pls see the error stack trace given below.
> --------------------------------- Error Stack Trace Begin --------------------------------
> Running Axis2 wsdl2java for [PartySearchServicePortType]
> directory: C:\downloads\OpenSource\Axis2.1.1.1\axis2-1.1.1\bin
> command: cmd.exe /C WSDL2java.bat -uri C:\DOCUME~1\nbkdb6r\LOCALS~1\Temp\tempdir33395.tmp\GPS_PartySearch_DIT_.wsdl -o C:\temp p com.babu.axis2 -d xmlbeans -sn PartySearchService -pn PartySearchServicePort -ns2p
> Using AXIS2_HOME: C:\downloads\OpenSource\Axis2.1.1.1\axis2-1.1.1
> Using JAVA_HOME: C:\Program Files\Java\jre1.5.0_07
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: #Auth.xml can't be resolved
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
> 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: java.lang.RuntimeException: #Auth.xml can't be resolved
> at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:302)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:213)
> ... 2 more
> Caused by: java.lang.RuntimeException: #Auth.xml can't be resolved
> at org.apache.neethi.AbstractPolicyOperator.normalizeOperator(AbstractPolicyOperator.java:115)
> at org.apache.neethi.AbstractPolicyOperator.normalize(AbstractPolicyOperator.java:69)
> at org.apache.neethi.Policy.normalize(Policy.java:60)
> at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:1921)
> at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:1701)
> at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1623)
> at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmitter.java:787)
> at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:762)
> at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:277)
> ... 3 more
> ----------------------------------- Error Stack Trace End -------------------------------------------
> --------------------------------------- WSDL Snippet Begin------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:s1="http://www.bankofamerica.com/wsdl/gps/party/v001" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" name="PartySearchServiceDefinitions" targetNamespace="http://www.bankofamerica.com/wsdl/gps/party/v001">
> <types>
> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.bankofamerica.com/xmlschema/gps/partySearchWsdlTypes/v001" xmlns="http://www.bankofamerica.com/xmlschema/gps/partySearchWsdlTypes/v001" xmlns:osa="http://www.bankofamerica.com/xmlschema/resource/metadata/osa/infrastructure/v001" xmlns:p="http://www.bankofamerica.com/xmlschema/gps/party/v001" xmlns:pc="http://www.bankofamerica.com/xmlschema/gps/partySearchCriteria/v001" xmlns:s0="http://www.bankofamerica.com/wsdl/gps/party/v001" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:sc="http://www.bankofamerica.com/xmlschema/gps/searchCriteria/v001" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <binding name="PartySearchServiceSoapBinding" type="s1:PartySearchServicePortType">
> <s2:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
> <operation name="retrieve">
> <s2:operation soapAction="" style="document"/>
> <input>
> <s2:body parts="parameters" use="literal"/>
> <wsp:Policy>
> <wsp:PolicyReference URI="#Auth.xml"/>
> </wsp:Policy>
> </input>
> <output>
> <s2:body parts="parameters" use="literal"/>
> </output>
> </operation>
> <operation name="search">
> <s2:operation soapAction="" style="document"/>
> <input>
> <s2:body parts="parameters" use="literal"/>
> <wsp:Policy>
> <wsp:PolicyReference URI="#Auth.xml"/>
> </wsp:Policy>
> </input>
> <output>
> <s2:body parts="parameters" use="literal"/>
> </output>
> </operation>
> </binding>
> <service name="PartySearchService">
> <port name="PartySearchServicePort" binding="s1:PartySearchServiceSoapBinding">
> <s2:address location="http://crm-wl-dit-m-1.bankofamerica.com:9321/gps/party/PartySearchService"/>
> </port>
> </service>
> <wsp:UsingPolicy xmlns:n1="http://schemas.xmlsoap.org/wsdl/" n1:Required="true"/>
> <wsp:Policy s0:Id="Auth.xml">
> <wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
> <wssp:SupportedTokens>
> <wssp:SecurityToken TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
> <wssp:UsePassword Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/>
> </wssp:SecurityToken>
> </wssp:SupportedTokens>
> </wssp:Identity>
> </wsp:Policy>
> </definitions>
> --------------------------------------- WSDL Snippet End------------------------------
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org