Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » WSDL parsing that includes references to standard soap encoding types
WSDL parsing that includes references to standard soap encoding types [message #557790] Wed, 08 September 2010 23:08
seth  is currently offline seth Friend
Messages: 1
Registered: September 2010
Junior Member

I am trying to write a wsdl parser using eclipse wst framework. Here is the snippet i use

ResourceSet resourceSet = new ResourceSetImpl();
URI wsdlURI = URI.createURI("*.wsdl"); //$NON-NLS-1$
Factory factory = WSDLResourceFactoryRegistry.INSTANCE.getFactory((wsdlURI));
getExtensionToFactoryMap().put("wsdl", //$NON-NLS-1$
WSDLResourceImpl wsdlResource = (WSDLResourceImpl)resourceSet.createResource(wsdlURI);
resourceSet.getLoadOptions().put(WSDLResourceImpl.CONTINUE_O N_LOAD_ERROR, new Boolean(false));
resourceSet.getLoadOptions().put(WSDLResourceImpl.USE_EXTENS ION_FACTORIES, new Boolean(true));
wsdlResource.load(null, resourceSet.getLoadOptions());
Definition definition = wsdlResource.getDefinition();

The problem is if the wsdl has some references to the types in standard soap encoding namespace xmlns:soapenc="" like <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ResultElement[]"/> the schema validation fails with error XSD: Attribute reference '' is unresolved.

After debugging i could find there is an extension point catalogContribution and these standard namcespaces are contributed to that extension point, but how do i make sure these standard namespace grammers are loaded without explicitly specifying import. Any help would be appreciated.


Previous Topic:Soap 1.2 Binding "unsupported" in WS Explorer...what have I done wrong?
Next Topic:Standalone deployment of RAR projects
Goto Forum:

Current Time: Tue Oct 13 14:04:33 GMT 2015

Powered by FUDForum. Page generated in 0.03795 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software