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 "Babu Kanumuri (JIRA)" <ji...@apache.org> on 2007/03/27 04:23:32 UTC

[jira] Created: (AXIS2-2398) Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2

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


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


[jira] Assigned: (AXIS2-2398) Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Commented: (AXIS2-2398) Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12489083 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2398:
-----------------------------------------------------

can you attach your complete wsdl file? the wsdl you have attached seems to be incomplete.

> 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


[jira] Resolved: (AXIS2-2398) Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2

Posted by "Sanka Samaranayake (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanka Samaranayake resolved AXIS2-2398.
---------------------------------------

    Resolution: Fixed


Fixed: Committed revision 532732.

However Code Generation supports policies only upto operation level since Axis2 doesn't support message level policy engagement.

Thanks,
Sanka


> 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: Sanka Samaranayake
>            Priority: Blocker
>         Attachments: PartySearchService.wsdl
>
>
> 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


[jira] Updated: (AXIS2-2398) Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2

Posted by "Babu Kanumuri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Babu Kanumuri updated AXIS2-2398:
---------------------------------

    Priority: Blocker  (was: Major)

Its very critical problem for us, because we are unable to test the APIs, pls try to help ASAP.

> 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
>            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


[jira] Commented: (AXIS2-2398) Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2

Posted by "Babu Kanumuri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486008 ] 

Babu Kanumuri commented on AXIS2-2398:
--------------------------------------

Any updates on this issue, I do not see anybody assigned to this defect?

> 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
>            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


[jira] Updated: (AXIS2-2398) Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2

Posted by "Babu Kanumuri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Babu Kanumuri updated AXIS2-2398:
---------------------------------

    Attachment: PartySearchService.wsdl

Pls see the WSDL attached. 



> 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
>         Attachments: PartySearchService.wsdl
>
>
> 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


[jira] Commented: (AXIS2-2398) Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2

Posted by "Bhanu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12546290 ] 

Bhanu commented on AXIS2-2398:
------------------------------

Sanka,
why the generated stubs has no methods to set the username and password..where as it shows in API document,

> 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
>            Assignee: Sanka Samaranayake
>            Priority: Blocker
>         Attachments: PartySearchService.wsdl
>
>
> 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


[jira] Commented: (AXIS2-2398) Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486959 ] 

Davanum Srinivas commented on AXIS2-2398:
-----------------------------------------

Babu,

Did you try any of the 1.2 RC's yet?

-- dims

> 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
>            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


[jira] Assigned: (AXIS2-2398) Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi reassigned AXIS2-2398:
---------------------------------------------------

    Assignee: Sanka Samaranayake  (was: 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: Sanka Samaranayake
>            Priority: Blocker
>         Attachments: PartySearchService.wsdl
>
>
> 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


[jira] Commented: (AXIS2-2398) Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2

Posted by "Babu Kanumuri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487034 ] 

Babu Kanumuri commented on AXIS2-2398:
--------------------------------------

Dims,
I tried with 1.2RC, its not giving error in generating clent, but its not adding any ws policy code(in WSDL) in the stub code. No methods to set the UsernameToken values in the stub.

-Babu

> 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
>            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


[jira] Commented: (AXIS2-2398) Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2

Posted by "Babu Kanumuri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487035 ] 

Babu Kanumuri commented on AXIS2-2398:
--------------------------------------

Dims,
I tried with 1.2RC, its not giving error in generating clent, but its
not adding any ws policy code(in WSDL) in the stub code. No methods to
set the UsernameToken values in the stub.

-Babu 



> 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
>            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


[jira] Commented: (AXIS2-2398) Generation of Client Stubs with WSDL having WSSecurity (Username token) created with Weblogic9.2

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490902 ] 

Deepal Jayasinghe commented on AXIS2-2398:
------------------------------------------

Sanka , 
What is the status of this issue ?

Thanks
Deepal

> 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: Sanka Samaranayake
>            Priority: Blocker
>         Attachments: PartySearchService.wsdl
>
>
> 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