Hi there,
get an error on trying to add a SOAP host with the Add a SOAP host workflow.
I tryed few different ways to get the SOAP host added, but non is working. Also I saw here different posts within the community which I tryed to apply to my problem with the same result.
I attached the WSDL file and also the WSDL_FULL file which includes the schema which I want to use.
Hope for help
Regards,
Chris
Possible reason for the NPE is an issue in the plug-in related to the used references to named attributes.
As a workaround you can try to replace the following tag in the schema.xml:
<xs:attribute ref="tns:type"/>
with this one:
<xs:attribute name="type" type="xs:string"/>
Hi Chris,
When I try to import wsdl.wsdl I get this error:
> java.net.UnknownHostException: servername.domain (Dynamic Script Module name : addSOAPHostWithWSDLContent#8)
because of the reference inside the URL http://servername.domain:9080/baocdp/orca?xsd=1
But then when I try to import wsdl_full.wsdl I get this other error:
> unsupported protocol: 'file' (Dynamic Script Module name : addSOAPHostWithWSDLContent#8)
I guess because of the import element <xsd:import namespace="http://bmc.com/ao/xsd/2008/09/soa" schemaLocation="orca.xsd"/> is pointing to the local "file" orca.xsd.
Could you please attach that file as well or even better to include the types defined in the orca.xsd inside the wsdl file?
Sergio
Hi Sergio,
thanks for your reply.
The error caused of the URL is correct, cause I change the name of the server before posting it to the net :smileygrin:
As you said, I included the orca.xsd schema, but also get the same error with the nullpointerexception. Then I tried your solution from http://communities.vmware.com/message/1834844#1834844 but I don't get this running, getting the following error messages:
Unable to parse WSDL definition! Reason: WSDLException (at /definitions/portType/operation[1]/input/part): faultCode=INVALID_WSDL: Encountered illegal extension element '{http://schemas.xmlsoap.org/wsdl/}part' in the context of a 'javax.wsdl.Input'. Extension elements must be in a namespace other than WSDL's. (Dynamic Script Module name : addSOAPHostWithWSDLContent#8)
Unable to parse WSDL definition! Reason: WSDLException: faultCode=PARSER_ERROR: Problem parsing '- WSDL Document -'.: org.xml.sax.SAXParseException: The prefix "wsdl" for element "wsdl:part" is not bound. (Dynamic Script Module name : addSOAPHostWithWSDLContent#8)
I'm not sure I get this done correct.
I attached the new file, with the (this time really I hope so) full wsdl
Regards,
Chris
I'm sure now, the wsdl file ist consistend, we can build projects with Metro, Apache CXF and SoapUI.
I will contact support now.
Regards,
Chris
Possible reason for the NPE is an issue in the plug-in related to the used references to named attributes.
As a workaround you can try to replace the following tag in the schema.xml:
<xs:attribute ref="tns:type"/>
with this one:
<xs:attribute name="type" type="xs:string"/>