[jira] [Created] (CXF-3612) wsdl2java error while parsing WSDL having policyreferences within wsdl

2011-06-22 Thread Vivek Rai (JIRA)
wsdl2java error while parsing WSDL having policyreferences within wsdl
--

 Key: CXF-3612
 URL: https://issues.apache.org/jira/browse/CXF-3612
 Project: CXF
  Issue Type: Bug
  Components: WS-* Components
Affects Versions: 2.4.1
 Environment: Windows XP, java 1.6.0_18
Reporter: Vivek Rai


While parsing the a WSDL file i get an exception Filenotfound for 
wsp:PolicyReference URI="#"
Please note that the URI is referencing a wsp decelaration done in the same 
file earlier. I was under the impression that its the same bug as 3544, so 
waited until 2.4.1 release but unfortunately its not working


**Exception log Begin **
E:\apache-cxf-2.4.1\bin>wsdl2java -d E:/SAP -compile -classdir E:/SAP/classes -a
llowElementReferences -wsdlList Needles(20110503-DMZ)-Policy.wsdl

WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsd
l definition from : file:/%3c?xml%20version=%221.0%22%20encoding=%22utf-8%22?%3e
%3cwsdl:definitions%20targetNamespace=%22urn:sap-com:document:sap:soap:functions
:mc-style%22%20xmlns:wsdl=%22http://schemas.xmlsoap.org/wsdl/%22%20xmlns:xsd=%22
http://www.w3.org/2001/XMLSchema%22%20xmlns:soap=%22http://schemas.xmlsoap.org/w
sdl/soap/%22%20xmlns:http=%22http://schemas.xmlsoap.org/wsdl/http/%22%20xmlns:mi
me=%22http://schemas.xmlsoap.org/wsdl/mime/%22%20xmlns:tns=%22urn:sap-com:docume
nt:sap:soap:functions:mc-style%22%20xmlns:wsp=%22http://schemas.xmlsoap.org/ws/2
004/09/policy%22%20xmlns:wsu=%22http://docs.oasis-open.org/wss/2004/01/oasis-200
401-wss-wssecurity-utility-1.0.xsd%22%20xmlns:n1=%22urn:sap-com:document:sap:rfc
:functions%22%3e%3cwsdl:documentation%3e%3csidl:sidl%20xmlns:sidl=%22http://www.
sap.com/2007/03/sidl%22/%3e%3c/wsdl:documentation%3e%3cwsp:UsingPolicy%20wsdl:re
quired=%22true%22/%3e%3cwsp:Policy%20wsu:Id=%22BN_BN_ZVNEEDLES%22%3e%3csaptrnbnd
:OptimizedXMLTransfer%20uri=%22http://xml.sap.com/2006/11/esi/esp/binxml%22%20xm
lns:saptrnbnd=%22http://www.sap.com/webas/710/soap/features/transportbinding/%22
%20wsp:Optional=%22true%22/%3e%3csaptrnbnd:OptimizedXMLTransfer%20uri=%22http://
www.w3.org/2004/08/soap/features/http-optimization%22%20xmlns:saptrnbnd=%22http:
//www.sap.com/webas/710/soap/features/transportbinding/%22%20wsp:Optional=%22tru
e%22/%3e%3cwsp:ExactlyOne%20xmlns:wsp=%22http://schemas.xmlsoap.org/ws/2004/09/p
olicy%22%20xmlns:sapsp=%22http://www.sap.com/webas/630/soap/features/security/po
licy%22%20xmlns:sp=%22http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702%
22%20xmlns:wsa=%22http://www.w3.org/2005/08/addressing%22%20xmlns:wst=%22http://
docs.oasis-open.org/ws-sx/ws-trust/200512%22%20xmlns:wsu=%22http://schemas.xmlso
ap.org/ws/2002/07/utility%22%20xmlns:wsx=%22http://schemas.xmlsoap.org/ws/2004/0
9/mex%22%3e%3cwsp:All%3e%3csp:TransportBinding%3e%3cwsp:Policy%3e%3csp:Transport
Token%3e%3cwsp:Policy%3e%3csp:HttpsToken/%3e%3c/wsp:Policy%3e%3c/sp:TransportTok
en%3e%3csp:AlgorithmSuite%3e%3cwsp:Policy%3e%3csp:TripleDesRsa15/%3e%3c/wsp:Poli
cy%3e%3c/sp:AlgorithmSuite%3e%3csp:Layout%3e%3cwsp:Policy%3e%3csp:Strict/%3e%3c/
wsp:Policy%3e%3c/sp:Layout%3e%3c/wsp:Policy%3e%3c/sp:TransportBinding%3e%3c/wsp:
All%3e%3c/wsp:ExactlyOne%3e%3c/wsp:Policy%3e%3cwsp:Policy%20wsu:Id=%22IF_IF_ZVNE
EDLES%22%3e%3csapsession:Session%20xmlns:sapsession=%22http://www.sap.com/webas/
630/soap/features/session/%22%3e%3csapsession:enableSession%3efalse%3c/sapsessio
n:enableSession%3e%3c/sapsession:Session%3e%3csapcentraladmin:CentralAdministrat
ion%20xmlns:sapcentraladmin=%22http://www.sap.com/webas/700/soap/features/Centra
lAdministration/%22%20wsp:Optional=%22true%22/%3e%3c/wsp:Policy%3e%3cwsp:Policy%
20wsu:Id=%22OP_IF_OP_ZVfreeNeedlesUpdate%22%3e%3csapcomhnd:enableCommit%20xmlns:
sapcomhnd=%22http://www.sap.com/NW05/soap/features/commit/%22%3efalse%3c/sapcomh
nd:enableCommit%3e%3csapblock:enableBlocking%20xmlns:sapblock=%22http://www.sap.
com/NW05/soap/features/blocking/%22%3etrue%3c/sapblock:enableBlocking%3e%3csaptr
hnw05:required%20xmlns:saptrhnw05=%22http://www.sap.com/NW05/soap/features/trans
action/%22%3eno%3c/saptrhnw05:required%3e%3csaprmnw05:enableWSRM%20xmlns:saprmnw
05=%22http://www.sap.com/NW05/soap/features/wsrm/%22%3efalse%3c/saprmnw05:enable
WSRM%3e%3c/wsp:Policy%3e%3cwsp:Policy%20wsu:Id=%22OP_IF_OP_ZVfreeNeedlesValidate
%22%3e%3csapcomhnd:enableCommit%20xmlns:sapcomhnd=%22http://www.sap.com/NW05/soa
p/features/commit/%22%3efalse%3c/sapcomhnd:enableCommit%3e%3csapblock:enableBloc
king%20xmlns:sapblock=%22http://www.sap.com/NW05/soap/features/blocking/%22%3etr
ue%3c/sapblock:enableBlocking%3e%3csaptrhnw05:required%20xmlns:saptrhnw05=%22htt
p://www.sap.com/NW05/soap/features/transaction/%22%3eno%3c/saptrhnw05:required%3
e%3csaprmnw05:enableWSRM%20xmlns:saprmnw05=%22http://www.sap.com/NW05/soap/featu
res/wsrm/%22%3efalse%3c/saprmnw05:enableWSRM%3e%3c/

[jira] [Commented] (CXF-3612) wsdl2java error while parsing WSDL having policyreferences within wsdl

2011-06-29 Thread Vivek Rai (JIRA)

[ 
https://issues.apache.org/jira/browse/CXF-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057193#comment-13057193
 ] 

Vivek Rai commented on CXF-3612:


Anyone has any clue on this one , I tried putting the wsdl on tomcat to check 
if this issue is only because iam trying to create java from wsdl which is on 
my filesystem. but it gave me the same results , Somehow its trying to parse 
the wsp>PolicyReferene URI to find a File which is not the case. Any help will 
be appreciated as i want to move forward this issue. 

> wsdl2java error while parsing WSDL having policyreferences within wsdl
> --
>
> Key: CXF-3612
> URL: https://issues.apache.org/jira/browse/CXF-3612
> Project: CXF
>  Issue Type: Bug
>  Components: WS-* Components
>Affects Versions: 2.4.1
> Environment: Windows XP, java 1.6.0_18
>Reporter: Vivek Rai
>
> While parsing the a WSDL file i get an exception Filenotfound for 
> wsp:PolicyReference URI="#"
> Please note that the URI is referencing a wsp decelaration done in the same 
> file earlier. I was under the impression that its the same bug as 3544, so 
> waited until 2.4.1 release but unfortunately its not working
> **Exception log Begin **
> E:\apache-cxf-2.4.1\bin>wsdl2java -d E:/SAP -compile -classdir E:/SAP/classes 
> -a
> llowElementReferences -wsdlList Needles(20110503-DMZ)-Policy.wsdl
> WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create 
> wsd
> l definition from : 
> file:/%3c?xml%20version=%221.0%22%20encoding=%22utf-8%22?%3e
> %3cwsdl:definitions%20targetNamespace=%22urn:sap-com:document:sap:soap:functions
> :mc-style%22%20xmlns:wsdl=%22http://schemas.xmlsoap.org/wsdl/%22%20xmlns:xsd=%22
> http://www.w3.org/2001/XMLSchema%22%20xmlns:soap=%22http://schemas.xmlsoap.org/w
> sdl/soap/%22%20xmlns:http=%22http://schemas.xmlsoap.org/wsdl/http/%22%20xmlns:mi
> me=%22http://schemas.xmlsoap.org/wsdl/mime/%22%20xmlns:tns=%22urn:sap-com:docume
> nt:sap:soap:functions:mc-style%22%20xmlns:wsp=%22http://schemas.xmlsoap.org/ws/2
> 004/09/policy%22%20xmlns:wsu=%22http://docs.oasis-open.org/wss/2004/01/oasis-200
> 401-wss-wssecurity-utility-1.0.xsd%22%20xmlns:n1=%22urn:sap-com:document:sap:rfc
> :functions%22%3e%3cwsdl:documentation%3e%3csidl:sidl%20xmlns:sidl=%22http://www.
> sap.com/2007/03/sidl%22/%3e%3c/wsdl:documentation%3e%3cwsp:UsingPolicy%20wsdl:re
> quired=%22true%22/%3e%3cwsp:Policy%20wsu:Id=%22BN_BN_ZVNEEDLES%22%3e%3csaptrnbnd
> :OptimizedXMLTransfer%20uri=%22http://xml.sap.com/2006/11/esi/esp/binxml%22%20xm
> lns:saptrnbnd=%22http://www.sap.com/webas/710/soap/features/transportbinding/%22
> %20wsp:Optional=%22true%22/%3e%3csaptrnbnd:OptimizedXMLTransfer%20uri=%22http://
> www.w3.org/2004/08/soap/features/http-optimization%22%20xmlns:saptrnbnd=%22http:
> //www.sap.com/webas/710/soap/features/transportbinding/%22%20wsp:Optional=%22tru
> e%22/%3e%3cwsp:ExactlyOne%20xmlns:wsp=%22http://schemas.xmlsoap.org/ws/2004/09/p
> olicy%22%20xmlns:sapsp=%22http://www.sap.com/webas/630/soap/features/security/po
> licy%22%20xmlns:sp=%22http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702%
> 22%20xmlns:wsa=%22http://www.w3.org/2005/08/addressing%22%20xmlns:wst=%22http://
> docs.oasis-open.org/ws-sx/ws-trust/200512%22%20xmlns:wsu=%22http://schemas.xmlso
> ap.org/ws/2002/07/utility%22%20xmlns:wsx=%22http://schemas.xmlsoap.org/ws/2004/0
> 9/mex%22%3e%3cwsp:All%3e%3csp:TransportBinding%3e%3cwsp:Policy%3e%3csp:Transport
> Token%3e%3cwsp:Policy%3e%3csp:HttpsToken/%3e%3c/wsp:Policy%3e%3c/sp:TransportTok
> en%3e%3csp:AlgorithmSuite%3e%3cwsp:Policy%3e%3csp:TripleDesRsa15/%3e%3c/wsp:Poli
> cy%3e%3c/sp:AlgorithmSuite%3e%3csp:Layout%3e%3cwsp:Policy%3e%3csp:Strict/%3e%3c/
> wsp:Policy%3e%3c/sp:Layout%3e%3c/wsp:Policy%3e%3c/sp:TransportBinding%3e%3c/wsp:
> All%3e%3c/wsp:ExactlyOne%3e%3c/wsp:Policy%3e%3cwsp:Policy%20wsu:Id=%22IF_IF_ZVNE
> EDLES%22%3e%3csapsession:Session%20xmlns:sapsession=%22http://www.sap.com/webas/
> 630/soap/features/session/%22%3e%3csapsession:enableSession%3efalse%3c/sapsessio
> n:enableSession%3e%3c/sapsession:Session%3e%3csapcentraladmin:CentralAdministrat
> ion%20xmlns:sapcentraladmin=%22http://www.sap.com/webas/700/soap/features/Centra
> lAdministration/%22%20wsp:Optional=%22true%22/%3e%3c/wsp:Policy%3e%3cwsp:Policy%
> 20wsu:Id=%22OP_IF_OP_ZVfreeNeedlesUpdate%22%3e%3csapcomhnd:enableCommit%20xmlns:
> sapcomhnd=%22http://www.sap.com/NW05/soap/features/commit/%22%3efalse%3c/sapcomh
> nd:enableCommit%3e%3csapblock:enableBlocking%20xmlns:sapblock=%22http://www.sap.
> com/NW05/soap/features/blocking/%22%3etrue%3c/sapblock:enableBlocking%3e%3csaptr
> hnw05:required%20xmlns:saptrhnw05=%22http://www.sap.com/NW05/soap/features/trans
> action/%22%3eno%3c/saptrhnw05:required%3e%3csaprmnw0

[jira] [Updated] (CXF-3612) wsdl2java error while parsing WSDL having policyreferences within wsdl

2011-06-29 Thread Vivek Rai (JIRA)

 [ 
https://issues.apache.org/jira/browse/CXF-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vivek Rai updated CXF-3612:
---

Attachment: Needles20110503-DMZ.wsdl

please find attached the WSDL for your reference, the wsp.policyreference does 
points to an Id present within the WSDL.

> wsdl2java error while parsing WSDL having policyreferences within wsdl
> --
>
> Key: CXF-3612
> URL: https://issues.apache.org/jira/browse/CXF-3612
> Project: CXF
>  Issue Type: Bug
>  Components: WS-* Components
>Affects Versions: 2.4.1
> Environment: Windows XP, java 1.6.0_18
>Reporter: Vivek Rai
> Attachments: Needles20110503-DMZ.wsdl
>
>
> While parsing the a WSDL file i get an exception Filenotfound for 
> wsp:PolicyReference URI="#"
> Please note that the URI is referencing a wsp decelaration done in the same 
> file earlier. I was under the impression that its the same bug as 3544, so 
> waited until 2.4.1 release but unfortunately its not working
> **Exception log Begin **
> E:\apache-cxf-2.4.1\bin>wsdl2java -d E:/SAP -compile -classdir E:/SAP/classes 
> -a
> llowElementReferences -wsdlList Needles(20110503-DMZ)-Policy.wsdl
> WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create 
> wsd
> l definition from : 
> file:/%3c?xml%20version=%221.0%22%20encoding=%22utf-8%22?%3e
> %3cwsdl:definitions%20targetNamespace=%22urn:sap-com:document:sap:soap:functions
> :mc-style%22%20xmlns:wsdl=%22http://schemas.xmlsoap.org/wsdl/%22%20xmlns:xsd=%22
> http://www.w3.org/2001/XMLSchema%22%20xmlns:soap=%22http://schemas.xmlsoap.org/w
> sdl/soap/%22%20xmlns:http=%22http://schemas.xmlsoap.org/wsdl/http/%22%20xmlns:mi
> me=%22http://schemas.xmlsoap.org/wsdl/mime/%22%20xmlns:tns=%22urn:sap-com:docume
> nt:sap:soap:functions:mc-style%22%20xmlns:wsp=%22http://schemas.xmlsoap.org/ws/2
> 004/09/policy%22%20xmlns:wsu=%22http://docs.oasis-open.org/wss/2004/01/oasis-200
> 401-wss-wssecurity-utility-1.0.xsd%22%20xmlns:n1=%22urn:sap-com:document:sap:rfc
> :functions%22%3e%3cwsdl:documentation%3e%3csidl:sidl%20xmlns:sidl=%22http://www.
> sap.com/2007/03/sidl%22/%3e%3c/wsdl:documentation%3e%3cwsp:UsingPolicy%20wsdl:re
> quired=%22true%22/%3e%3cwsp:Policy%20wsu:Id=%22BN_BN_ZVNEEDLES%22%3e%3csaptrnbnd
> :OptimizedXMLTransfer%20uri=%22http://xml.sap.com/2006/11/esi/esp/binxml%22%20xm
> lns:saptrnbnd=%22http://www.sap.com/webas/710/soap/features/transportbinding/%22
> %20wsp:Optional=%22true%22/%3e%3csaptrnbnd:OptimizedXMLTransfer%20uri=%22http://
> www.w3.org/2004/08/soap/features/http-optimization%22%20xmlns:saptrnbnd=%22http:
> //www.sap.com/webas/710/soap/features/transportbinding/%22%20wsp:Optional=%22tru
> e%22/%3e%3cwsp:ExactlyOne%20xmlns:wsp=%22http://schemas.xmlsoap.org/ws/2004/09/p
> olicy%22%20xmlns:sapsp=%22http://www.sap.com/webas/630/soap/features/security/po
> licy%22%20xmlns:sp=%22http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702%
> 22%20xmlns:wsa=%22http://www.w3.org/2005/08/addressing%22%20xmlns:wst=%22http://
> docs.oasis-open.org/ws-sx/ws-trust/200512%22%20xmlns:wsu=%22http://schemas.xmlso
> ap.org/ws/2002/07/utility%22%20xmlns:wsx=%22http://schemas.xmlsoap.org/ws/2004/0
> 9/mex%22%3e%3cwsp:All%3e%3csp:TransportBinding%3e%3cwsp:Policy%3e%3csp:Transport
> Token%3e%3cwsp:Policy%3e%3csp:HttpsToken/%3e%3c/wsp:Policy%3e%3c/sp:TransportTok
> en%3e%3csp:AlgorithmSuite%3e%3cwsp:Policy%3e%3csp:TripleDesRsa15/%3e%3c/wsp:Poli
> cy%3e%3c/sp:AlgorithmSuite%3e%3csp:Layout%3e%3cwsp:Policy%3e%3csp:Strict/%3e%3c/
> wsp:Policy%3e%3c/sp:Layout%3e%3c/wsp:Policy%3e%3c/sp:TransportBinding%3e%3c/wsp:
> All%3e%3c/wsp:ExactlyOne%3e%3c/wsp:Policy%3e%3cwsp:Policy%20wsu:Id=%22IF_IF_ZVNE
> EDLES%22%3e%3csapsession:Session%20xmlns:sapsession=%22http://www.sap.com/webas/
> 630/soap/features/session/%22%3e%3csapsession:enableSession%3efalse%3c/sapsessio
> n:enableSession%3e%3c/sapsession:Session%3e%3csapcentraladmin:CentralAdministrat
> ion%20xmlns:sapcentraladmin=%22http://www.sap.com/webas/700/soap/features/Centra
> lAdministration/%22%20wsp:Optional=%22true%22/%3e%3c/wsp:Policy%3e%3cwsp:Policy%
> 20wsu:Id=%22OP_IF_OP_ZVfreeNeedlesUpdate%22%3e%3csapcomhnd:enableCommit%20xmlns:
> sapcomhnd=%22http://www.sap.com/NW05/soap/features/commit/%22%3efalse%3c/sapcomh
> nd:enableCommit%3e%3csapblock:enableBlocking%20xmlns:sapblock=%22http://www.sap.
> com/NW05/soap/features/blocking/%22%3etrue%3c/sapblock:enableBlocking%3e%3csaptr
> hnw05:required%20xmlns:saptrhnw05=%22http://www.sap.com/NW05/soap/features/trans
> action/%22%3eno%3c/saptrhnw05:required%3e%3csaprmnw05:enableWSRM%20xmlns:saprmnw
> 05=%22http://www.sap.com/NW05/soap/features/wsrm/%22%3efalse%3c/saprmnw05:enable
> WSRM%3e%3c/wsp:Policy%3e%3cwsp:Policy%20wsu:Id=%22OP_IF_OP_ZVfreeNeedlesValidate
> %22%3e%3csapcomhn